Skip to content

fix: avoid native command QA timeout under CI contention - #99743

Merged
RomneyDa merged 1 commit into
mainfrom
fix/qa-smoke-session-target-flake
Jul 4, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/qa-smoke-session-target-flake

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Jul 4, 2026

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where the native-command-session-target QA smoke scenario could fail intermittently under normal CI contention even though native /stop targeting 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:

  • active-run discovery: provider-aware 15 seconds instead of a fixed 5 seconds;
  • recovery marker: provider-aware 60 seconds instead of 30 seconds.

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

  • Retained post-test(qa): use full-turn budget for native stop recovery #99656 artifacts: one first attempt failed at timed out after 5000ms; another failed at timed 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 final main base.
  • Concurrency-8 focused stress proof — two runs passed in 32s and 24s; Testbox tbx_01kwnbrcmwc3gzp6sk1beevs8w, run 28690725713.
  • Delegated check:changed — full typecheck, lint, and import-cycle checks passed; Testbox tbx_01kwnbwdvx2fxejbcrf8dgh7gd, run 28690776973.
  • git diff --check — passed.
  • Final structured autoreview — no accepted/actionable findings; patch correct at 0.98 confidence.

A broader current-main smoke attempt expanded to 81 scenarios and encountered an unrelated missing generated acpx artifact 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.

@clawsweeper

clawsweeper Bot commented Jul 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 3, 2026, 9:48 PM ET / 01:48 UTC.

Summary
Raises the active-run discovery and recovery wait budgets in qa/scenarios/channels/native-command-session-target.yaml using the existing provider-aware liveTurnTimeoutMs helper.

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.

  • QA wait budgets: 2 increased, 0 action-order changes. Both edits affect smoke-lane flake tolerance and failed-path runtime without changing the native command assertions.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🐚 platinum hermit
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • none.

Risk before merge

  • [P1] The PR intentionally lets this smoke scenario wait up to 40 seconds longer on failed-path conditions, so maintainers should accept the bounded CI-runtime tradeoff before merge.

Maintainer options:

  1. Accept the bounded timeout increase (recommended)
    Merge after exact-head CI is acceptable, owning the longer failed-path ceiling because the action order, assertions, and smoke concurrency remain unchanged.
  2. Require a stronger readiness signal
    Ask for a deterministic active-run or recovery readiness signal instead of larger budgets, accepting that this is broader than the inspected two-line fix.
  3. Fold timing policy into gateway-contention work
    Pause this PR and carry the exact scenario budget decision in fix(qa): prevent qa smoke ci timeouts under gateway concurrency #99368 if maintainers want one combined CI-contention landing path.

Next step before merge

  • Manual maintainer review is appropriate because the PR is maintainer-authored/protected and the remaining question is acceptance of a QA runtime tradeoff, not a repairable code defect.

Security
Cleared: The diff only changes QA scenario timeout expressions and does not alter secrets, dependencies, workflows, install scripts, or runtime code execution paths.

Review details

Best 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 changes

Label justifications:

  • P2: This is a focused QA smoke reliability fix for intermittent CI timeouts with limited product blast radius.
  • merge-risk: 🚨 automation: The PR changes QA smoke timeout behavior, so merging it can affect CI/proof runtime even when normal code checks are green.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This is a maintainer-authored PR with retained scenario/Testbox evidence in the body, so the external contributor real-behavior proof gate does not apply.
Evidence reviewed

PR surface:

Other 0. Total 0 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 2 0
Total 1 2 2 0

What I checked:

Likely related people:

  • RomneyDa: Prior merged history introduced the transport-backed native command scenario and the previous recovery timeout adjustment, and this head commit continues the same QA scenario work. (role: feature owner and recent area contributor; confidence: high; commits: e701dc76b060, 96b029718b53, 037b1d4505f4; files: qa/scenarios/channels/native-command-session-target.yaml, extensions/qa-lab/src/qa-transport.ts, extensions/qa-lab/src/scenario-flow-runner.ts)
  • steipete: History shows adjacent work on QA transport wait interval clamping and live-timeout documentation, which is relevant to the timeout policy this PR reuses. (role: adjacent QA timeout contributor; confidence: medium; commits: 0303f3a8f086, 58912f8fd842; files: extensions/qa-lab/src/qa-transport.ts, extensions/qa-lab/src/live-timeout.ts, extensions/qa-lab/src/live-timeout.test.ts)
  • gumadeiras: History for extensions/qa-lab/src/live-timeout.ts shows provider registry work that owns the provider-aware timeout policy used by the PR. (role: adjacent provider-timeout contributor; confidence: medium; commits: bb7e9823a886; files: extensions/qa-lab/src/live-timeout.ts, extensions/qa-lab/src/providers/index.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Jul 4, 2026
@RomneyDa
RomneyDa merged commit 13652f6 into main Jul 4, 2026
123 of 132 checks passed
@RomneyDa
RomneyDa deleted the fix/qa-smoke-session-target-flake branch July 4, 2026 03:07
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant