Repository navigation
Description
Summary
pkgs/mcpx/scripts/gotest-report.py — the reporter that holds the mcpx Go suite to its skip record on main — exempts a skipped test from the record whenever the test's last output line merely contains the substring quarantined until (gotest-report.py:63). It never parses the date, never checks the issue link, and never checks expiry, although its own header (gotest-report.py:15-19) defines the exemption as a testsupport.Quarantine notice of the form quarantined until <date> (<issue link>) under #1973.
The Go side enforces that shape strictly — ValidateQuarantine (pkgs/mcpx/internal/testsupport/quarantine.go:35-48) requires a GitHub issue link and a YYYY-MM-DD expiry that has not passed, and TestQuarantineGuard audits every Quarantine( call site — but the guard only audits calls to testsupport.Quarantine. A plain t.Skip(...) / t.Skipf(...) whose message (or last output line) contains the phrase is audited by nobody and exempted by the reporter: it never counts against the skip record, never raises the ceiling failure, and is reported in the summary as "quarantined under #1973 (issue + expiry, exempt from the record)" (gotest-report.py:158-161) whether or not any issue or expiry exists.
Evidence (file:line, main @ 5c56f76)
- pkgs/mcpx/scripts/gotest-report.py:62 — a skip's reason is only its last non-header output line, truncated to 200 chars:
reasons[k] = (lines[-1] if lines else "(no reason given)")[:200] - pkgs/mcpx/scripts/gotest-report.py:63 — the whole exemption test:
"quarantined until " in reasons[k] - pkgs/mcpx/scripts/gotest-report.py:64 — exempted tests are removed from
counted, the list the record/ceiling decision (decide, :84-103) and the exit code are computed from - pkgs/mcpx/internal/testsupport/quarantine.go:24-29,35-48 — the real contract the reporter claims to mirror:
Quarantinevalidates (issue link containinggithub.com/+/issues/, expiryYYYY-MM-DD, not past) and only then emitsquarantined until %s (%s) - pkgs/mcpx/internal/testsupport/quarantine_test.go:88-120 —
TestQuarantineGuardscans forQuarantine(call sites only; a directt.Skip("quarantined until …")is outside its pattern and its count check
Verified this run (laptop, real reporter @ origin/main 5c56f76)
Probe ~/git/fleet/probe-gotest-quarantine ran the real gotest-report.py on synthetic go test -json streams (1 passing test + 1 skipped test, stored record skipped_count: 0):
- Plain skip, reason
just skipping this one(control): exit 1, counted as 1 skipped against the record of 0 — the ceiling works. - Skip with reason
quarantined until banana (not a link): exit 0, counted as 0 skipped — exempt despite a nonsense date and a non-link. - Skip with reason
quarantined until 2000-01-01 (https://github.com/developing-today/code/issues/1973): exit 0, counted as 0 skipped — exempt despite an expiry ~26 years in the past (a realtestsupport.Quarantinecall with that expiry wouldFatalf, per quarantine.go:26-28). - Skip with reason
this test is not quarantined until further notice, honest: exit 0, counted as 0 skipped — the bare substring in an unrelated sentence is enough. - Control, real shape
quarantined until 2027-01-01 (https://github.com/developing-today/code/issues/1973): exit 0, 0 skipped — the legitimate exemption that must keep working.
Why it matters
The skip record is the ratchet that stops skipped mcpx tests from creeping back in silently ("a run that skips more tests than the record fails; the record only moves down", header :9-12). The quarantine exemption is the one hole in that ratchet, and today the hole is wider than its documented, guarded shape: any test — including one whose author never heard of #1973 — can opt out of the ceiling forever by putting seven words in its skip message, with no issue, no expiry, and no audit. Because the summary then labels it a #1973 quarantine, the evasion is not just silent, it is misattributed to the tracked, expiring mechanism.
Acceptance criteria
- The exemption in gotest-report.py parses the full documented shape —
quarantined until <YYYY-MM-DD> (<github issue URL>)— instead of a substring test, and validates the date (real calendar date) and the link (a GitHub/issues/URL), mirroringValidateQuarantinein quarantine.go - A quarantine whose expiry has passed at report time is not exempt (it counts against the record like any other skip), or the reporter fails loudly naming it — matching the Go side's "expired quarantine fails" rule
- A skip whose last line merely contains the phrase, has a malformed/nonsense date, or has no issue link counts against the record and can raise the ceiling failure (exit 1), as the plain-skip control does today
- The legitimate control keeps working byte-for-byte:
quarantined until 2027-01-01 (https://github.com/developing-today/code/issues/1973)stays exempt and is still reported as quarantined in the summary - Pinning tests in pkgs/mcpx/scripts/test_gotest_report.py cover the three fake shapes above (nonsense date/link, expired date, substring-in-sentence) plus the legitimate shape, in the style of the existing
test_quarantine_skip_remains_exempt_from_skip_record - The summary's quarantined line is only emitted for skips that passed the full validation
Dedup
gh issue list --search for "gotest-report quarantine", "1973 quarantine skip" (2026-11-05): #3313 (closed) is the disjoint package-level-fail invisibility bug in the same file; #1973 (closed) created the quarantine mechanism and its Go-side guard. No open or closed issue covers the reporter's substring-only exemption check.
Activity
developing-today commentedon Nov 5, 2026
CODE-1902
dezren39 commentedon Nov 5, 2026
🤖 Agent note · filed
quarantined until <YYYY-MM-DD> (<github issue URL>)shape (incl. expiry), fake shapes count against the skip record, legitimate shape stays exempt; pinning tests in test_gotest_report.py.dezren39 commentedon Nov 5, 2026
🤖 Agent note · picked up
144 remaining items
dezren39 commentedon Nov 10, 2026
Lane code-p — task 10795 handed off
dezren39 commentedon Nov 10, 2026
Lane code-p picked up task 10795 (issue #6387) — handed off to opencode claimant.
dezren39 commentedon Nov 10, 2026
agent-note:v1
state: handed-off
queue: repo-health-code-pilot
task: 10795 (small_fix, worker repo-worker-code, lane code-e)
by: repo-worker-code lane code-e
at: 2026-11-10T06:23:08Z
Handed off to the opencode execution lane (assigned_lane=opencode via fleet queue lane, lane row 3221). Fresh check: issue #6387 OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit absent). Attempts 5/6. This lane does not work task 10795 directly. Parked 1200s to release the claim for claimant binding.
dezren39 commentedon Nov 10, 2026
🤖 Agent note · handed off
repo-health-code-pilot· kindsmall_fix· issue mcpx(gotest-report): the #1973 quarantine exemption is a substring test — any skip whose last line says 'quarantined until ' evades the skip record, with no date, link, or expiry check #6387status/needs-triage.dezren39 commentedon Nov 10, 2026
🤖 Agent note · handed off
dezren39 commentedon Nov 10, 2026
Agent note — lane code-m, task 10795
dezren39 commentedon Nov 10, 2026
🤖 Agent note · handed off
dezren39 commentedon Nov 11, 2026
Agent note — task 10795 already done