Skip to content

Update delete code to move the extracted pkgs instead of removing the 1 by 1#467

Open
goanpeca wants to merge 2 commits intoconda-incubator:mainfrom
goanpeca:fix/win/slow-post-run
Open

Update delete code to move the extracted pkgs instead of removing the 1 by 1#467
goanpeca wants to merge 2 commits intoconda-incubator:mainfrom
goanpeca:fix/win/slow-post-run

Conversation

@goanpeca
Copy link
Member

@goanpeca goanpeca commented Mar 17, 2026

This fixes the slow run times of post-run on windows.

Fixes #277
Fixes #280
Fixes #380

@goanpeca goanpeca self-assigned this Mar 17, 2026
@goanpeca goanpeca requested a review from a team as a code owner March 17, 2026 18:12
Copilot AI review requested due to automatic review settings March 17, 2026 18:12
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR speeds up the action’s post-run cleanup (notably on Windows) by avoiding slow recursive deletion of extracted conda packages, addressing the reported multi-minute/hour cleanup regressions.

Changes:

  • Replace per-directory recursive deletion with a fast “stash via rename” approach for extracted packages (leaving cache/ and archive files intact).
  • Add/update explanatory comments and log messages around the new cleanup strategy.
  • Regenerate the bundled dist/delete/index.js output to match the updated source.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/delete.ts Changes cleanup strategy from rm -rf/move-to-temp to renaming extracted package directories into a stash directory for speed.
dist/delete/index.js Re-bundled compiled output corresponding to the updated delete logic.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@goanpeca goanpeca force-pushed the fix/win/slow-post-run branch from cd877d4 to deb5566 Compare March 17, 2026 18:20
@goanpeca goanpeca requested review from dbast, jaimergp and jezdez March 18, 2026 15:59
@goanpeca goanpeca force-pushed the fix/win/slow-post-run branch from eb9f1c3 to c6181b3 Compare March 18, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants