Files
fusion/scripts/lib/test-quarantine.json
gsxdsm e526ad2b2c FN-6447: rescue session reconnect teardown
Rescue the session reconnect SSE test by shutting down route-owned background work before temp cleanup.

- Isolate the focused API harness from TaskStore EventEmitter startup workers.
- Dispose API routes and scheduled AI session cleanup before deleting the test temp root.
- Remove session-reconnect from the dashboard quarantine ledger and vitest skip list.

Files changed:
 .../src/__tests__/session-reconnect.test.ts        | 22 ++++++++++++++++++----
 packages/dashboard/vitest.config.ts                |  6 ++++--
 scripts/lib/test-quarantine.json                   |  5 -----
 3 files changed, 22 insertions(+), 11 deletions(-)

Fusion-Task-Id: FN-6447

Fusion-Task-Lineage: a3fef28c-b92b-4f47-9181-a63bb31e4f48
2026-06-14 15:29:35 -07:00

71 lines
5.4 KiB
JSON

{
"$comment": "Flaky-test quarantine ledger (deletion ratchet \u2014 see AGENTS.md 'Flaky tests: quarantine on sight' and docs/testing.md 'Quarantine ledger and the deletion ratchet'). A test observed failing without a corresponding real bug is quarantined ON SIGHT: add an entry here AND a matching one-line `exclude` entry in that package's vitest config, in the same commit. Every entry needs a non-empty `reason` (link the failing run) and a `quarantinedAt` date \u2014 the entry expires 14 days later, at which point the test file is DELETED unless someone rescues it with evidence it catches real regressions plus a root-cause fix (never appeasement). There is deliberately no loader module and no automation around this file: it is a dated record, the vitest config exclude is the mechanism, and the sweep is policy executed by whoever touches the suite.",
"entries": [
{
"file": "packages/dashboard/app/components/__tests__/ChatView.regular-composer-no-right-line.test.tsx",
"reason": "FN-6441: orphaned dashboard component test fails standalone; ChatView emits act warnings and regular-composer right-line invariant assertion fails. Quarantined instead of widening waits or weakening assertions.",
"quarantinedAt": "2026-06-14"
},
{
"file": "packages/dashboard/app/components/__tests__/MissionManager.test.tsx",
"reason": "FN-6441: orphaned dashboard component test fails standalone with stale mission hierarchy/progress/status expectations while most cases pass. Quarantined for rescue/delete ratchet instead of assertion appeasement.",
"quarantinedAt": "2026-06-14"
},
{
"file": "packages/dashboard/app/components/__tests__/ModalReentry.test.tsx",
"reason": "FN-6441: orphaned dashboard component test fails standalone because PlanningModal cases render outside ToastProvider. Quarantined for harness rescue instead of product/source changes.",
"quarantinedAt": "2026-06-14"
},
{
"file": "packages/dashboard/app/components/__tests__/ModelSelectorTab.test.tsx",
"reason": "FN-6441: orphaned dashboard component test fails standalone across model selector cases because expected Executor Model labels/options are no longer rendered by the current component contract. Quarantined for harness/expectation rescue.",
"quarantinedAt": "2026-06-14"
},
{
"file": "packages/dashboard/app/components/__tests__/NewAgentDialog.test.tsx",
"reason": "FN-6441: orphaned dashboard component test fails standalone across broad dialog flows with duplicate fetch/update calls and stale favorite labels. Quarantined for focused rescue rather than timeout/assertion appeasement.",
"quarantinedAt": "2026-06-14"
},
{
"file": "packages/dashboard/app/components/__tests__/OAuthReloginBanner.test.tsx",
"reason": "FN-6441: orphaned dashboard component test times out every case under current async/polling behavior. Quarantined instead of increasing test timeouts.",
"quarantinedAt": "2026-06-14"
},
{
"file": "packages/dashboard/app/components/__tests__/PlanningModeModal.favorites.test.tsx",
"reason": "FN-6441: orphaned dashboard component test fails standalone because PlanningModeModal favorite/keyboard cases render outside ToastProvider. Quarantined for harness rescue.",
"quarantinedAt": "2026-06-14"
},
{
"file": "packages/dashboard/app/components/__tests__/PlanningModeModal.questions.test.tsx",
"reason": "FN-6441: orphaned dashboard component test fails standalone because PlanningModeModal question/summary cases render outside ToastProvider. Quarantined for harness rescue.",
"quarantinedAt": "2026-06-14"
},
{
"file": "packages/dashboard/app/components/__tests__/PlanningModeModal.swipe-back.test.tsx",
"reason": "FN-6441: orphaned dashboard component test fails standalone because PlanningModeModal mobile navigation cases render outside ToastProvider. Quarantined for harness rescue.",
"quarantinedAt": "2026-06-14"
},
{
"file": "packages/dashboard/app/components/__tests__/SkillsView.css.test.ts",
"reason": "FN-6441: orphaned dashboard CSS guardrail fails standalone because runtime-card toggle positioning expectation no longer matches current stylesheet. Quarantined for rescue/delete review without weakening assertion.",
"quarantinedAt": "2026-06-14"
},
{
"file": "packages/dashboard/app/components/__tests__/mobile-css.test.tsx",
"reason": "FN-6441: orphaned dashboard CSS foundation test fails standalone on stale workflow-step-manager modal and breakpoint assertions. Quarantined for rescue/delete review without broad CSS changes.",
"quarantinedAt": "2026-06-14"
},
{
"file": "packages/dashboard/src/__tests__/mission-e2e.test.ts",
"reason": "FN-6444: orphaned dashboard mission API test fails standalone across broad stale mission creation/update/backfill/shared-branch assertions. Quarantined for focused rescue/delete ratchet instead of weakening assertions or editing product route source.",
"quarantinedAt": "2026-06-14"
},
{
"file": "packages/dashboard/src/__tests__/planning.test.ts",
"reason": "FN-6444: orphaned dashboard planning route/API test is slow and fails standalone across stale agent/session mocks plus temp cleanup leakage. Quarantined instead of widening waits/timeouts or weakening assertions.",
"quarantinedAt": "2026-06-14"
}
]
}