Skip to content

[probes.common.command] Reduce test flakiness on CI - #1294

Merged
manugarg merged 1 commit into
mainfrom
fix/command-test-flakiness
Apr 18, 2026
Merged

manugarg merged 1 commit into
mainfrom
fix/command-test-flakiness

Conversation

@manugarg

Copy link
Copy Markdown
Contributor

Bump subprocess pause from 10ms to 50ms and the timestamp-gap assertion threshold from 10ms to 25ms. The previous 10ms margin was too tight: on busy GitHub Actions runners, goroutine scheduling jitter can delay the first timestamp capture enough that the millisecond-rounded gap between cmd and args output falls below 10ms, causing intermittent failures of TestCommand/disable-streaming:false.

Bump subprocess pause from 10ms to 50ms and the timestamp-gap
assertion threshold from 10ms to 25ms. The previous 10ms margin
was too tight: on busy GitHub Actions runners, goroutine scheduling
jitter can delay the first timestamp capture enough that the
millisecond-rounded gap between cmd and args output falls below
10ms, causing intermittent failures.
@manugarg
manugarg merged commit bb69689 into main Apr 18, 2026
12 checks passed
@manugarg
manugarg deleted the fix/command-test-flakiness branch April 18, 2026 04:32
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.

1 participant