Repository navigation
Conversation
e2e/cli spawned subprocess trees with no reaping init in the nix sandbox, piling zombies to the 30m timeout. Install a Linux child-subreaper TestMain (e2e + cli) with a Wait4 reaper, and run each harness mcpx invocation in its own process group with group-kill on deadline. settings source-scan guards caught real drift: declare MCPX_ADAPTER_DECLARATION_SHA256, MCPX_PATHS_CONFIG, and the exec/consumer setters for EPHEMERAL and TRANSPORT_BEARER_TOKEN; exempt the three proto per-minute rate limits (daemon handler coverage, no e2e probe yet, pin 210->213); regenerate docs. Remove internal/e2e, internal/settings, internal/cli from checkExclude; conformance/defaults/examples remain excluded. The goTestCmd line is untouched.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 51 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Agent note — task 17254 claimed by lane any-d (PR shepherd pass)
|
|
Agent note — task 17254 parked: PR #8003 FAILS its sandbox verification at internal/cli (lane any-d)
|
# Conflicts: # pkgs/mcpx/docs/environment.md # pkgs/mcpx/internal/e2e/feature_coverage_test.go # pkgs/mcpx/internal/settings/effect.go # pkgs/mcpx/internal/settings/scriptenv.go
…d them; keep main #2716 wording matching pin 214)
|
Shepherd progress (task 17254, lane code-c, 2026-11-16): branch brought current with main and the merge resolved; the PR is not landable yet — one real defect remains, proven below. Parking the shepherd task with this state rather than landing a red checkPhase. Merge work done (pushed to this branch): merged origin/main; conflicts resolved in 4 files. Findings from the merge:
The remaining defect — the sandbox reaper steals tracked children. With the branch as pushed, Also recorded: What landing needs, in order: (1) a reaper that cannot steal tracked children (or a demonstration, from a real nix-sandbox run, that the theft does not occur there — it occurs deterministically under plain |
|
agent-note:v1 Fresh evidence from this shift (2026-11-16), for whoever shepherds this next:
|
|
agent-note:v1 This PR is not landable yet; exactly one proven defect remains, and the fix is designed below. This lane is parking the shepherd task because the laptop execution surface failed again this shift (laptop-agent HTTP 502 / multi-minute stalls on trivial git ops — the second laptop-agent outage today; the first one at ~11:31Z lapsed this task's earlier claim). State of the branch (head d49b7cc, per lane code-c's merge work recorded on this PR at 11:48Z):
The one remaining defect (proven by lane code-c): the sandbox reaper steals tracked children. Its Fix design (ready to implement): make the reaper session-selective. The daemons it must reap are session leaders in their OWN session (client.go starts them with Setsid); tracked children (scripts and subprocesses tests Wait on) run in the test process's own session. So: poll /proc for zombie children of the test process (state Z, ppid == self), and |
|
Agent note — task 17254 in progress (lane code-a): reaper fix implemented, verification running
|
|
Agent note — task 17254 parked (lane code-a): reaper fix implemented; laptop tunnel outage blocks the remaining verification
|
|
Pickup (queue task 17254, lane any-d): shepherding this PR to a terminal outcome. Fresh evidence so far: the change is NOT on main (main still excludes internal/e2e, internal/settings, internal/cli from the mcpx nix checkPhase under #2686); the branch carries the restore plus two maintenance merges of main. Next: merge current main into the branch, run the affected packages, and run the nix checkPhase build as the decisive gate — merge on a pass, close with evidence if the restore no longer holds. |
Shepherd outcome (queue task 17254, lane any-d): closing with fresh evidence — the restore cannot land as constitutedVerified 2026-11-16 against current main (aa3472c), branch merged with main locally in a scratch worktree (clean merge; the remote branch was not modified): 1. The change is not on main. Main's 2. The cli/e2e leg's mechanism is racy by construction. The branch's
An in-process 3. The settings leg is invalidated by main drift. Closing this PR under the 90-day shepherd rule with the evidence above. The path forward is recorded on #2686: (a) regenerate the environment doc on main and only then restore |
…aper (#2686) internal/e2e burns its 30m checkPhase timeout because the build sandbox has no init to reap the script subprocess trees it spawns; and internal/settings, green on main since #10774's ScriptEnv Setter and docs regeneration, no longer needs its exclusion. Both checkExclude entries go. In their place, the Linux checkPhase runs `go test` under `tini -s`: a child subreaper outside the test binary that adopts and reaps orphaned descendants without competing with Go's exec.Cmd.Wait for children the tests themselves own — the failure mode that closed PR #8003, whose in-binary TestMain reaper stole exit statuses the cli suite waits on. tini joins nativeCheckInputs on Linux only; darwin keeps the plain command.
Restores #2686 sandbox checks.
e2e/cli: Linux child-subreaper TestMain + Wait4 reaper; harness mcpx invocations in own process group with group-kill on deadline. Bounds/reaps daemon trees under non-init supervisor.
settings: declares MCPX_ADAPTER_DECLARATION_SHA256, MCPX_PATHS_CONFIG (+ exec/consumer setters for EPHEMERAL, TRANSPORT_BEARER_TOKEN); exempts 3 proto per-minute rate limits (pin 210->213); regenerates docs/environment.md + docs/configuration.md.
Removes internal/e2e, internal/settings, internal/cli from checkExclude (conformance/defaults/examples remain). goTestCmd line untouched.
Verified: go test ./internal/settings (pass), ./internal/buildcheck (pass, 62 pkgs 3 excluded), e2e smoke (daemon cleanup, ls/call/exec), cli ensuredaemon/stopall, darwin cross-compile for touched pkgs.
Task 8663. Risk: nix build verification must run on laptop or CI, never sandbox.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.