You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci(pm-stack/exporters): watchdog-state.test.ts (12 tests, added in #6032) runs nowhere — and pm-stack-tests trigger paths omit pm-stack/exporters/** #8026
pm-stack/exporters/test/watchdog-state.test.ts (12 tests, ~72k assertions: PBT invariants + MBT ladder model + acceptance fixtures + disk round-trip) is the only verification of pm-stack/exporters/src/watchdog-state.ts — the decision layer of the quota watchdog core (failure classes + repair ladder), landed 2026-11-08 in #6032 (now merged; #6032 CLOSED 2026-11-09).
It runs nowhere:
No workflow step invokes it. grep -rn "watchdog-state" --exclude-dir=.git . hits only the test's own import, and pm-stack/exporters/README.md (which documents the manual invocation cd pm-stack/aggregator && bun test ../exporters/test/watchdog-state.test.ts — proof the authors know bare bun test doesn't reach it).
pm-stack/exporters/ has no package.json; the root package.json has no workspaces/scripts, so no aggregate bun test reaches it. bun test in pm-stack/aggregator scans only that directory.
.github/test-suite-registry.json has no entry for it (quota-exporters covers only the three other exporter suites: opencode-usage, cloudflare, supabase).
pm-stack-tests.yml trigger paths (push + pull_request) list external-comms, opencode-claimant, opencode-usage-export, cloudflare-export, supabase-export — pm-stack/exporters/** is absent, so even a wired-up step would never fire on changes to the watchdog.
Verified on origin/main c2283a57 in a clean worktree. Suite passes on the laptop:
bun test ../exporters/test/watchdog-state.test.ts (from pm-stack/aggregator)
12 pass, 0 fail, 71766 expect() calls
Why it matters
This is the same already-fixed class: #6084 (three quota-exporter suites ran nowhere → wired into pm-stack-tests.yml), #6344 (meta-exporter suite runs nowhere), #7681 (pm-stack-tests triggers omit dispatch/grist/scripts). The watchdog decision layer drives repair escalation; a regression here passes CI silently — exactly the failure mode #6084 fixed for the sibling exporters.
Suggested fix shape
Follow the #6090/#5951/#6217 pattern already in pm-stack-tests.yml: a step asserting test/watchdog-state.test.ts exists, then bun test on the explicit path (the README's invocation), plus pm-stack/exporters/** in the workflow's push/pull_request paths, plus a registry venue entry. Small, mechanical, precedent-covered.
Acceptance criteria
A CI job runs watchdog-state.test.ts on every PR touching pm-stack/exporters/** and fails if the file is missing or any test fails.
pm-stack-tests.yml (or another workflow) lists pm-stack/exporters/** in its trigger paths.
.github/test-suite-registry.json records the suite's venue.
Fresh verification: the defect was live and untouched on current main — pm-stack-tests.yml had no exporters step and the registry had no watchdog-state entry (only an unrelated openai-cred-watchdog suite). The issue had never been worked (one Kaneo link comment).
Fix (PR #10942, MERGED 3b62edd; this issue auto-closed):
.github/workflows/pm-stack-tests.yml: new guarded step Test watchdog-state suite at the end of the test job — asserts the test file exists, then runs the README invocation from pm-stack/aggregator: bun test ../exporters/test/watchdog-state.test.ts. Any failure fails the job.
Acceptance mapping: (1) a CI job runs the suite and fails if missing/failing — done; (3) registry records the venue — done. (2) Trigger paths: since this issue was filed, Drew's 2026-11-16 CI policy moved this workflow to nightly + workflow_dispatch for ALL suites — no path filters remain to extend, and re-adding them for one suite would contradict the policy; the suite now runs on every nightly run and on dispatch, the same venue as the sibling suites wired by #6084/#6344. Recorded in the PR body as well.
Verification: the exact step invocation passes locally (12 pass, 0 fail, 71766 expect() calls — matching the issue's evidence); workflow YAML parses with the step in place; check-suite-registry.sh reports 22 FAIL lines both before and after (all pre-existing, none watchdog-related). Diff +33 lines across the two files.
Activity
developing-today commentedon Nov 9, 2026
CODE-2369
Merge pull request #10942 from developing-today/queue/18568-8026-watc…
dezren39 commentedon Nov 17, 2026
🤖 Agent note · fixed and merged — PR #10942
any-jFresh verification: the defect was live and untouched on current main —
pm-stack-tests.ymlhad no exporters step and the registry had no watchdog-state entry (only an unrelated openai-cred-watchdog suite). The issue had never been worked (one Kaneo link comment).Fix (PR #10942, MERGED 3b62edd; this issue auto-closed):
.github/workflows/pm-stack-tests.yml: new guarded step Test watchdog-state suite at the end of thetestjob — asserts the test file exists, then runs the README invocation frompm-stack/aggregator:bun test ../exporters/test/watchdog-state.test.ts. Any failure fails the job..github/test-suite-registry.json: new entrypm-stack.watchdog-state(venue recorded, status mapped, related ci(pm-stack/exporters): watchdog-state.test.ts (12 tests, added in #6032) runs nowhere — and pm-stack-tests trigger paths omit pm-stack/exporters/** #8026).Acceptance mapping: (1) a CI job runs the suite and fails if missing/failing — done; (3) registry records the venue — done. (2) Trigger paths: since this issue was filed, Drew's 2026-11-16 CI policy moved this workflow to nightly + workflow_dispatch for ALL suites — no path filters remain to extend, and re-adding them for one suite would contradict the policy; the suite now runs on every nightly run and on dispatch, the same venue as the sibling suites wired by #6084/#6344. Recorded in the PR body as well.
Verification: the exact step invocation passes locally (12 pass, 0 fail, 71766 expect() calls — matching the issue's evidence); workflow YAML parses with the step in place;
check-suite-registry.shreports 22 FAIL lines both before and after (all pre-existing, none watchdog-related). Diff +33 lines across the two files.Task 18568 completes as fixed_merged.