Skip to content

[6.2][Test][Concurrency] Fix isIsolatingCurrentContext tests #80747

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

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Apr 10, 2025

Description:
These tests can fail when testing on an older OS version than the one that will ship with Swift 6.2. Fix by disabling availability checking.

Details: Since tests may run on an OS that correspond to an older Swift runtime, and if the build has real availability values and not the 9999 hardcoded ones, the #if available test will fail, and thus not execute the code guarded by it. The CHECK lines are still checked, and since no code executed, these will all fail.

Scope/Impact: Test only change
Risk: Low, test only
Testing: Verified the tests
Reviewed by: @ktoso (I reviewed, this is @al45tair's patch)

Original PR: #80720
Radar: rdar://148986812

These tests can fail when testing on an older OS version than the one
that will ship with Swift 6.2.  Fix by disabling availability checking.

rdar://148986812
@ktoso ktoso requested a review from a team as a code owner April 10, 2025 22:38
@ktoso
Copy link
Contributor Author

ktoso commented Apr 10, 2025

@swift-ci please test

@ktoso ktoso requested review from al45tair and hborla April 10, 2025 23:39
Copy link
Member

@hborla hborla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disabling availability checking seems reasonable in these tests because they will always use the just-built concurrency library

@ktoso
Copy link
Contributor Author

ktoso commented Apr 11, 2025

Cancelling nested steps due to timeout

@ktoso
Copy link
Contributor Author

ktoso commented Apr 11, 2025

@swift-ci please test macOS

@al45tair al45tair merged commit 1d297e0 into swiftlang:release/6.2 Apr 11, 2025
5 checks passed
@ktoso ktoso deleted the pick-0ac4baae78922f60cf88d931aee4b6df9c9dc249 branch April 14, 2025 01:28
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.

3 participants