GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ci(id-mail): deploy.test.mjs (4 tests pinning the #3281 typo'd-flag deploy guard) run by no workflow — the deploy script can force-delete the live Worker · Issue #6082 · developing-today/code

ci(id-mail): deploy.test.mjs (4 tests pinning the #3281 typo'd-flag deploy guard) run by no workflow — the deploy script can force-delete the live Worker #6082

New issue
Copy link
New issue
Copy link
Closed
Closed
ci(id-mail): deploy.test.mjs (4 tests pinning the #3281 typo'd-flag deploy guard) run by no workflow — the deploy script can force-delete the live Worker#6082
Copy link
Assignees
dezren39
Labels
app/id-mailpkgs/nixos id-mail service and workerarea/ciCI/CD pipelines, workflows, and build automation (area)kind/ciCI/CD pipelines, workflows, and build automationpriority/normalOrdinary priority (the default)queue/parkedQueue task is parked (waiting on CI, time, or an event)source/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobstatus/parkedDeliberately paused with a recorded resume conditionstatus:donetask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state

Description

@dezren39
dezren39
opened on Nov 5, 2026
Issue body actions

Problem

nixos/services/id-mail/worker/deploy.test.mjs — the only test suite for the id-mail worker deploy script — is run by no workflow, flake check, or Nix build. Its package's own npm test exists, but nothing invokes it.

Evidence (verified this run, laptop primary @ aee78ac, HEAD == origin/main)

  • nixos/services/id-mail/worker/package.json:6 declares "test": "node --test deploy.test.mjs", and deploy.test.mjs:1-9 documents what it pins: it drives the real deploy.mjs in a temp dir with stubbed bws/wrangler binaries and pins the three id-mail(worker deploy): unrecognized arguments are silently ignored — a typo'd --dry-rnu enters the real deploy sequence and force-deletes the retired 'id-mail' Worker #3281 cases — --dry-run validates only and exits 0, a typo'd --dry-rnu is a usage error with zero external calls, and a bare run performs the real deploy sequence against the stubs.
  • Grep across .github/workflows/, nixos/ (including nixos/services/id-mail/default.nix and the worker's deploy.nix), home/, infra/, scripts/, and the flake finds no reference to deploy.test outside the test file and its package.json. The deploy tests comment in github-backup-tests.yml:21 concerns infra/github-backup, a different deploy script.
  • Hand run on the laptop this run: node --test nixos/services/id-mail/worker/deploy.test.mjs → 4 tests, 4 pass, 0 fail (~0.25 s). Green, fast, never run.
  • What it guards is destructive: id-mail(worker deploy): unrecognized arguments are silently ignored — a typo'd --dry-rnu enters the real deploy sequence and force-deletes the retired 'id-mail' Worker #3281 (closed) was deploy.mjs silently ignoring unrecognized arguments, so a typo'd --dry-rnu entered the real deploy sequence and force-deleted the retired id-mail Worker. The sibling github-backup deploy script got the same defect (github-backup(worker deploy): unrecognized arguments are silently ignored — a typo'd --dry-rnu performs a real deploy (upload + secret reset) #3287) and its suite is wired (github-backup-tests.yml); this one is not.

Why it matters

The pin for a deploy script that can delete a live Worker exists but is decorative: a regression in deploy.mjs argument handling (or in the stubbed deploy sequence) merges with no signal, and the next typo'd flag re-runs the #3281 failure against production.

Acceptance criteria

  • An automated check (a workflow step following the repo's test-workflow conventions, or an equivalent flake/Nix check) runs node --test deploy.test.mjs in nixos/services/id-mail/worker/ on changes to that directory.
  • The check passes on the current main tree (4 tests at time of filing).
  • Reintroducing the id-mail(worker deploy): unrecognized arguments are silently ignored — a typo'd --dry-rnu enters the real deploy sequence and force-deletes the retired 'id-mail' Worker #3281 behaviour (unknown args reaching the deploy sequence) makes the check fail.

Activity

Next
  1. dezren39
    added
    kind/ciCI/CD pipelines, workflows, and build automation
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    source/creatorFiled by the new-issue-creator job
    on Nov 5, 2026
  2. developing-today commented on Nov 5, 2026

    @developing-today
    developing-todayBot
    on Nov 5, 2026 – with developing.today
    Contributor
    More actions

    CODE-1745

  3. dezren39
    added
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    area/ciCI/CD pipelines, workflows, and build automation (area)
    app/id-mailpkgs/nixos id-mail service and worker
    on Nov 5, 2026
  4. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · state: filed

    • Agent: new-issue-creator (new-issue-creator-code-a)
    • Session / ID: cron job new-issue-creator-code-a, run 2026-11-04 23:35 CST
    • Found via: filed this run
    • Task: Filed this issue — id-mail worker deploy.test.mjs run by no workflow; verified by grep across workflows/nixos/home/infra/scripts/flake plus a hand run on the laptop @aee78ac310 (4 tests, 4 pass).
    • Expectation: effort xs/s — wire the suite into an automated check on changes to nixos/services/id-mail/worker/; done when it passes on current main and the id-mail(worker deploy): unrecognized arguments are silently ignored — a typo'd --dry-rnu enters the real deploy sequence and force-deletes the retired 'id-mail' Worker #3281 behaviour fails it.
    • Links: packet hidden_files/packet-6082-triage.json (queue repo-health-code-pilot)
  5. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 5, 2026
  6. 103 remaining items

  7. developing-today commented on Nov 8, 2026

    @developing-today
    developing-todayBot
    on Nov 8, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-e
    • Session / ID: task 12920
    • Found via: queue claim
    • Task: task 12920 (pr_shepherd) for issue ci(id-mail): deploy.test.mjs (4 tests pinning the #3281 typo'd-flag deploy guard) run by no workflow — the deploy script can force-delete the live Worker #6082 / PR ci(id-mail): run worker suites (runtime + deploy) on main pushes #6530 revalidated fresh: issue ci(id-mail): deploy.test.mjs (4 tests pinning the #3281 typo'd-flag deploy guard) run by no workflow — the deploy script can force-delete the live Worker #6082 OPEN, PR ci(id-mail): run worker suites (runtime + deploy) on main pushes #6530 OPEN, no hard-stop labels on either. Execution lane assigned opencode per runbook §1b — handed off to the opencode claimant (attempt 6/8).
    • Expectation: claimant launches the bound opencode session and drives task 12920 to a terminal state.
    • Links: issue ci(id-mail): deploy.test.mjs (4 tests pinning the #3281 typo'd-flag deploy guard) run by no workflow — the deploy script can force-delete the live Worker #6082 · PR ci(id-mail): run worker suites (runtime + deploy) on main pushes #6530
  8. developing-today
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 8, 2026
  9. developing-today commented on Nov 8, 2026

    @developing-today
    developing-todayBot
    on Nov 8, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-w
    • Session / ID: task 12920
    • Found via: queue claim
    • Task: task 12920 (pr_shepherd) for issue ci(id-mail): deploy.test.mjs (4 tests pinning the #3281 typo'd-flag deploy guard) run by no workflow — the deploy script can force-delete the live Worker #6082 / PR ci(id-mail): run worker suites (runtime + deploy) on main pushes #6530 revalidated fresh via app token (user GraphQL limit exceeded): issue ci(id-mail): deploy.test.mjs (4 tests pinning the #3281 typo'd-flag deploy guard) run by no workflow — the deploy script can force-delete the live Worker #6082 OPEN, PR ci(id-mail): run worker suites (runtime + deploy) on main pushes #6530 OPEN, no hard-stop labels on either. Execution lane assigned opencode per runbook §1b — handed off to the opencode claimant.
    • Expectation: claimant launches the bound opencode session and drives task 12920 to a terminal state.
    • Links: issue ci(id-mail): deploy.test.mjs (4 tests pinning the #3281 typo'd-flag deploy guard) run by no workflow — the deploy script can force-delete the live Worker #6082 · PR ci(id-mail): run worker suites (runtime + deploy) on main pushes #6530
  10. developing-today
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 8, 2026
  11. developing-today commented on Nov 9, 2026

    @developing-today
    developing-todayBot
    on Nov 9, 2026 – with developing.today
    Contributor
    More actions

    🤖 Agent note · handed off

    • Agent: repo queue worker, lane code-g (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-g run 2026-11-08 19:03 CST; task 12920
    • Found via: claimed task 12920 this shift; execution-lane assignment returned opencode (lane row 4631)
    • Task: Claimed task 12920 (pr_shepherd) for issue ci(id-mail): deploy.test.mjs (4 tests pinning the #3281 typo'd-flag deploy guard) run by no workflow — the deploy script can force-delete the live Worker #6082. Fresh check: issue ci(id-mail): deploy.test.mjs (4 tests pinning the #3281 typo'd-flag deploy guard) run by no workflow — the deploy script can force-delete the live Worker #6082 OPEN and PR ci(id-mail): run worker suites (runtime + deploy) on main pushes #6530 OPEN (head 25c2973), neither carries hard-stop labels. No hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit) on the target. Handed off to the opencode claimant — the claimant launches the bound opencode session; this lane does not work it directly. Task 12920 parked 1200s in the same pass.
    • Expectation: claimant session drives task 12920 to a terminal state.
    • Links: task 12920 · ci(id-mail): deploy.test.mjs (4 tests pinning the #3281 typo'd-flag deploy guard) run by no workflow — the deploy script can force-delete the live Worker #6082
  12. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: repo queue worker, lane code-j (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-j run 2026-11-08 19:10 CST; task 12920
    • Found via: queue claim · task 12920
    • Task: task 12920 for issue ci(id-mail): deploy.test.mjs (4 tests pinning the #3281 typo'd-flag deploy guard) run by no workflow — the deploy script can force-delete the live Worker #6082 (pr_shepherd, PR ci(id-mail): run worker suites (runtime + deploy) on main pushes #6530). Fresh check: PR ci(id-mail): run worker suites (runtime + deploy) on main pushes #6530 is OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit). Execution-lane assignment returned opencode - handed off to the opencode claimant, which launches the bound opencode session; this lane does not work it directly.
    • Expectation: claimant session drives task 12920 to a terminal state. Attempts 6/8.
    • Links: task 12920 · issue ci(id-mail): deploy.test.mjs (4 tests pinning the #3281 typo'd-flag deploy guard) run by no workflow — the deploy script can force-delete the live Worker #6082 · PR ci(id-mail): run worker suites (runtime + deploy) on main pushes #6530
  13. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (closed — wired and verified)

    • Agent: queue worker (repo-worker-code), opencode lane · session ses_e5e420d3e4cffeq8Iw3uS4SBtJ
    • Task: 12920 (pr_shepherd, PR ci(id-mail): run worker suites (runtime + deploy) on main pushes #6530 for issue ci(id-mail): deploy.test.mjs (4 tests pinning the #3281 typo'd-flag deploy guard) run by no workflow — the deploy script can force-delete the live Worker #6082 / ci(id-mail): runtime.test.mjs (5 tests pinning the #5739 limiter/caller-denial contract) run by no workflow — the Worker runtime contract is verified nowhere #6351)
    • Merged: PR ci(id-mail): run worker suites (runtime + deploy) on main pushes #6530 → main merge commit 0e7a326d813a77eb4e02bdd2ed42f0d5e94acb35 (2026-11-09T02:09Z). It adds .github/workflows/id-mail-worker-tests.yml (67 lines), which runs the package's npm test on pushes touching nixos/services/id-mail/worker/** and on dispatch.

    Acceptance check

    1. An automated check runs deploy.test.mjs on changes to that directory — yes. The workflow triggers on nixos/services/id-mail/worker/** (and its own file), sets up Node 24, and runs npm test = node --test deploy.test.mjs runtime.test.mjs. Before running it fails closed unless deploy.test.mjs, runtime.test.mjs and package.json all exist, so deleting or renaming the suite fails the job instead of silently unwiring it. Actions API reports the workflow active (id 411620923) and dispatchable.
    2. The check passes on the current main tree — yes, on a clean worktree at main 0e7a326d81 (the merge commit): npm test in nixos/services/id-mail/worker → 14 tests, 14 pass, 0 fail (deploy 6 + runtime 8; the four id-mail(worker deploy): unrecognized arguments are silently ignored — a typo'd --dry-rnu enters the real deploy sequence and force-deletes the retired 'id-mail' Worker #3281 cases are intact, plus the two id-mail(deploy): validate() crashes on null config entries instead of reporting them, and a config without retire passes validation then crashes the real deploy #6947 deploy cases and three id-mail(worker): runtime MAIL_CONFIG/CALLERS JSON is shape-trusted — malformed config throws raw errors out of fetch(), string transports/from are substring-accepted #6970 runtime cases added since filing).
    3. Reintroducing the id-mail(worker deploy): unrecognized arguments are silently ignored — a typo'd --dry-rnu enters the real deploy sequence and force-deletes the retired 'id-mail' Worker #3281 behaviour makes the check fail — yes, verified as a negative control: replacing const unknownArgs = args.filter((arg) => arg !== "--dry-run"); with const unknownArgs = []; (the old ignore-unknown-args behaviour) makes --dry-rnu and --bogus-flag fail → 2 failing tests; the file was restored and git status clean afterwards.

    One external caveat (not a defect in this wiring)

    The first main-tier run on the merge commit, run 42549387455, was created with the correct job (full (main tier): id-mail worker suites, ubuntu-latest) but is queued with no runner assigned. The whole repository's hosted-runner queue has been stalled since 2026-11-08T03:09Z — every workflow created after that time is queued, and no hosted job has succeeded since then — so no CI-observed green exists yet for any workflow, not just this one. Under the #6185 coverage contract that means these suites are wired and locally proven but not yet observed to run; the registry's id-mail.deploy / id-mail.runtime rows therefore stay uncovered until the audit in #6187/#6188 sees a successful run. The wiring itself, which is what this issue asked for, is complete.

    • Links: PR ci(id-mail): run worker suites (runtime + deploy) on main pushes #6530 · issue ci(id-mail): runtime.test.mjs (5 tests pinning the #5739 limiter/caller-denial contract) run by no workflow — the Worker runtime contract is verified nowhere #6351 (closed by the merge) · design A suite that never runs is not a test — one coverage contract for the repo's test suites #6185
  14. dezren39
    closed this as completedon Nov 9, 2026
  15. developing-today
    added
    status:done
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/id-mailpkgs/nixos id-mail service and workerarea/ciCI/CD pipelines, workflows, and build automation (area)kind/ciCI/CD pipelines, workflows, and build automationpriority/normalOrdinary priority (the default)queue/parkedQueue task is parked (waiting on CI, time, or an event)source/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobstatus/parkedDeliberately paused with a recorded resume conditionstatus:donetask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.