Skip to content

fix(qa): avoid native evidence producer startup timeouts - #149157

Closed
vincentkoc wants to merge 4 commits into
mainfrom
fix/qa-evidence-child-import
Closed

vincentkoc wants to merge 4 commits into
mainfrom
fix/qa-evidence-child-import

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

Related: #147756

What Problem This Solves

Fixes native child-evidence fixtures exhausting their startup budget before recording producer evidence, and includes the recorded runner failure when a receipt is missing.

User Impact

No user-visible product change. The fixture keeps its real subprocesses, evidence assertions, and 30-second command deadline.

Why This Change Was Made

The generated producer now uses the existing evidence-only test-api facade, which exports the same invocation owner without loading the QA runtime entrypoints. Missing-receipt diagnostics also include the runner's existing failureMessage.

Both remaining child-fixture changes are @vincentkoc's original work. Main was merged into the author branch without rewriting its ancestry; the overlapping runtime-identity fixtures retain main's shared helper from #149164.

Evidence

  • Independent Linux x64 / Node 24.19.0 proof of the import change passed all 12 normal file cases and all 4 native cases under controlled CPU contention. The unchanged baseline passed its four isolated cases, but all four failed with missing producer receipts under the same contention control. Assertions and command deadlines were unchanged. This control does not reconstruct the exact CI load.
  • Fresh child imports with the tsx disk cache disabled took 12.50/13.63 seconds for the broad API versus 0.442/0.491 seconds for test-api; observed RSS was about 1.30 GB versus 206–210 MB. The private owner was no faster than the existing facade. Testbox run, lease tbx_01m2jrtvtd8s407804wjnk5rkg, completed wrapper commands successfully and was stopped.
  • The import candidate passed the selected extension-test guards, formatting, extension test types, and targeted lint. Deslop found no additional cleanup. Original inherited CI failure.
  • Vincent's existing child-fixture proof is retained for the two original child hunks. The final child file remains byte-identical to author head e572a65333e1650202ba2825c155ffdadca8f6c2.
  • Published merge head 489a907f90207b8bc2a456afdd9c00ba77ee48f0 passed exact-head CI and native preparation. The final two-hunk diff also passed formatting, static syntax and diff checks, plus fresh isolated P0–P2 review. The 12+4 Testbox results above remain scoped to the independent import-only candidate; the merged head has separate hosted CI verification.

@vincentkoc vincentkoc self-assigned this Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vincentkoc
vincentkoc marked this pull request as ready for review September 15, 2026 14:15
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 15, 2026, 12:40 PM ET / 16:40 UTC (Revision 6).

ClawSweeper review

What this changes

The PR makes QA subprocess fixtures import the existing lightweight evidence API and includes the runner’s failure message when an evidence receipt is missing.

Merge readiness

⛔ Blocked before merge - 2 items remain

Both changes are already on current main through #149243, with no unique patch remaining. Keep open for explicit human disposition because the author is a MEMBER and the PR carries the protected maintainer label.

Priority: P2
Reviewed head: 489a907f90207b8bc2a456afdd9c00ba77ee48f0
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, supported fixture repair with no actionable findings; its complete implementation has already landed elsewhere.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored test-only patch is exempt from the external-contributor proof gate. Recorded Linux subprocess and contention results exercise the same evidence owner and support the import change; unrelated archive UI screenshots were not counted.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored test-only patch is exempt from the external-contributor proof gate. Recorded Linux subprocess and contention results exercise the same evidence owner and support the import change; unrelated archive UI screenshots were not counted.
Evidence reviewed 7 items Introduced patch and current-main equivalence: The pinned merge-base comparison contains only the two supplied fixture hunks. Comparing the changed file against fetched main produces no differences; the whole file is identical.
Verified merged replacement: GitHub confirms #149243 merged at 2026-09-15T16:28:47Z. Its body explicitly identifies the two hunks as a verbatim adoption of this contribution and credits Vincent Koc.
Matching landed patch: The merged commit contains exactly the same import substitution and failure-message diagnostic as the reviewed introduced delta.
Findings None None.
Security None None.

How this fits together

QA Lab runs scenarios and collects evidence from child processes. This fixture checks that child evidence survives retries and remains correctly represented in reports.

flowchart LR
  A[QA retry fixture] --> B[Real child process]
  B --> C[Lightweight evidence API]
  C --> D[Evidence artifact]
  D --> E[Scenario runner]
  E --> F[Receipt and retry assertions]
Loading

Decision needed

Question Recommendation
Should this protected PR be manually closed now that its complete patch landed through the credited replacement? Close as fully superseded: Close with a link to #149243 and preserve the recorded contribution credit.

Why: Source and merged-PR evidence establish full coverage, but MEMBER authorship and the maintainer label reserve closure for a human.

Before merge

  • Complete next step (P2) - A maintainer should explicitly disposition this protected PR; the recommended outcome is closure in favor of the merged, credited replacement.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
Agent review details

Security

None.

PR surface

Tests +3. Total +3 across 1 file.

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

Review metrics

None.

Root-cause cluster

Relationship: superseded
Canonical: #149243
Summary: The merged extraction covers the complete current patch; the earlier Bun fixture repair addresses separate scope removed from this PR.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Retain the landed lightweight fixture import and diagnostic, preserving the existing subprocess deadline and evidence assertions.

Do we have a high-confidence way to reproduce the issue?

No remaining current-main failure was reproduced: main already contains the repair. The supplied Linux contention control supports the historical failure mechanism; this read-only review ran no tests.

Is this the best way to solve the issue?

Yes. Reusing the existing evidence-only facade preserves the same implementation owner without weakening the test, and the diagnostic exposes the runner’s recorded failure.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 0a64ea33db7a; fix evidence: commit 8b8ffca0188f, main fix timestamp 2026-09-15T16:28:46Z.

Labels

Label justifications:

  • P2: This is a bounded QA fixture reliability repair with no product behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored test-only patch is exempt from the external-contributor proof gate. Recorded Linux subprocess and contention results exercise the same evidence owner and support the import change; unrelated archive UI screenshots were not counted.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

History

Review history (5 earlier review cycles)
  • reviewed 2026-09-15T14:21:39.942Z sha 363313e :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T14:33:32.298Z sha 363313e :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T14:59:15.638Z sha 7325a30 :: needs changes before merge. :: none
  • reviewed 2026-09-15T15:09:08.729Z sha e572a65 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T15:52:50.087Z sha 489a907 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc marked this pull request as draft September 15, 2026 14:52
@vincentkoc vincentkoc changed the title fix(qa): avoid runtime startup in child evidence fixtures fix(qa): preserve evidence fixture runtime boundaries Sep 15, 2026
@vincentkoc vincentkoc changed the title fix(qa): preserve evidence fixture runtime boundaries fix(qa): preserve process identity and lean child imports Sep 15, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 15, 2026 15:02
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Final head e572a65 contains only the four reviewed test fixtures. The temporary workflow is removed. The PR body records independently verified original child-process proof and authentic cold failure → fresh candidate pass → all19 affected cases, with unchanged source hashes. Please review this exact final head; ordinary CI and native preparation remain pending.

@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete

Copy link
Copy Markdown
Contributor

Independent Linux/Node 24.19.0 proof supports the test-api.ts change here. The full fixture file passed 12 tests. Under a bounded single-CPU contention control, the unchanged four native-producer cases passed with this import and failed with the broad API, preserving the 30-second child deadline and every receipt assertion. Cold imports measured 12.50–13.63 seconds for the broad API and 0.44–0.49 seconds for the existing test API. This is a controlled reproduction, not a claim to reproduce the exact CI workload.

The overlapping Bun fixture repair has landed in #149164. I have prepared and reviewed a merge of main into this branch that keeps its shared runtime-version helper and preserves both of this PR's native-child changes, including the stored failure diagnostic. The contributor commit remains in the ancestry; no deadline or assertion is relaxed. I’m coordinating that conflict resolution through the normal maintainer gates while preserving Vincent’s contribution.

Merge current main while retaining Vincent Koc's native producer import and
failure diagnostics. Keep main's shared runtime-version fixture helper and
its three callers unchanged.

Preserve the contributor's original commit ancestry for PR #149157.
@steipete steipete changed the title fix(qa): preserve process identity and lean child imports fix(qa): avoid native evidence producer startup timeouts Sep 15, 2026
@steipete

Copy link
Copy Markdown
Contributor

@vincentkoc heads-up to avoid a collision: the child-bundle hunk from this PR (the test-api.ts producer import plus the failure-message assertion in test-file-scenario-runner.child-bundle.test.ts) is landing right now as #149243, verbatim from your head e572a65333e and with you as co-author, because every PR whose classification runs the config-56 shard is red on it and this PR was conflicting after #149164 merged. Nothing else was taken. Once #149243 is on main, the remaining process-identity fixture changes here will need a rebase; if they are fully covered by #149164 (merged 15:19 UTC) this PR can simply close, otherwise it keeps its remaining scope. Thanks for the Linux proof, it is cited in #149243.

steipete added a commit that referenced this pull request Sep 15, 2026
Carry the reviewed native-child fixture prerequisite from #149157 while its canonical PR completes. Preserve its existing 30-second deadline and receipt assertions.

Co-authored-by: Vincent Koc <[email protected]>
steipete added a commit that referenced this pull request Sep 15, 2026
Repair red main #35 by using the existing evidence-only API in the native
child producer fixture and including the stored runner failure diagnostic.
Preserve the real subprocess, 30-second command budget, and receipt checks.

Refs #149157. Adopt only the child-bundle fixture change from the original
contributor revision; the process-identity repair already landed in #149164.

Co-authored-by: Vincent Koc <[email protected]>
@steipete

Copy link
Copy Markdown
Contributor

Both remaining child-fixture changes have landed in #149243 as 8b8ffca. That commit adopts @vincentkoc's original import and failure-diagnostic hunks verbatim, references this PR, and retains Co-authored-by: Vincent Koc <[email protected]>.

The child fixture on main and this PR's prepared head 489a907 have the identical Git blob e90312d2772deaf018b601cfb987fb8a63bf4af7. The earlier process-identity fixture repair is already on main through #149164. This PR's exact-head CI and native preparation passed; native merge correctly stopped with no net change and issued no merge request.

Closing as completed by those canonical landings. Thank you, @vincentkoc, for the original fixes and evidence.

@steipete steipete closed this Sep 15, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
…#149243)

Repair red main openclaw#35 by using the existing evidence-only API in the native
child producer fixture and including the stored runner failure diagnostic.
Preserve the real subprocess, 30-second command budget, and receipt checks.

Refs openclaw#149157. Adopt only the child-bundle fixture change from the original
contributor revision; the process-identity repair already landed in openclaw#149164.

Co-authored-by: Vincent Koc <[email protected]>
@RomneyDa
RomneyDa deleted the fix/qa-evidence-child-import branch October 22, 2026 00:21
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 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.

2 participants