Repository navigation
Description
Problem
pkgs/github-ci/worker/test/ — the vitest suite for the github-ci webhook Worker (the #5693 receiver: workflow_run → Turso ci_events, plus the fleet push/PR/issues sink into agent events / repo snapshots) — is run by no workflow, flake check, or justfile recipe. The package does not even ship a package-lock.json, so the suite cannot be reproduced with npm ci either; it runs only when a human does an ad-hoc npm install by hand.
Evidence (verified this run at main ca698a867a)
- Suite: 4 files, 22 tests —
test/policy.test.ts(4: fleet-repo set, skip rules, dedupe-key format, payload retention),test/turso.test.ts(7: the github-ci(turso client): a wrong-shape 200 response is read as success or escapes as a raw TypeError — batch() never validates the pipeline envelope #6949 Turso pipeline-envelope pins),test/sink.test.ts(4: the github-ci Worker cannot reach the queue broker /events-append (tailnet-only) — public broker route needed for the #5693 sink design #6925 public broker-route pins),test/worker.test.ts(7: HMAC 401, ping, ci_events insert, the github-ci(turso client): a wrong-shape 200 response is read as success or escapes as a raw TypeError — batch() never validates the pipeline envelope #6949 results-less-200 delivery failure, skip/ignore rules, push → snapshot + sink event). - Hand run on the laptop in a probe copy (
~/git/fleet/probe-ghci-tests, real worker tree copied verbatim): afternpm install,npx vitest run→ 22/22 passed (repeated 3× full-suite, plus the two heaviest files standalone). The suite is green — it is simply never run. (One cold first run right after install showed 2 spurious failures; it did not reproduce in any later run and is not claimed as a finding.) npm ciis impossible:pkgs/github-ci/worker/containspackage.json,vitest.config.ts,wrangler.toml,src/,test/— and nopackage-lock.json(sibling Workerspkgs/atlas-search/workerandpkgs/pkarr-workerboth ship one).npm cierrors out for lack of a lockfile.- Wiring search:
grep -rn "github-ci"over.github/workflows/*.yml(outside name/comment lines), plusgrep -rn "pkgs/github-ci"overflake.nix,lib/default.nix,justfile→ no hits. No workflow mentions the package at all. - The pins are for live, recently-merged behavior: github-ci(turso client): a wrong-shape 200 response is read as success or escapes as a raw TypeError — batch() never validates the pipeline envelope #6949 (merged fix: Turso envelope validation —
turso.test.tsis its regression suite, andworker.test.tscarries the end-to-end "results-less 200 fails the delivery" case), github-ci Worker cannot reach the queue broker /events-append (tailnet-only) — public broker route needed for the #5693 sink design #6925 (broker route,sink.test.ts), and the HMAC gate that github-ci(worker): HMAC gate fails open when GITHUB_WEBHOOK_SECRET is unset — unsigned POSTs are processed and written to Turso #6936 (open) is about. A regression in any of these would currently be caught by nothing. - Sibling Workers' suites show the house wiring pattern exists:
pkgs/id/hosted-workerhasid-hosted-worker-tests.yml(ci(id): hosted-worker routing.test.ts (4 tests pinning the fail-closed binding/jurisdiction contract) run by no workflow — the hosted data plane's gate is verified nowhere #6095); the github-backup Worker's suite got its own filing (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, open). This package — the one writing CI events and fleet snapshots — has neither a workflow nor a filing.
Why it matters
This Worker is on the fleet's observability path: it decides which workflow runs land in ci_events, advances agent_repo_snapshots, and appends sink events. Its policy rules (which repos count as fleet, which runs are stored, the dedupe key format shared with the Edge Function) are exactly the kind of contract that drifts silently. The regression suites for its two most recent correctness fixes (#6949, #6925) exist and pass — unwired and lockfile-less, they protect nothing.
Acceptance criteria
- A committed
package-lock.jsonforpkgs/github-ci/workermakesnpm ciwork from a clean checkout. - A workflow (house pattern, e.g.
id-hosted-worker-tests.yml/bin-tests.yml: dispatch + path-gated push-to-main, main tier) runs the suite —npm ci+npm test(vitest) inpkgs/github-ci/worker— and fails loudly if the suite files are missing, never a silent skip. - The wiring demonstrably executes all 22 tests (run output reports 4 test files / 22 tests passing), on a change touching
pkgs/github-ci/**. - The suite passes via the wiring on main after the change lands.
Dedup (this run): title/keyword searches for github-ci + "run by no workflow", the four test filenames, and "github-ci worker suite" found no existing filing for this suite's wiring; #6085 is the github-backup Worker (different package), #6093 is pkarr-worker's lockfile defect, #6936/#6945/#6946 are live-code defects in this Worker, not its test wiring.
Activity
developing-today commentedon Nov 8, 2026
🤖 Agent note · filed
npm cican run it — natural home: a new workflow on the id-hosted-worker-tests.yml / bin-tests.yml house pattern (dispatch + path-gated push-to-main, main tier).npx vitest run22/22 passed (3× full-suite repeats);npm cifails (no package-lock.json in pkgs/github-ci/worker); wiring greps over .github/workflows/, flake.nix, lib/default.nix, justfile → no hits. Filed via the developing.today GitHub App (user-token create silently no-opped; fleet_paperwork create verified by readback).5 remaining items
dezren39 commentedon Nov 10, 2026
🤖 Agent note · pr_opened
direct, so this lane worked itqueue/13640-7674-github-ci-ci-wiring): newpackage-lock.json+.github/workflows/github-ci-worker-tests.yml(house main-tier pattern, fail-loud on missing suite files). Verified in the laptop worktree:npm cifrom clean +npm test= 4 test files / 29 tests passed (suite grew from the packet's 22; sink.test.ts is now 11 tests).dezren39 commentedon Nov 10, 2026
Agent note — lane code-x, task 13691
parked— competing-task conflict / awaiting triage resolution.status/needs-triage, and no triage-step agent note found.queue/13640-7674-github-ci-ci-wiring; worktree-verifiednpm ci+npm test= 29 tests passed).dezren39 commentedon Nov 10, 2026
🤖 Agent note · parked (awaiting CI)
dezren39 commentedon Nov 10, 2026
🤖 Agent note · parked
dezren39 commentedon Nov 10, 2026
Lane code-p picked up task 13691 (issue #7674) — handed off to opencode claimant.
dezren39 commentedon Nov 10, 2026
🤖 Agent note · parked — CI pending
dezren39 commentedon Nov 10, 2026
🤖 Agent note · handed off
opencode(lane row 5817)dezren39 commentedon Nov 10, 2026
agent-note: task 13691 handed off to opencode claimant (lane row 5817) by lane code-v. Handoff reason: scheduled shift is time-bounded; claimant is the persistent execution session. Issue #7674 verified OPEN with no hard-stop labels and no needs-triage (fresh gh, lane code-v 2026-11-10). Parked 1200s for the claimant.
Merge pull request #8142 from developing-today/queue/13640-7674-githu…
dezren39 commentedon Nov 10, 2026
🤖 Agent note · parked (main-tier CI run queued)