GeezerVison is showing github.com — ci(pm-stack): the three quota-exporter test suites (opencode-usage 4, cloudflare 35, supabase 12) run by no workflow — the #2574/#2492 regression pins are decorative · Issue #6084 · developing-today/code
ci(pm-stack): the three quota-exporter test suites (opencode-usage 4, cloudflare 35, supabase 12) run by no workflow — the #2574/#2492 regression pins are decorative #6084DescriptionProblem
The three pm-stack quota-exporter test suites — pm-stack/opencode-usage-export/opencode-usage-export.test.mjs, pm-stack/cloudflare-export/cloudflare-quota-export.test.mjs, and pm-stack/supabase-export/supabase-quota-export.test.mjs — are run by no workflow, flake check, or Nix build. Each README documents only a manual local run. The exporters themselves run on production systemd timers and feed the quota plane; their regression pins execute only when a human remembers.
Evidence (verified this run, laptop primary @ aee78ac, HEAD == origin/main)
git grep for each suite name across the whole tree returns only the suites' own READMEs (and, for cloudflare, the test file's own header comment). No reference in .github/workflows/, the flake, the justfile, or any Nix file. pm-stack-tests.yml runs the aggregator/projector bun suites, the seed/deploy-install smokes, and (since ci(pm-stack): run the claimant and grist Python suites in pm-stack-tests (#5951) #5953) the claimant/grist Python suites — none of the three exporter suites.
- Hand runs on the laptop this run, all green:
node --test pm-stack/opencode-usage-export/opencode-usage-export.test.mjs → 4 tests, 4 pass, 0 fail (~0.5 s; pins store move detection, stale/missing store failure documents and exit codes 3/4).
node --test pm-stack/cloudflare-export/cloudflare-quota-export.test.mjs → 35 tests, 35 pass, 0 fail (~0.6 s; pins the cloudflare-export: R2 bucket enumeration fails open — a 500/malformed buckets response publishes r2Buckets: [] in a status:ok document, and pagination past 100 buckets is silently dropped #2574 R2 bucket-enumeration "unknown, never partial" contract and the bin+pm-stack: four entry points still use the pre-#2083 raw-path entry-point check — codedb-bridge, supabase/cloudflare exporters and the claimant installer silently no-op via any symlink #4325 entry-point checks).
bun test in pm-stack/supabase-export/ → 12 tests, 12 pass, 0 fail (pins the supabase-export: billedFromAddons silently zeroes unpriced selected addons (and accepts negative amounts) — a paid addon reports as measured $0 #2492 fail-closed billing rules). Note the runner split: this suite imports bun: modules, so node --test fails on it with ERR_UNSUPPORTED_ESM_URL_SCHEME — wiring must run it under bun, unlike the other two.
- What they guard is live: each exporter ships a
.service/.timer pair in its directory and publishes the latest.json documents the aggregator's quota gatherer consumes (feat(quota-plane): quota-gatherer service in the PM stack — 15-minute tick, quota-current contract #1151/External-system observability: unified PM + queue + quota attribution (webhooks, hot list, session IDs, projections) #2072). The pins exist for real incidents — cloudflare-export: R2 bucket enumeration fails open — a 500/malformed buckets response publishes r2Buckets: [] in a status:ok document, and pagination past 100 buckets is silently dropped #2574 (partial bucket lists published as complete), supabase-export: billedFromAddons silently zeroes unpriced selected addons (and accepts negative amounts) — a paid addon reports as measured $0 #2492 (unpriced addons billed), bin+pm-stack: four entry points still use the pre-#2083 raw-path entry-point check — codedb-bridge, supabase/cloudflare exporters and the claimant installer silently no-op via any symlink #4325 (symlinked invocation silently no-opping) — and today none of them can catch a regression before it merges.
Why it matters
Three production data producers have test suites that are decorative. A regression in enumeration completeness, billing fail-closed behaviour, or store move detection merges silently and surfaces as wrong quota/billing data on the dashboard — the exact failure classes these suites were written to pin.
Related but distinct: #5954 (pm-stack-tests.yml itself is disabled_manually in Actions) and #5993 (the pm-git-sync/tailnet script suites, a different set of suites in the same workflow). This issue is about the three exporter suites being absent from every check; wherever they are wired, #5954's enablement is what lets that check actually execute.
Acceptance criteria
Activitydeveloping-today commented on Nov 5, 2026 dezren39 commented on Nov 5, 2026 🤖 Agent note · state: filed
dezren39 commented on Nov 5, 2026 🤖 Agent note · queue duplicate check: the enqueue command was invoked twice this run (its first output was truncated in my log). Confirmed task 9883 enqueued for this issue; if a second task with dedupe_key repo-health:v1:triage:developing-today/code:issue:6084 exists, the second claimant should supersede/close it as a duplicate.
dezren39 commented on Nov 8, 2026 🤖 Agent note · picked up
- Agent: queue worker (repo-worker-code), lane code-f
- Session / ID: task 12917
- Found via: queue claim
- Task: Fix ci(pm-stack): the three quota-exporter test suites (opencode-usage 4, cloudflare 35, supabase 12) run by no workflow — the #2574/#2492 regression pins are decorative #6084 — wire the three quota-exporter test suites into pm-stack-tests.yml.
- Revalidation: issue ci(pm-stack): the three quota-exporter test suites (opencode-usage 4, cloudflare 35, supabase 12) run by no workflow — the #2574/#2492 regression pins are decorative #6084 OPEN, no held/user/owned/do-not-merge/do-not-auto-edit labels. Existing open PR ci(pm-stack): wire the three quota-exporter suites into CI for #6084 #6928 (branch queue/9883-6084-wire-exporters-ci, from orphaned task 9883 work, published by the git-hygiene sweep) already implements exactly this wiring — single-file diff to .github/workflows/pm-stack-tests.yml. No competing PR will be created; this task will verify PR ci(pm-stack): wire the three quota-exporter suites into CI for #6084 #6928 (tests + negative pin demonstration on the laptop), disposition it, and merge under the standing criteria if verified.
- Expectation: done = PR ci(pm-stack): wire the three quota-exporter suites into CI for #6084 #6928 verified and merged (closing ci(pm-stack): the three quota-exporter test suites (opencode-usage 4, cloudflare 35, supabase 12) run by no workflow — the #2574/#2492 regression pins are decorative #6084) or parked with a named resume condition.
dezren39 commented on Nov 8, 2026 🤖 Agent note · done
- Agent: queue worker (repo-worker-code), lane code-f
- Session / ID: task 12917
- Outcome: fixed_merged — PR ci(pm-stack): wire the three quota-exporter suites into CI for #6084 #6928 merged as da9982b (verified: origin/main's pm-stack-tests.yml now carries the exporter wiring).
- What happened: PR ci(pm-stack): wire the three quota-exporter suites into CI for #6084 #6928 (from task 9883's orphaned work, published by the git-hygiene sweep) already contained exactly this fix. This task revalidated it, merged current main into its branch (resolving the trigger paths conflict by keeping both the claimant and exporter paths), verified it, dispositioned a Codex P1, and merged it — no competing PR was created.
- Verification (laptop, at the merged head): opencode-usage suite 12/12 under node --test, cloudflare suite 35/35 under node --test, supabase suite 12/12 under bun test. Negative demonstration: breaking the cloudflare-export: R2 bucket enumeration fails open — a 500/malformed buckets response publishes r2Buckets: [] in a status:ok document, and pagination past 100 buckets is silently dropped #2574 partial-bucket pin (publishing the partial list on a failed page) turned 2 cloudflare tests red; reverted, never committed.
- Codex: round 1 on the rebased head found one P1 (runner Node 22 node:sqlite ExperimentalWarning vs the suite's empty-stderr import assertion) — fixed in 25d09c7 by adding setup-node@v7 node-version 24 before the exporter steps, replied on the thread; round 2 completed with no findings.
- CI note: the workflow's own checks stayed QUEUED because pm-stack-tests.yml is disabled_manually (issue ci(pm-stack): pm-stack-tests.yml is disabled_manually in Actions — no suite in it can run #5954) — the suites execute in CI once ci(pm-stack): pm-stack-tests.yml is disabled_manually in Actions — no suite in it can run #5954 re-enables the workflow; until then the laptop runs above are the test evidence, per the PR comment.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|