Skip to content

fix: Flakes in shell_test.go due to missing signal grace period#3854

Merged
DrJosh9000 merged 1 commit intomainfrom
fix-flaky-missing-signal-grace-period
Apr 23, 2026
Merged

fix: Flakes in shell_test.go due to missing signal grace period#3854
DrJosh9000 merged 1 commit intomainfrom
fix-flaky-missing-signal-grace-period

Conversation

@DrJosh9000
Copy link
Copy Markdown
Contributor

Description

Sometimes the command exits 'killed' when it should be something else. The missing (0) signal grace period causes a race on whether the interrupt or kill is sent.

Context

Flakiness introduced in #3814.

Changes

Add a 10 second signal grace period to TestContextCancelInterupts and TestInterrupt.

Testing

  • Tests have run locally (with go test ./...). Buildkite employees may check this if the pipeline has run automatically.
  • Code is formatted (with go tool gofumpt -extra -w .)

Disclosures / Credits

Found it, fixed it, tested it myself.

@DrJosh9000 DrJosh9000 requested review from a team as code owners April 23, 2026 00:24
@DrJosh9000 DrJosh9000 force-pushed the fix-flaky-missing-signal-grace-period branch from 86b18de to 93b55cc Compare April 23, 2026 00:59
@DrJosh9000 DrJosh9000 enabled auto-merge April 23, 2026 01:23
@DrJosh9000 DrJosh9000 merged commit ecfebec into main Apr 23, 2026
3 checks passed
@DrJosh9000 DrJosh9000 deleted the fix-flaky-missing-signal-grace-period branch April 23, 2026 01:34
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.

2 participants