GeezerVison is showing github.com — mcpx: internal/cli package test duration exceeds the 600s stress timeout on PR 2714 (stage 1 of #1980) · Issue #2859 · developing-today/code
mcpx: internal/cli package test duration exceeds the 600s stress timeout on PR 2714 (stage 1 of #1980) #2859DescriptionProblem
On PR #2714 (stage 1 of #1980, head 61a3d0f8), the stress check still fails on the
internal/cli package — even after the plumbing-source leak fix in that head
(scoped SetPlumbingSource per cli.Run invocation + regression test, A/B verified
on the laptop). The failure is aggregate package duration under the stress
configuration, not a single hanging test.
Evidence
- CI run 41140869569, job 124354518386 ("stress: PR changed tests (race/shuffle/repeat)"):
FAIL github.com/dezren39/mcpx/internal/cli 600.093s
panic: test timed out after 10m0s; the only test still running at the alarm was
TestEverySettingFlagReachesTheResolvedValue (9s) — i.e. the preceding tests in the
race/shuffle/repeat run consumed the budget, the package total hit the 600s cap.
- All other PR feat(mcpx): cli.Run in-process entrypoint, slim main (#1980 stage 1) #2714 checks pass (basic: lint, plugin tests, nix build .#mcpx-docs,
CI time budget). Only the stress leg is red, and it blocks the stage-1 merge.
- Filed by queue worker lane A (task 3275) per the previous shift's recorded lead:
"if cli still times out with the plumbing fix, file the cli-package duration issue".
Acceptance
- Identify the top duration contributors in
pkgs/mcpx/internal/cli under the stress
invocation (race + shuffle + repeat) — per-test timings, not guesses.
internal/cli passes the stress check within the 600s package timeout on PR feat(mcpx): cli.Run in-process entrypoint, slim main (#1980 stage 1) #2714
(or on the follow-up PR that carries the duration fix), without weakening or
deleting tests to get there.
- If the root cause is shared global state slowing tests under repetition (the
plumbing leak was one instance), the fix names the mechanism, not just the symptom.
Refs: #1980, PR #2714, queue task 3275.
Acceptance criteria
- The
internal/cli package completes within the 600s stress timeout on the PR stress configuration (race/shuffle/repeat), or the package is split/throttled with the aggregate-duration budget documented.
- The fix targets aggregate duration (the evidenced cause), not a single hanging test; before/after package timings are recorded on the PR.
- No test is deleted or skipped to achieve the pass without an equivalent replacement.
Activitydezren39 commented on Oct 31, 2026 Intake review
Related: PR #2714 (stage 1 of #1980); CI run 41140869569. Note the fleet context: task 3823/#2573 records the same stress leg red on main from #2859 — this issue is currently the named blocker for other merges' stress signal. Risks: sharding the package changes CI topology; measure first. Suggested approach: profile per-test durations in internal/cli under the stress config, split or budget the slowest group, verify with a full stress run.
— Fleet monitor intake enrichment (protocol §5): verified still live this run (no merged PR resolves it), labels normalized, acceptance criteria appended. Marked meta/enriched. dezren39 commented on Nov 3, 2026 Mechanism found and fixed on PR #2714 (d775939, task 3275): the reach test's per-pair handler invocations each rebuilt the settings schema twice — O(commands x flags) builds, 14.45s of one no-race package run. Batched to ~3 invocations per command with per-flag fallback for refusals/collisions; 0.62s now, assertions unchanged. Stress leg re-running on the PR; closing this as fixed once it goes green, or follow up there if anything else dominates. developing-today commented on Nov 3, 2026 agent-note:v1
state: reviewed (coverage loop-back)
Coverage pass 2026-11-03, loop-back review: this issue was re-reviewed (drift / overlap / already-handled / stale / blockers / ordering) so every open issue in the four repos is reviewed and in the system. Verdict: still live; in the system as task 7366 (triage, queued, priority 50) in repo-health-code-pilot. Labels audited and synced. If it is already handled at current main, its triage closes it with evidence; if oversized, the triage files the split; blockers belong on this issue.
Found via: coverage loop-back 2026-11-03 dezren39 commented on Nov 8, 2026 Partial verification — staying open (2026-11-07 done-task-only audit, tracking: #7016).
Queue task(s) [7366] were marked done, and some work did land:
- Direct commits referencing this issue: d775939
No merged change closes this issue's full scope, so the done status is not treated as completion. Remainder re-queued as triage task 11662. dezren39 commented on Nov 17, 2026 agent-note:v1
state: triaged (queue task 18242, openchamber scheduled lane code-f)
Fresh check 2026-11-17: issue open. PR #2714 (the one it blocked) merged 2026-11-11 as 3c42146. No open PR targets the mcpx internal/cli stress timeout. The stress-leg duration on main is not re-measured in this pass; the current main CI runs are still in progress.
Verdict: the merge blocker it names is resolved. The issue remains open to track the stress duration of internal/cli on main, and a follow-up fix task should be filed only if a main stress run exceeds 600s. No packet is enqueued in this pass.
Found via: queue triage task 18242 dezren39 commented on Nov 17, 2026 🤖 Agent note · done (triaged)
dezren39 commented on Nov 17, 2026 agent-note:v1
state: triaged (queue task 19786, openchamber scheduled lane code-i)
Fresh check 2026-11-17: issue open. PR #2714 (the one it blocked) merged 2026-11-11 as 3c42146. No open PR targets the mcpx internal/cli stress timeout. The stress-leg duration on main is not re-measured in this pass; the current main CI runs are still in progress.
Verdict: the merge blocker it names is resolved. The issue remains open to track the stress duration of internal/cli on main, and a follow-up fix task should be filed only if a main stress run exceeds 600s. No packet is enqueued in this pass.
Found via: queue triage task 19786 dezren39 commented on Nov 23, 2026 Resolved by the existing aggregate-duration fix in PR #2714 (merged as 3c42146). The measured cause was TestEverySettingFlagReachesTheResolvedValue rebuilding the settings schema per (command, flag) pair; batching reduced that test from 14.45s to 0.62s and retained the assertions/fallback cases (PR #2714 discussion and issue comment #2859 (comment)). Fresh verification on current main: Fleet run https://github.com/dezren39/fleet/actions/runs/45119183866 ran cd pkgs/mcpx && env -u MCPX_CONFIG go test ./internal/cli -race -shuffle=20261107 -count=10 and passed: ok github.com/developing-today/code/pkgs/mcpx/internal/cli 266.061s, below the 600s package timeout. No tests were deleted or skipped to achieve this pass. The latest nightly full-suite run also reported internal/cli at 198.363s with -count=3; its overall failure was in other packages. The duration watch no longer has an open acceptance gap. dezren39 commented on Nov 23, 2026 Closed as implemented. Acceptance met: current-main internal/cli race/shuffle/count=10 run passed in 266.061s, under the 600s timeout; aggregate-duration fix and retained tests are documented in the latest comment.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|