Skip to content

fix(maintainer): keep outer PR controls out of test fixtures - #157755

Merged
steipete merged 2 commits into
mainfrom
codex/mcp-pr-fixture-isolation-20260924
Sep 25, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/mcp-pr-fixture-isolation-20260924

Conversation

@steipete

@steipete steipete commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

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 027fbe3ec6add6dc7058b665f60f114a7b194214 has the reviewed head 61939682f54159d07897a7d0bcd347f5d0d33567 as 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.

steipete and others added 2 commits September 24, 2026 16:42
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]>
@steipete steipete self-assigned this Sep 25, 2026
@steipete
steipete marked this pull request as ready for review September 25, 2026 00:21
@clawsweeper

clawsweeper Bot commented Sep 25, 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.

@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 25, 2026
@clawsweeper

clawsweeper Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 24, 2026, 8:38 PM ET / September 25, 2026, 00:38 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: 61939682f54159d07897a7d0bcd347f5d0d33567

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The focused patch matches the traced failure boundary and reports relevant subprocess validation, though the review did not independently execute it.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The changed owner is the test fixture launcher. The PR body reports before/after runs of copied wrapper subprocesses, including 15 operation-lock and two containment cases; this maintainer-authored tooling PR has no contributor proof gate, and no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The changed owner is the test fixture launcher. The PR body reports before/after runs of copied wrapper subprocesses, including 15 operation-lock and two containment cases; this maintainer-authored tooling PR has no contributor proof gate, and no stored-data contract changes.
Evidence reviewed 8 items Introduced fixture boundary: The proposed test helper removes five inherited Git and supervisor bindings before independent fixtures launch.
Fixture launch coverage: The operation-lock tests apply the reset to supervised and shell fixtures while allowing explicit supervised fixture settings to be added afterward; the containment tests apply it to shell and concurrent launches.
Production binding behavior: The wrapper prefers inherited Git executable bindings, and its supervisor creates fresh lock notification, supervisor PID, and GitHub snapshot bindings for the operation it owns.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source 0, Tests +25. Total +25 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 3 50 25 +25
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 51 26 +25

Review metrics

None.

Technical review

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

Labels

Label changes:

  • add P2: Inherited controls can break maintainer fixture validation, with impact limited to tooling tests.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The changed owner is the test fixture launcher. The PR body reports before/after runs of copied wrapper subprocesses, including 15 operation-lock and two containment cases; this maintainer-authored tooling PR has no contributor proof gate, and no stored-data contract changes.

Label justifications:

  • P2: Inherited controls can break maintainer fixture validation, with impact limited to tooling tests.
  • 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: The changed owner is the test fixture launcher. The PR body reports before/after runs of copied wrapper subprocesses, including 15 operation-lock and two containment cases; this maintainer-authored tooling PR has no contributor proof gate, and no stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • fuller-stack-dev: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: 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.

@steipete
steipete merged commit b1b0b48 into main Sep 25, 2026
219 of 220 checks passed
@steipete
steipete deleted the codex/mcp-pr-fixture-isolation-20260924 branch September 25, 2026 02:59
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
…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]>
steipete added a commit to wahaha1223/openclaw that referenced this pull request Sep 25, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant