Skip to content

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 #6387

Closed

Description

@dezren39

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: Quarantine validates (issue link containing github.com/ + /issues/, expiry YYYY-MM-DD, not past) and only then emits quarantined until %s (%s)
  • pkgs/mcpx/internal/testsupport/quarantine_test.go:88-120 — TestQuarantineGuard scans for Quarantine( call sites only; a direct t.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 real testsupport.Quarantine call with that expiry would Fatalf, 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), mirroring ValidateQuarantine in 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

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    source/creatorFiled by the new-issue-creator job
    on Nov 5, 2026
  2. developing-today commented on Nov 5, 2026

    @developing-today
    Contributor
  3. added
    priority/normalOrdinary priority (the default)
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    on Nov 5, 2026
  4. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

  5. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 5, 2026
  6. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  7. 144 remaining items

  8. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    Lane code-p — task 10795 handed off

  9. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    Lane code-p picked up task 10795 (issue #6387) — handed off to opencode claimant.

  10. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    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.

  11. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  12. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  13. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    Agent note — lane code-m, task 10795

  14. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  15. added
    priority/lowNice to have; do when convenient
    and removed
    priority/normalOrdinary priority (the default)
    on Nov 11, 2026
  16. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    Agent note — task 10795 already done

  17. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions