Repository navigation
[release/8.0-staging] [wasm] Wait for killed processes and retry WBT project cleanup - #137298
Merged
Merged
Conversation
|
Azure Pipelines: Successfully started running 3 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
…project cleanup Port of #137297. On Windows, BlazorPublishRunTest intermittently fails in SharedBuildPerTestClassFixture.RemoveDirectory because publish\wwwroot is still in use. The xharness webserver runs with that directory as its working directory, and ToolCommand.Dispose() kills it without waiting for exit, so the handle can outlive the kill. Wait for the killed process to exit in ToolCommand.Dispose(), and retry transient IO/access failures when deleting build directories. Co-authored-by: Copilot App <[email protected]>
lewing
force-pushed
the
lewing-port-wbt-cleanup-8.0
branch
from
November 10, 2026 22:38
1d67cbc to
795b117
Compare
maraf
approved these changes
Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes Issue #137269
main PR #137297
Description
On Windows,
BlazorPublishRunTestintermittently fails inSharedBuildPerTestClassFixture.RemoveDirectorybecausepublish\wwwrootis still in use. The xharness webserver runs with that directory as its working directory, andToolCommand.Dispose()kills it without waiting for it to exit, so the handle can outlive the kill.This waits up to 30 s for the killed process to exit in
ToolCommand.Dispose(), and retries transientIOException/UnauthorizedAccessExceptionfailures (10 attempts, 1 s apart) when deleting build directories. Manual port: the files live underCommon/on this branch, and 8.0 kills via the taskkill-basedKillTree.Customer Impact
None. Test infrastructure only (Wasm.Build.Tests); reduces CI flakiness on Windows.
Regression
No.
Testing
Wasm.Build.Testscompiles locally. The failure is intermittent and Windows-only; CI on this PR exercises the change.Risk
Very low. Test-only change; no product code is affected.
Package authoring
N/A — test infrastructure only; no package changes.
Note
This PR was generated with the assistance of GitHub Copilot.