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

Fix now-racy scheduled callback tests #3031

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

Lukasa
Copy link
Contributor

@Lukasa Lukasa commented Dec 16, 2024

Motivation:

In PR 3026 we I fixed some warnings, but as part of doing so I eliminated some complexity in the scheduled callback tests. Apparently I did that a bit hard, as I lost a few synchronization edges that made the tests lightly flaky.

Modifications:

  • Re-add synchronization edges between the EL and the test when we advance time
  • Re-add synchronization edges after cancellation calls.

Result:

More reliable tests

Motivation:

In PR 3026 we I fixed some warnings, but as part of doing so I eliminated
some complexity in the scheduled callback tests. Apparently I did that a
bit hard, as I lost a few synchronization edges that made the tests lightly
flaky.

Modifications:

- Re-add synchronization edges between the EL and the test when we advance
    time
- Re-add synchronization edges after cancellation calls.

Result:

More reliable tests
@Lukasa Lukasa added the semver/none No version bump required. label Dec 16, 2024
@Lukasa Lukasa merged commit 1a3229b into apple:main Dec 16, 2024
33 of 35 checks passed
@Lukasa Lukasa deleted the cb-fix-timing-issues-in-awkward-tests branch December 16, 2024 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants