diff --git a/.github/test-suite-registry.json b/.github/test-suite-registry.json index 22441ba6e5..4e27ba6b24 100644 --- a/.github/test-suite-registry.json +++ b/.github/test-suite-registry.json @@ -808,6 +808,20 @@ "related_issues": [6344], "notes": "Wired by #6344: pm-stack-tests.yml gains pm-stack/meta-exporter/** in both push and pull_request path filters and a guarded step running the explicit test file under Node 24; the registry records configuration, not an automatic coverage claim." }, + { + "id": "pm-stack.watchdog-state", + "paths": ["pm-stack/exporters/test/watchdog-state.test.ts"], + "invocation": "bun test ../exporters/test/watchdog-state.test.ts (working-directory pm-stack/aggregator)", + "venue": { + "workflow": ".github/workflows/pm-stack-tests.yml", + "job_step": "Test watchdog-state suite", + "state": "active", + "dispatchable": true + }, + "status": "mapped", + "related_issues": [8026], + "notes": "Wired by #8026: pm-stack-tests.yml gains a guarded step running the watchdog-state suite (the only verification of the quota watchdog decision layer, pm-stack/exporters/src/watchdog-state.ts) from pm-stack/aggregator per the exporters README invocation; the workflow runs nightly and on workflow_dispatch per .github/ci-policy.md, so no path filters remain to extend." + }, { "id": "github-backup.python", "paths": ["infra/github-backup/tests/test_*.py"], diff --git a/.github/workflows/pm-stack-tests.yml b/.github/workflows/pm-stack-tests.yml index f854e9a3c0..6c0f47ef90 100644 --- a/.github/workflows/pm-stack-tests.yml +++ b/.github/workflows/pm-stack-tests.yml @@ -224,3 +224,22 @@ jobs: exit 1 fi node --test pm-stack/meta-exporter/meta-quota-export.test.mjs + + # watchdog-state: bun test (suite for #8026; + # pm-stack/exporters/test/watchdog-state.test.ts, 12 tests, is the + # only verification of the quota watchdog decision layer in + # pm-stack/exporters/src/watchdog-state.ts and was run by no + # workflow - bare `bun test` never reaches it because + # pm-stack/exporters/ has no package.json. The invocation is the + # one documented in pm-stack/exporters/README.md, run from + # pm-stack/aggregator (whose dependencies are installed above). + # The file is asserted to exist first, so a green run cannot be + # a silently skipped suite; any failure fails the job. + - name: Test watchdog-state suite + working-directory: pm-stack/aggregator + run: | + if [ ! -f ../exporters/test/watchdog-state.test.ts ]; then + echo "::error::Missing suite file pm-stack/exporters/test/watchdog-state.test.ts - the watchdog-state suite was not run." + exit 1 + fi + bun test ../exporters/test/watchdog-state.test.ts