Skip to content

Add a few timeout checks to tests #2057

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

Merged
merged 4 commits into from
Mar 13, 2025
Merged

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Mar 11, 2025

I saw the swift test invocation time out on Windows recently. I don’t know what might have caused it (and can’t tell which test was timing out form the swift test output), so I’m speculatively adding some timeout checks that might catch infinite waiting during test execution.

ahoppen added 4 commits March 11, 2025 09:20
Just a speculative fix to avoid timeouts during the `swift test` invocation
Compare to the `while !AtomicBool.value { sleep }` pattern, this eventually times out, avoiding a timeout of the entire `swift test` invocation.
@ahoppen
Copy link
Member Author

ahoppen commented Mar 11, 2025

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Mar 11, 2025

@swift-ci Please test macOS

@ahoppen
Copy link
Member Author

ahoppen commented Mar 12, 2025

@swift-ci Please test macOS

@ahoppen ahoppen merged commit 9c867df into swiftlang:main Mar 13, 2025
3 checks passed
@ahoppen ahoppen deleted the test-timeout branch March 13, 2025 20:46
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