Skip to content

Re-enable TSan versions of async_let_fibonacci.swift test #39319

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 1 commit into from
Sep 16, 2021

Conversation

yln
Copy link
Contributor

@yln yln commented Sep 15, 2021

The two TSan versions of the
test/Concurrency/Runtime/async_let_fibonacci.swift were disabled for
different reasons:
[1] Swift Concurrency work broke the test and it was never re-enabled.
[2] Regression in atos required test to be disabled. Re-enablement was
blocked on Swift CI upgrading to an Xcode that contains the fixed
version of atos.

While the TSan versions of the test was not running they fell out of
sync with the original test and then started failing for different
(trivial) reasons once re-enabled.

Please help us keep these tests running by:

  • Not landing work that makes them fail (and deferring the fix to a
    later point), if at all possible. Breaking sanitizers should be a
    "blocker".
  • Keeping them in sync with the original tests.

Radar-Id: rdar://83162880

[1] rdar://76446550 (Re-enable test: Sanitizers/tsan/async_let_fibonacci.swift)
[2] rdar://80274830 ([Swift CI] Sanitizer report symbolication fails due to regression in atos)

@yln
Copy link
Contributor Author

yln commented Sep 15, 2021

@swift-ci Please test

@yln yln self-assigned this Sep 15, 2021
@yln yln marked this pull request as ready for review September 16, 2021 09:12
@yln yln force-pushed the reenable-tsan-tests branch from 424e094 to 5f749ac Compare September 16, 2021 09:24
The two TSan versions of the
`test/Concurrency/Runtime/async_let_fibonacci.swift` were disabled for
different reasons:
[1] Swift Concurrency work broke the test and it was never re-enabled.
[2] Regression in atos required test to be disabled.  Re-enablement was
    blocked on Swift CI upgrading to an Xcode that contains the fixed
    version of atos.

While the TSan versions of the test was not running they fell out of
sync with the original test and then started failing for different
(trivial) reasons once re-enabled.

Please help us keep these tests running by:
* Not landing work that makes them fail (and deferring the fix to a
  later point), if at all possible.  Breaking sanitizers should be a
  "blocker".
* Keeping them in sync with the original tests.

Radar-Id: rdar://83162880

[1] rdar://76446550 (Re-enable test: Sanitizers/tsan/async_let_fibonacci.swift)
[2] rdar://80274830 ([Swift CI] Sanitizer report symbolication fails due to regression in atos)
@yln yln force-pushed the reenable-tsan-tests branch from 5f749ac to 27b89cc Compare September 16, 2021 10:37
@yln
Copy link
Contributor Author

yln commented Sep 16, 2021

@swift-ci Please test

Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for enabling them.

Not sure how to improve process around not having so many disabled tests; should be something we periodically check for, perhaps something of a policy to figure out by @DougGregor and team?

@@ -36,6 +27,7 @@ func fib(_ n: Int) -> Int {

var racyCounter = 0

@available(SwiftStdlib 5.5, *)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
@available(SwiftStdlib 5.5, *)

Could be removed since the -disable-availability-checking was passed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These tests mirror what is in test/Concurrency/Runtime/async_let_fibonacci.swift. If this is worth cleaning up, please apply the changes consistently across all versions.

@yln yln merged commit 16c1eb3 into main Sep 16, 2021
@yln yln deleted the reenable-tsan-tests branch September 16, 2021 15:38
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