Skip to content

test(codex-ws): de-flake semaphore-tail test (widen noise floor 25ms->75ms)#1736

Open
chopratejas wants to merge 1 commit into
mainfrom
tejas/fix-flaky-semaphore-floor
Open

test(codex-ws): de-flake semaphore-tail test (widen noise floor 25ms->75ms)#1736
chopratejas wants to merge 1 commit into
mainfrom
tejas/fix-flaky-semaphore-floor

Conversation

@chopratejas

Copy link
Copy Markdown
Collaborator

test_concurrent_compression_has_no_semaphore_tail failed on main CI (shard 1) with p50=1ms, p99=29ms, ratio=22x. It's flaky, not a regression:

  • p99 is the max of only ~12 concurrent samples, so one CI scheduler/GC outlier dominates it.
  • The real semaphore-contention signal is p99 ~2433ms (success criterion <250ms). 29ms is 84x below that.
  • Passes 3/3 locally.

Widen the noise floor 25ms -> 75ms: absorbs CI jitter, still 3.3x below the 250ms regression threshold (a genuine hundreds-of-ms tail still trips it). Comment updated. No production code change.

Does not block the v0.29.0 publish (release.yml runs no pytest), but greens main CI.

🤖 Generated with Claude Code

…ke CI

test_concurrent_compression_has_no_semaphore_tail takes p99 as the max of only
~12 concurrent samples, so one CI scheduler/GC outlier (observed 29ms / 22x on
a shared runner) tripped the 25ms floor. The real regression signal is p99
~2433ms (success criterion <250ms), so a 75ms floor absorbs the jitter while
staying 3.3x below the regression threshold. Passes locally; no behavior change.
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

PR governance

This PR does not yet satisfy the required template fields:

  • Missing required section Description.
  • Missing required section Type of Change.
  • Missing required section Changes Made.
  • Missing required section Testing.
  • Missing required section Real Behavior Proof.
  • Missing required section Review Readiness.
  • Check I have performed a self-review before requesting human review.
  • Check This PR is ready for human review or convert the PR back to draft.

Please update the PR body, or move the PR back to draft while it is still in progress.

@github-actions github-actions Bot added the status: needs author action Pull request body or readiness checklist still needs author updates label Jul 3, 2026

@JerrettDavis JerrettDavis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed the flake adjustment. The updated 75ms floor is still materially below the 250ms regression threshold and far below the historical semaphore-tail signal, while accounting for the small-sample max/p99 behavior on shared CI runners. Test-only change; this looks ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: needs author action Pull request body or readiness checklist still needs author updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants