Repository navigation
fix(bin): refresh quarantine ledger and add diagnostic drift reporting - #192
Merged
Merged
Conversation
…/fm-test-run.sh apply_exclude_quarantined. Removed the unused `context` local and read the trailing TSV field into `_`. shellcheck -x clean in that region; bash -n passes. Full lint partition and tests not run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Refresh quarantine upkeep so each quarantined test is honestly described and drift is visible. The review (finding F6, deficiency rows 3 and 8) found stale reasons in tests/fm-test-quarantine.tsv and that the canonical Test command and the manual-sync selection treat quarantines differently. The captain approved one-task consent for this ship only and wants it done without losing test quality. Source: data/test-rerun-review/report.md (senior review, 2026-10-13); read the cited findings and deficiency-table row first.
The referenced findings identify stale Chrome explanations that can hide queued-input and geometry failures, and entries claiming fork-base reproduction even where the fork base passes or lacks an imported upstream case. Refresh each rationale and exact host/base evidence; remove a quarantine only after its original failing case passes. Record exact base/head context, host context, failure signature, a follow-up owner, and last successful failure reproduction date. Run quarantined subjects diagnostically, compare actual failure signatures, flag changed failures and newly passing subjects, and publish coverage differences. The canonical Test command includes quarantined subjects while manual sync excludes them; reconcile selections deliberately through the normal review path without losing test quality.
What Changed
bin/fm-test-run.shadds--diagnose-quarantined. It runs only the quarantined scripts in the selection, serially and once, with a required positive per-script timeout. For each script it printsFM_TEST_QUARANTINE_DIAGNOSTICwithstatus=matched|changed|newly-passing|skipped, based on a literal-substring comparison with the recorded failure signature. Failing exits stay visible in the test output but don't fail the diagnostic run. The flag is refused together with--exclude-quarantined.YYYY-MM-DDorunrecordedlast-reproduction date). It refuses malformed field counts, empty fields, bad dates, duplicate paths, and scripts that are missing or nottests/*.test.sh. Legacy orunrecordedrows logFM_TEST_QUARANTINE_EVIDENCE_INCOMPLETE.tests/fm-test-quarantine.tsvis refreshed (22 insertions, 34 deletions).docs/configuration.mddocuments the ledger evidence requirements, the retirement rule, and the difference between the canonical Test selection and manual upstream-sync selection. The selections are not changed, and aligning them is left to a separate decision.tests/fm-test-run.test.shaddstest_quarantine_diagnostics. It covers each status classification, the legacy-row incomplete marker, malformed-ledger and duplicate refusal, the timeout and exclusion conflicts, and parsing of the tracked ledger.Risk Assessment
✅ Low: The runner changes are additive and gated behind a new opt-in flag. Ordinary gates keep their failure exits, the parser refuses malformed rows, and the tests exercise the public runner. The pinned Test selection is left unchanged. The one finding is a minor false-positive in the incomplete-evidence log.
Testing
The canonical pipeline baseline passed on PC01: 48 subjects, 0 failures, 1 capability skip.
The earlier focused local enclosing runner contract failed only through its existing nested
fm-session-lock-ancestry.test.shquarantine:the pty-host was not reparented to init after the daemon ended(inner exit 1, 83346 ms; enclosing exit 1, 332889 ms).That earlier run stopped at the nested failure; the new diagnostic contract cases had passed before it.
The initial 180-second focused attempt hit its bound before that nested check.
All 16 quarantine entries and the pinned Test command are retained; a green run does not automatically retire a quarantine.
Historical evidence remains explicitly incomplete for these tests, with accepted evidence debt assigned to follow-up work rather than invented context or a reproduction campaign in this change:
tests/fm-wake-pair-dedup.test.sh: host/shell context, last failure-reproduction date.tests/fm-backend-herdr.test.sh: host/shell context, last failure-reproduction date.tests/fm-procevent.test.sh: host/shell context, last failure-reproduction date.tests/fm-watch-triage.test.sh: host/shell context, last failure-reproduction date.tests/fm-calm-pi-extension.test.sh: host/shell context.tests/fm-wake-queue.test.sh: host/shell context, last failure-reproduction date.tests/fm-secondmate-harness.test.sh: host/shell context, last failure-reproduction date.tests/fm-remote-transport-lanes.test.sh: base comparison, host/shell context, last failure-reproduction date.tests/fm-composer-codex-idle-live-e2e.test.sh: host/shell context, last failure-reproduction date.tests/fm-remote-secondmate-lifecycle-e2e.test.sh: host/shell context, last failure-reproduction date.tests/fm-agy-harness.test.sh: host/shell context, last failure-reproduction date.Drove the real runner against the tracked quarantine list: it parses, flags the 11 evidence-incomplete scripts, rejects conflicting flags, and live diagnostics classified one newly-passing and one changed signature without blocking the gate (exit 0). I did not re-run the new unit test myself (baseline did) and the pinned Test command is unchanged.
Evidence: diagnostic run output
Source: diagnostic run output
Evidence: parsed quarantine list
Source: parsed quarantine list
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
bin/fm-test-run.sh:2325- The evidence-incomplete check uses[[ "$entry" == *unrecorded* ]]on the whole TSV row. A row with fully recorded evidence is still flagged if its reason or signature text contains the word "unrecorded". Check only fields 5–8, or field 8 plus the context fields, instead.✅ **Test** - passed
✅ No issues found.
bin/fm-test-run.sh --changed --exclude-family real-herdr-gated --pc02-if-idlebin/fm-test-run.sh --quarantine-file tests/fm-test-quarantine.tsv --exclude-quarantined --all --listbin/fm-test-run.sh --diagnose-quarantined --list --all --per-script-timeout-secs 5bin/fm-test-run.sh --diagnose-quarantined --exclude-quarantined ...(refused rc=2)bin/fm-test-run.sh --diagnose-quarantined --jobs 2 --per-script-timeout-secs 60 tests/fm-calm-pi-extension.test.sh tests/fm-agy-harness.test.shbaseline--changedrun (includes test_quarantine_diagnostics)✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.