Repository navigation
[ci] Retry macOS PowerShell startup crashes in test processing - #13400
Closed
simonrozsival wants to merge 2 commits into
Closed
simonrozsival wants to merge 2 commits into
simonrozsival wants to merge 2 commits into
Conversation
The failed-test processing step can fail before its script starts when\nPowerShell's macOS procargs call returns errno 5 (issue #12652).\n\nLaunch that step from Bash on macOS and retry only when both known\nstartup-error messages are present. Preserve output and exit status,\nand stop after three attempts without retrying ordinary script failures.\nKeep Windows and Linux on the existing PowerShell task.\n\nAdd focused tests for recovery, retry exhaustion, argument forwarding,\nlog preservation, backoff, and non-retryable failures. Co-authored-by: Copilot App <[email protected]>
Undo the CI launcher, its tests, and the platform-specific pipeline step. Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.
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.
The macOS Look for failed tests step can fail before its script starts because PowerShell's
procargscall returns errno 5. This caused build 1663890 to fail even though its tests passed. Related to #12652.Run this step through a Bash launcher on macOS, retrying only when both the exact
procargserrno 5 message andManagedPSEntry+StartupExceptionappear. Allow two retries with 1- and 4-second delays, retain output from every attempt, and preserve the final exit code. Ordinary slicer/script failures return immediately; Windows and Linux retain their existing PowerShell task. Keep the retry outside PowerShell because the failure happens before the script executes.Validation:
bash -n build-tools/automation/scripts/retry-pwsh-startup.sh— passed.python3 build-tools/automation/scripts/test_retry_pwsh_startup.py -v— passed, 7 tests covering recovery, exhaustion, backoff, output/argument preservation, and non-retryable failures.git diff --cached --check— passed before committing.No SDK build or device tests were run: this changes CI orchestration only. A live Azure Pipelines run has not yet verified the task conditions on an agent.