Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bunnie
Copy link

@bunnie bunnie commented May 12, 2025

This PR introduces two features

  1. Adds a convenience argument --clear-caches that removes all the staging files starting with .~. This is helpful when debugging partially aborted runs.
  2. Adds a retry on the portion of the script that moves the staging directories into output directories. On Windows, the antivirus will lock the directories shortly after they are populated, which can cause them to be inaccessible. This patch catches failures due to this and retries the move with a short pause to allow the AV to finish checking the directory so that it can me moved to its final location.

bunnie added 2 commits May 12, 2025 13:26
This is necessary under Windows because Microsoft Antivirus will
lock directories while they are scanned. A retry will give the
AV some time to run and unlock the directory.
When topgen crashes it leaves a lot of .~ staging files around,
which if they exist on a future run causes the script to fail.

--clear-cache argument goes through and cleans these up, which
saves some effort on debug. This argument is false by default.
qmn pushed a commit that referenced this pull request May 16, 2025
This fix was added in #26612 but a commit accidently drops
the ##1 delay.

Signed-off-by: Kinza Qamar <[email protected]>
pqcfox pushed a commit that referenced this pull request Jul 26, 2025
[sync] Sync upstream changes to earlgrey_1.0.0 branch.
@jadephilipoom
Copy link
Collaborator

Sorry for the delay, just now saw this PR when looking through the PR list. Looks fine to me, but @matutem is more of an authority on the ipgen/topgen tooling.

@jadephilipoom jadephilipoom requested a review from matutem November 4, 2025 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants