Skip to content

fix: fix flaking Test_sshConfigExecEscape #14233

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
Aug 12, 2024

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Aug 12, 2024

Fixes #13962.

This test flakes when the subtests are run in parallel (~1/250). Since we're not testing any concurrent code, and the test isn't incorrect in any obvious way, we'll fix the flake by running them consecutively instead.

Attempted fixes:

  • Replacing os.WriteFile with an atomic variant from Google's renameio.
  • Moving the TempDir calls to the outer test, so that they get cleaned up at the end, instead of at the end of each subtest.

A real fix is left to the reader.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ethanndickson and the rest of your teammates on Graphite Graphite

@ethanndickson ethanndickson changed the title fix: flaking Test_sshConfigExecEscape fix: fix flaking Test_sshConfigExecEscape Aug 12, 2024
@ethanndickson ethanndickson requested a review from mafredri August 12, 2024 03:00
@ethanndickson ethanndickson marked this pull request as ready for review August 12, 2024 03:01
@ethanndickson ethanndickson merged commit 73402fc into main Aug 12, 2024
38 checks passed
@ethanndickson ethanndickson deleted the 08-12-fix_flaking_test_sshconfigexecescape_ branch August 12, 2024 08:56
@github-actions github-actions bot locked and limited conversation to collaborators Aug 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flake: Test_sshConfigExecEscape
2 participants