Skip to content

Fixing flake related to tokio::fs::write cancellation - #10192

Merged
smklein merged 1 commit into
mainfrom
test-leaking-site-xml
Mar 31, 2026
Merged

Fixing flake related to tokio::fs::write cancellation#10192
smklein merged 1 commit into
mainfrom
test-leaking-site-xml

Conversation

@smklein

@smklein smklein commented Mar 30, 2026

Copy link
Copy Markdown
Collaborator

Fixes flake in test_instance_create_timeout_while_starting_propolis

Manually constructs a tokio runtime, and prevents a temporary directory from being dropped
while any tokio tasks - explicitly or implicitly created - might still be alive.

Fixes #10063

@smklein
smklein requested a review from lifning March 30, 2026 22:57
@smklein smklein changed the title Fixing flake related to tokio::fs:write cancellation Fixing flake related to tokio::fs::write cancellation Mar 30, 2026
@smklein
smklein requested review from hawkw and iximeow March 31, 2026 15:44
@hawkw

hawkw commented Mar 31, 2026

Copy link
Copy Markdown
Member

Do we think there may be other tests that have similar issues around tempdir creation/removal?

@smklein

smklein commented Mar 31, 2026

Copy link
Copy Markdown
Collaborator Author

Do we think there may be other tests that have similar issues around tempdir creation/removal?

ha you found my to-do list for the rest of the morning. Haven't looked yet, but I had this question too. I can look.

@smklein

smklein commented Mar 31, 2026

Copy link
Copy Markdown
Collaborator Author

Filing #10198 to separate it from this fix

@sunshowers sunshowers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd like to move temp dir management to within nextest at some point, which would avoid this class of issues. Something for the future :)

@smklein
smklein merged commit be164f1 into main Mar 31, 2026
16 checks passed
@smklein
smklein deleted the test-leaking-site-xml branch March 31, 2026 19:09
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.

flake: Non-empty /var/tmp/omicron_tmp (propolis zone filesystem hung around)

3 participants