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(github-backup): worker/test/index.test.mjs (5 tests pinning the queue Worker's auth + KV pagination) run by no workflow — #5937 wired only the Python suite #6085
infra/github-backup/worker/test/index.test.mjs — the only test suite for the github-backup queue Worker (infra/github-backup/worker/src/index.js) — is run by no workflow. The #5937 wiring (github-backup-tests.yml) covers only the Python regression suite (infra/github-backup/tests/test_*.py); the Worker's suite sits in a different directory with a different runner and was left out.
Evidence (verified this run, laptop primary @ aee78ac, HEAD == origin/main)
github-backup-tests.yml runs exactly one glob: infra/github-backup/tests/test_*.py. It never touches worker/. git grep for index.test.mjs and for worker/test across the tree returns no workflow, flake, justfile, or Nix reference (the one worker/test hit is cold-store-reaper's unrelated run-local-proof.mjs comment).
Hand run on the laptop this run: node --test infra/github-backup/worker/test/index.test.mjs → 5 tests, 5 pass, 0 fail (~0.08 s, fully offline — the Worker is driven against an in-memory KV stub).
What the 5 tests pin (test file lines 5–155, against the 102-line src/index.js): GET /queue forwards the cursor and exposes KV pagination metadata; a full page is read in bulk chunks of at most 100 keys; both GET /queue and POST /queue/ack require the bearer token; POST /queue/ack deletes every acked id and reports the count.
What it guards is live: per infra/github-backup/README.md, the Worker receives the estate's GitHub webhook events and queues them in KV, and the laptop drains that queue every 5 minutes. An auth or pagination regression in the Worker merges with no signal — events silently dropped or the drain loop wedged — and the Python suite that IS wired cannot see it, because it tests the laptop side, not the Worker.
Why it matters
#5937 closed the "github-backup tests run by no workflow" gap for the Python half and created the impression the estate's tests are covered. The Worker half — the internet-facing half, with the auth checks — is still decorative.
Acceptance criteria
An automated check (a step in github-backup-tests.yml following its existing fail-if-missing pattern, or an equivalent workflow) runs node --test infra/github-backup/worker/test/index.test.mjs on changes under infra/github-backup/worker/.
The check passes on current main (5 tests at filing).
Breaking a pinned behaviour (e.g. dropping the bearer-auth check on /queue/ack, or reading a page in chunks over 100 keys) makes the check fail.
Expectation: effort xs — add the suite to an automated check on changes under infra/github-backup/worker/; done when it passes on current main and dropping the /queue/ack auth check fails it.
What landed: new "Run the github-backup Worker tests (node --test)" step in github-backup-tests.yml with the workflow's fail-if-missing discipline (step fails if infra/github-backup/worker/test/index.test.mjs is absent), plus a header-comment paragraph documenting the suite. Python suite step untouched; no Worker behavior changes.
Verification:node --test infra/github-backup/worker/test/index.test.mjs on the branch — 11/11 pass; workflow YAML parses (yq) with the new step in place.
Verification this claim (fresh): Codex review on the PR head a613102 completed with no findings (has_any_findings: false). Local run on the exact head in a clean worktree: node --test infra/github-backup/worker/test/index.test.mjs → 11 tests, 11 pass, 0 fail; workflow YAML parses via yq.
Activity
developing-today commentedon Nov 5, 2026
CODE-1747
dezren39 commentedon Nov 5, 2026
🤖 Agent note · state: filed
dezren39 commentedon Nov 5, 2026
🤖 Agent note · picked up
268 remaining items
dezren39 commentedon Nov 11, 2026
🤖 Agent note · PR opened — parked on CI
queue/9889-6085-backup-worker-tests, worktree~/git/fleet/queue-9889-6085-backup-worker-tests(laptop). +15 lines, one file.github-backup-tests.ymlwith the workflow's fail-if-missing discipline (step fails ifinfra/github-backup/worker/test/index.test.mjsis absent), plus a header-comment paragraph documenting the suite. Python suite step untouched; no Worker behavior changes.node --test infra/github-backup/worker/test/index.test.mjson the branch — 11/11 pass; workflow YAML parses (yq) with the new step in place.Merge pull request #8514 from developing-today/queue/9889-6085-backup…
dezren39 commentedon Nov 11, 2026
🤖 Agent note · done (fixed_merged) — task 9889, lane code-c
github-backup-tests.ymlrunningnode --test infra/github-backup/worker/test/index.test.mjswith the workflow's existing fail-if-missing discipline — acceptance criterion 1 as written.node --test infra/github-backup/worker/test/index.test.mjs→ 11 tests, 11 pass, 0 fail; workflow YAML parses via yq.