Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run windows tests directly in same shell #1487

Merged

Conversation

plemarquand
Copy link
Contributor

@plemarquand plemarquand commented Apr 7, 2025

Occasionally the Windows tests will hang after all tests have completed until the GitHub action times out. Using Start-Process with the -Wait flag will wait for the process and all of its child processes to terminate. This means that if the VS Code instance under test has any lingering processes the build may hang forever.

Instead run the test command directly, referencing the success status with $LASTEXITCODE. This should hopefully report the status more reliably without hanging.

@plemarquand plemarquand force-pushed the debug-failing-windows-tests-2 branch from 994cb4c to 0e0ab77 Compare April 9, 2025 01:08
@plemarquand plemarquand changed the title [DO NOT MERGE] Debug flakey windows tests Run windows tests directly in same shell Apr 9, 2025
Occasionally the Windows tests will hang after all tests have completed
until the GitHub action times out. Using `Start-Process` with the
`-Wait` flag will wait for the process and all of its child processes to
terminate. This means that if the VS Code instance under test has any
lingering processes the build may hang forever.

Instead run the test command directly, referencing the success status
with `$LASTEXITCODE`. This should hopefully report the status more
reliably without hanging.
@plemarquand plemarquand force-pushed the debug-failing-windows-tests-2 branch from 0e0ab77 to 9b3b500 Compare April 9, 2025 01:35
@plemarquand plemarquand marked this pull request as ready for review April 9, 2025 02:07
@plemarquand plemarquand merged commit 3655586 into swiftlang:main Apr 9, 2025
16 checks passed
@plemarquand plemarquand deleted the debug-failing-windows-tests-2 branch April 9, 2025 13:58
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