Repository navigation
fix(maintainer): keep outer PR controls out of test fixtures - #157755
Conversation
Use the canonical UpdateStepResult type owner after its concurrent mainline extraction. The old module no longer exports the type. This corrects TS2459 without changing emitted runtime JavaScript. Follow-up to #153236. Co-authored-by: Jason (Json) <[email protected]>
|
🦞👀 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 24, 2026, 8:38 PM ET / September 25, 2026, 00:38 UTC. ClawSweeper reviewWhat this changesThe branch clears inherited Git and supervisor bindings when PR wrapper test fixtures start, updates lock and containment tests, and carries a type-only import correction already merged separately. Merge readiness✅ Ready for maintainer review Current main still launches these fixtures with inherited maintainer controls. The verified test merge carries a focused fixture repair, so this PR remains useful. Priority: P2 Review scores
Verification
How this fits togetherThe maintainer PR wrapper selects Git and supervises operations using environment bindings. These tests launch copied wrappers and shell helpers, then check their Git, lock, and worktree results. flowchart LR
A[Outer maintainer operation] --> B[Test fixture launcher]
B --> C[Fixture environment]
C --> D[PR wrapper and shell helpers]
D --> E[Git and supervisor]
E --> F[Test assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource 0, Tests +25. Total +25 across 4 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Independent fixture launches should select their own Git executable and receive only supervisor bindings created for that fixture, while explicit test controls remain available. Do we have a high-confidence way to reproduce the issue? Yes. Current main passes the outer environment to the affected fixture launches, and the PR reports controlled A/B failures under those bindings; this reviewer did not rerun them. Is this the best way to solve the issue? Yes. Resetting the five bindings where independent subprocesses start addresses the observed fixture boundary and preserves explicit supervised fixture settings. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 37b47bf9652d. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…w#157755) * fix(update): restore npm-pack helper typechecking (openclaw#157659) Use the canonical UpdateStepResult type owner after its concurrent mainline extraction. The old module no longer exports the type. This corrects TS2459 without changing emitted runtime JavaScript. Follow-up to openclaw#153236. Co-authored-by: Jason (Json) <[email protected]> * test(maintainer): isolate nested PR fixture environments --------- Co-authored-by: Jason (Json) <[email protected]>
Complete the paired idle-worker fixture migration from openclaw#157341 and isolate independent PR fixtures from outer maintainer controls as reviewed in openclaw#157755. Keep production behavior, worker budgets, and assertions unchanged.
Related: #110016
What Problem This Solves
PR wrapper regression tests fail inside native maintainer gates because they inherit the outer operation's Git executable and supervisor controls.
User Impact
Maintainers can run the wrapper fixtures with their intended Git proxies and independently owned supervisors. Product behavior and production safety checks remain unchanged.
Why This Change Was Made
Pinned Git executables bypassed fixture PATH proxies, while an ancestor helper snapshot unexpectedly required tools excluded by the minimal recovery fixture. The shared fixture helper now removes five borrowed bindings before starting an independent controller, CLI, or shell. Explicit fixture overrides and fresh supervisor bindings remain intact. The former shell-level cleanup moves to that process-creation boundary.
Evidence
The full native run exposed ten operation-lock failures and two containment failures. Controlled A/B runs reproduced the Git-pin and helper-snapshot failures independently on unchanged code. With the repair and all five borrowed settings present, the selected 15 operation-lock cases pass in 89.05 seconds wall time and both containment cases pass in 10.53 seconds, using the normal test wrapper with
--maxWorkers=1. The selection includes supervisor-custody siblings and the existing isolation regression; no new tests or timeout changes were added.All selected static checks, targeted formatting/lint, and independent P0–P2 review pass. The initial typecheck found missing workspace dependency wiring; the package manager restored the already-locked dependency offline without changing source or lockfile bytes, and the exact typecheck then passed. The branch includes the already-landed canonical type-import prerequisite from #157659.
Exact-head CI attempt 2 passed. Its tested merge
027fbe3ec6add6dc7058b665f60f114a7b194214has the reviewed head61939682f54159d07897a7d0bcd347f5d0d33567as its second parent. The first attempt deferred before tests because Full Release Validation reserved the runners; the full run was restarted once after that reservation ended.The actual hosted tooling group passed all 234 tests: operation-lock's 146 cases took 113.553 s per file, and containment's 88 cases took 71.031 s per file. Those file walls can overlap and are not summed as a job duration.
The same fixture postimages also passed both complete files inside the native MCP gate: 146 operation-lock cases in 64.204 s and 88 containment cases in 40.403 s. The separate pnpm-launcher prerequisite is repaired. That broader suite still has unrelated watcher-startup failures, so no full MCP gate pass is claimed here.