Skip to content

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

Closed

Description

@dezren39

Evidence

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.

Activity

  1. added
    kind/ciCI/CD pipelines, workflows, and build automation
    task/triageQueue packet kind: verify, reproduce, and route this item
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    on Nov 9, 2026
  2. developing-today commented on Nov 9, 2026

    @developing-today
    Contributor
  3. added
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    epic/pm-stackReprioritization program epic (2026-11-12)
    on Nov 9, 2026
  4. added this to the PM stack coherence milestone on Nov 12, 2026
  5. added a commit that references this issue on Nov 17, 2026
  6. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · fixed and merged — PR #10942

    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):

    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.

    Task 18568 completes as fixed_merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

app/pm-stackpm-stack (Pad/Grist) in developing-today/codeepic/pm-stackReprioritization program epic (2026-11-12)kind/ciCI/CD pipelines, workflows, and build automationpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions