Skip to content

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy