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 flaky test TestIntegrations/X11Forwarding #50852

Merged

Conversation

Joerger
Copy link
Contributor

@Joerger Joerger commented Jan 8, 2025

This test suffered from the same data race explained in #48045, except that the race could now result in an assert.Eventually attempt sending display (and blocking the channel) after the outer require.EventuallyWithT had already moved on to a new assert.Eventually attempt with the next tick. The latter attempt would then block on display <- ... and end up failing.

The fix I chose is to stagger the outer eventually to ensure the inner eventually attempt has ample time to complete before moving on to another attempt.

… time to complete, avoid racing on the display channel.
@Joerger Joerger requested a review from tigrato January 8, 2025 17:52
@Joerger Joerger added the no-changelog Indicates that a PR does not require a changelog entry label Jan 8, 2025
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from nklaassen January 8, 2025 17:58
@Joerger Joerger added this pull request to the merge queue Jan 8, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 8, 2025
@Joerger Joerger added this pull request to the merge queue Jan 8, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 8, 2025
@Joerger Joerger added this pull request to the merge queue Jan 8, 2025
Merged via the queue into master with commit 486176a Jan 8, 2025
41 of 42 checks passed
@Joerger Joerger deleted the joerger/fix-flaky-test-TestIntegrations/X11Forwarding branch January 8, 2025 20:33
@public-teleport-github-review-bot

@Joerger See the table below for backport results.

Branch Result
branch/v15 Create PR
branch/v16 Create PR
branch/v17 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TestIntegrations/X11Forwarding flakiness
4 participants