Skip to content

ci(pm-stack): decision-events-worker's bun suite (events/auth/pagination, incl. #9614 pins) runs nowhere — no workflow or flake check, and pm-stack-tests trigger paths omit it #9860

Closed

Description

@dezren39

Evidence

pm-stack/decision-events-worker/ (the #9335 decision-set event pipeline: authenticated webhook → D1 store + Durable Object fan-out) carries a real test suite that no venue runs.

  • pm-stack/decision-events-worker/package.json declares "test": "bun test".
  • The directory holds test/events.test.ts (104 lines) and test/pagination.test.ts (117 lines) — 14 tests, 51 expect() calls.
  • Runs nowhere. A repo-wide search for decision-events-worker finds no reference in .github/**, justfile, flake.nix, or any *.nix file.
  • .github/workflows/pm-stack-tests.yml is the pm-stack venue. Its push path filters list external-comms, opencode-claimant, opencode-usage-export, cloudflare-export, supabase-export, meta-exporter, dispatch, pad, grist, scripts — pm-stack/decision-events-worker/** is absent, so no step could fire even if one were added. Its steps run aggregator/projector/dispatch/external-comms/claimant/grist/exporter suites; none touches this worker.
  • .github/test-suite-registry.json has no entry for it (grep -c decision-events .github/test-suite-registry.json → 0; the quota-exporters row covers only the three other exporter suites).

Verified this run on origin/main at f8a79cd224 (clean checkout, HEAD == origin/main):

$ cd pm-stack/decision-events-worker && bun test
bun test v1.4.4 (38afee6c8)
 14 pass
 0 fail
 51 expect() calls
Ran 14 tests across 2 files. [12.00ms]

It needs only bun — no wrangler or npm install is required for the suite to run.

Why it matters

This suite is the only verification of the Worker's validation, auth, event-cursor and pagination logic, and its test titles pin the exact Codex-round findings filed as separate open issues:

Because nothing runs the suite, a regression of any of these — including the auth fail-closed behavior — passes CI silently.

This is the same class the fleet has already fixed per suite: #6084 (three quota-exporter suites), #6090 (dispatch), #6091 (claimant install bun suite), #6217 (external-comms), #6344 (meta-exporter), and still-open #8026 (pm-stack/exporters/watchdog-state.test.ts).

Suggested fix shape

Follow the guarded-step pattern already in pm-stack-tests.yml (see the dispatch step and the #6090/#6091/#6217 comments there):

  • Add pm-stack/decision-events-worker/** to the workflow's push (and pull_request, where present) trigger paths.
  • Add a step that asserts test/*.test.ts exists (fail the job if not, so a green run can never be a silently skipped suite), then runs bun install --frozen-lockfile && bun test in pm-stack/decision-events-worker (the dispatch step shows the exact shape).
  • Add a .github/test-suite-registry.json row recording the venue.

Acceptance criteria

  • A CI job runs the suite on every change touching pm-stack/decision-events-worker/**, and fails if the directory holds no *.test.ts or any test fails.
  • pm-stack-tests.yml (or another workflow) lists pm-stack/decision-events-worker/** in its trigger paths.
  • .github/test-suite-registry.json records the suite's venue.

Notes

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)
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    epic/pm-stackReprioritization program epic (2026-11-12)
    on Nov 14, 2026
  2. developing-today commented on Nov 14, 2026

    @developing-today
    Contributor
  3. added
    status/triagedTriaged and routed (see agent note)
    effort/sSmall: expected under 2 hours of work
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    on Nov 17, 2026
  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Task 19066 (triage) — triaged. The gap is still live on current main; follow-on fix task 20487 enqueued (queued).

    Fresh verification this run:

    • Issue ci(pm-stack): decision-events-worker's bun suite (events/auth/pagination, incl. #9614 pins) runs nowhere — no workflow or flake check, and pm-stack-tests trigger paths omit it #9860 OPEN; labels at triage: kind/ci, task/triage, source/creator, priority/normal, app/pm-stack, epic/pm-stack — no held / user/owned / do-not-merge / do-not-auto-edit labels.
    • pm-stack/decision-events-worker/test/ holds events.test.ts and pagination.test.ts on main, and package.json declares "test": "bun test" — the suite exists and (per the filing verification) passes 14/14 with bun alone.
    • Grep finds no decision-events reference in .github/workflows/pm-stack-tests.yml or .github/test-suite-registry.json — no trigger path, no step, no registry row. Nothing runs the suite.
    • The guarded-step template the fix should mirror is in the same workflow (dispatch suite, ~lines 59–69: assert test/*.test.ts exists, fail loudly if absent, then run the suite).

    Route: task 20487 (small_fix) carries the issue's own fix shape — trigger paths + guarded step + registry row. The behavioral issues in this component (#9612, #9613, #9615, #9794) and the sibling wiring gap #8026 are explicitly out of its scope.

    Labels set: status/triaged, queue/queued, effort/s, task/small-fix (priority/normal already present).

  5. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    lane: openchamber-scheduled-lane (code-g) · worker repo-worker-code · queue task 20487
    state: pr_opened — PR #11735 (branch queue/20487-9860-decision-events-ci) adds a guarded "Test decision-events-worker suite" step to pm-stack-tests.yml plus a registry row. Local run: bun test passes (15 tests). pm-stack-tests is nightly/dispatch-only, so no PR checks run; merge needs owner review or a workflow_dispatch run on the branch.

  6. added a commit that references this issue on Nov 18, 2026
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/codeeffort/sSmall: expected under 2 hours of workepic/pm-stackReprioritization program epic (2026-11-12)kind/ciCI/CD pipelines, workflows, and build automationpriority/normalOrdinary priority (the default)queue/queuedHas a queued queue tasksource/creatorFiled by the new-issue-creator jobstatus/triagedTriaged and routed (see agent note)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted teststask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions