Repository navigation
fix: avoid native command QA timeout under CI contention - #99743
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 3, 2026, 9:48 PM ET / 01:48 UTC. Summary PR surface: Other 0. Total 0 across 1 file. Reproducibility: unclear. for a live failing reproduction: I did not rerun the contention scenario, but current main still has the two polling ceilings and the PR body reports retained 5000ms and 30000ms timeout artifacts under CI contention. Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Merge the narrow timeout-budget adjustment if maintainers accept the failed-path timeout tradeoff and exact-head CI is acceptable, while keeping broader gateway startup contention in #99368 separate. Do we have a high-confidence way to reproduce the issue? Unclear for a live failing reproduction: I did not rerun the contention scenario, but current main still has the two polling ceilings and the PR body reports retained 5000ms and 30000ms timeout artifacts under CI contention. Is this the best way to solve the issue? Yes; this is the narrowest inspected fix because it reuses the existing provider-aware timeout policy for only the two observed waits and avoids serialization, workflow changes, or assertion changes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2ffeedf406e7. Label changesLabel justifications:
Evidence reviewedPR surface: Other 0. Total 0 across 1 file. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
What Problem This Solves
Fixes an issue where the
native-command-session-targetQA smoke scenario could fail intermittently under normal CI contention even though native/stoptargeting and recovery were correct.Two unrelated pull-request runs hit the scenario's polling ceilings—once while waiting up to 5 seconds for the active run projection, and once while waiting up to 30 seconds for the recovery turn—then passed on immediate reruns.
Why This Change Was Made
Keep the smoke lane at concurrency 8 and preserve the scenario's action order and assertions, while raising only the two observed polling ceilings:
Both waits return immediately when their conditions are met. This adds no sleep, serialization, workflow change, or successful-path delay.
User Impact
Contributors should see fewer unrelated QA smoke reruns without making the required CI action take minutes longer. Normal successful executions retain the existing concurrency and complete as soon as the same assertions pass.
Evidence
timed out after 5000ms; another failed attimed out after 30000ms; immediate reruns passed without code changes.node scripts/run-vitest.mjs extensions/qa-lab/src/scenario-catalog.test.ts— 33/33 passed on finalmainbase.tbx_01kwnbrcmwc3gzp6sk1beevs8w, run28690725713.check:changed— full typecheck, lint, and import-cycle checks passed; Testboxtbx_01kwnbwdvx2fxejbcrf8dgh7gd, run28690776973.git diff --check— passed.A broader current-main smoke attempt expanded to 81 scenarios and encountered an unrelated missing generated
acpxartifact before this focused scenario proof completed. That build-output race was subsequently addressed by #99736; the all-flow focused proof above avoids conflating that separate script-rebuild failure with this timeout change.