Repository navigation
fix(qa): restore Bun evidence fixture execution - #149164
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 10:35 AM ET / 14:35 UTC. ClawSweeper reviewWhat this changesThe PR changes QA tests to simulate Bun by temporarily overriding its version property while preserving native process methods and restoring the original property afterward. Merge readiness✅ Ready for maintainer review This remains a useful, focused repair: current main still replaces the native process object in these fixtures. No actionable patch defects were found, and the related Doctor PR explicitly depends on this prerequisite. Priority: P2 Review scores
Verification
How this fits togetherQA Lab records the runtime and source identity associated with test results and evidence receipts. These fixtures simulate Node and Bun while allocating temporary workspaces and checking that recorded identities remain accurate. flowchart LR
A[Node or Bun fixture] --> B[Scoped version override]
B --> C[Native process preserved]
C --> D[Temporary workspace allocation]
B --> E[Runtime identity capture]
D --> F[Evidence and receipt assertions]
E --> F
F --> G[Restore original version property]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +14. Total +14 across 4 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep runtime simulation confined to the version property so evidence tests exercise real workspace allocation without replacing process infrastructure. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the path: the suite fixture replaces process before temporary-workspace allocation reaches the dependency's process.once call. The contributor reports a failing pre-fix run; this review did not execute tests. Is this the best way to solve the issue? Yes. Overriding only the runtime discriminator repairs the fixture at its producer, preserves native methods, and restores state without weakening evidence assertions or changing production code. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4c0c41f800f6. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
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]>
…#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]>
…nt main (upstream qa-lab fixture fix openclaw#149164)
What Problem This Solves
Fixes QA runtime evidence tests failing during temporary workspace allocation when they simulate Bun.
User Impact
This is a test-only change with no user-visible behavior change. The existing evidence and explicit-anchor checks can complete under the simulated runtime.
Why This Change Was Made
Spreading
processinto a replacement object drops inherited EventEmitter methods, including theoncemethod used by temporary-file cleanup. A scoped test helper overrides onlyprocess.versions.bunand restores the original property descriptor or absence when the test scope exits.Evidence
process.once is not a functionfailure through the existing suite-evidence test before changing it.