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 — pkarr-worker(deploy): --dry-run is ignored on the --deploy-version path — a rollback preview creates a real 100% deployment · Issue #3252 · developing-today/code

pkarr-worker(deploy): --dry-run is ignored on the --deploy-version path — a rollback preview creates a real 100% deployment #3252

New issue
Copy link
New issue
Copy link
Closed
#8483
Closed
pkarr-worker(deploy): --dry-run is ignored on the --deploy-version path — a rollback preview creates a real 100% deployment#3252
#8483
Copy link
Assignees
dezren39
Labels
app/pkarr-workerpkgs/pkarr-workereffort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)queue/parkedQueue task is parked (waiting on CI, time, or an event)queue/queuedHas a queued queue tasksource/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobstatus/parkedDeliberately paused with a recorded resume conditiontask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state

Description

@dezren39
dezren39
opened on Oct 31, 2026
Issue body actions

Problem

pkgs/pkarr-worker/deploy.mjs ignores --dry-run on the --deploy-version (rollback / redeploy) path: the flag combination that should be the safest way to preview a rollback instead creates a real Cloudflare deployment at 100%.

Evidence (verified this run, main 5e08e198)

  • Arg parsing is global: deploy.mjs:40-45 — dryRun = args.includes("--dry-run"), deployVersion from --deploy-version <id>.

  • The deploy-version branch runs before any dry-run handling and never checks dryRun (deploy.mjs:84-88):

    if (deployVersion !== null) {
      createDeployment(deployVersion);
      reportLive();
      process.exit(0);
    }

    createDeployment (deploy.mjs:161-170) unconditionally runs cf workers deployments create --strategy percentage --versions [{version_id, percentage: 100}].

  • Both other paths honour the flag: the bootstrap path pushes --dry-run into cf deploy and exits (deploy.mjs:99-105), and the versions path pushes --dry-run into cf workers versions create and exits (deploy.mjs:118-124). The deploy-version branch is the only one that drops it.

  • Laptop probe (sha-matched copy of deploy.mjs, sha256 805d407348729bf00a6010a5502b66455d66c559d79d4659a786faf067d80ff9, stub cf/bws on PATH, CLOUDFLARE_ACCOUNT_ID stubbed; probe dir ~/git/fleet/probe-2026-10-31-laneA-pkarr-dryrun/ on the laptop):

    • node deploy.mjs --dry-run --deploy-version v-rollback-123 → stub cf log records a real call: cf -q workers deployments create --worker pkarr --strategy percentage --versions [{"version_id":"v-rollback-123","percentage":100}], exit 0.
    • Control node deploy.mjs --dry-run → cf receives only workers get and workers versions create ... --dry-run; no deployment is created. The flag works everywhere except this branch.

Why it matters

--dry-run is the safety affordance for the deploy tool, and --deploy-version is the rollback path — the moment an operator is most likely to reach for a preview before committing. The combination silently doing the live thing (100% traffic shift to the named version) is worse than having no dry-run at all: it teaches the operator the preview was clean when in fact the rollback already happened.

Acceptance criteria

  • deploy.mjs --dry-run --deploy-version <id> creates no deployment: it prints what it would do (worker, version id, 100%) and exits 0 without calling deployments create.
  • The non-dry-run --deploy-version path is unchanged (creates the deployment, then reports live deployments).
  • Unknown/conflicting argument handling is not weakened: --deploy-version with no id still errors.
  • A regression test (stub cf/bws, as in the probe) covers all three paths: plain --dry-run (no create), --deploy-version (create), and --dry-run --deploy-version (no create) — the third fails on current code.

Related: #1828 / #1829 (the deployment standard this script implements; the deployable-shape and strategy fixes landed today in #3241/#3242/#3244 — this branch was not touched by them).

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    app/pkarr-workerpkgs/pkarr-worker
    effort/xsTrivial: expected under 30 minutes of work
    on Oct 31, 2026
  2. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    🤖 Agent note · state: filed

    • Agent: new-issue-creator (new-issue-creator-code-a)
    • Session / ID: cron new-issue-creator-code-a, 2026-10-31 18:05 CDT run
    • Found via: filed this run
    • Task: Filed after verifying on the laptop (sha-matched deploy.mjs, stub cf/bws) that --dry-run --deploy-version creates a real deployment while plain --dry-run does not
    • Expectation: effort/xs — guard the deploy-version branch on dryRun, print the would-be deployment, exit 0; stub-cf regression test for all three paths
    • Links: pkgs/pkarr-worker/deploy.mjs:84-88; probe ~/git/fleet/probe-2026-10-31-laneA-pkarr-dryrun/ (laptop)
  3. github-actions
    assigned
    dezren39
    on Nov 1, 2026
  4. dezren39
    added
    source/design-architectFiled by the repo design architect job
    on Nov 1, 2026
  5. dezren39
    added a parent issue on Nov 1, 2026
    • Design: unknown means stop — one strict argument contract for the repo's operator scripts #3352
  6. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    Adopted as Phase 1 of design #3352 (with #3264 — same file: corollary 4, a parsed safety flag is honoured on every path). The design records the contract this issue's fix must follow: every argument is accounted for before any side effect; unknown/typo'd arguments are a usage error naming the argument (exit non-zero, 2 where no usage code is established) before any subprocess/network/file/lock/deploy step. Triage: do NOT re-file, re-scope or split this issue — record the phase structure and verdict, and keep this issue's own acceptance criteria as the phase's acceptance. Design doc: files/designs/code-operator-argument-contract.md (keep-the-four-repos-healthy goal workspace).

  7. dezren39
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 1, 2026
  8. 39 remaining items

  9. dezren39
    added
    queue/queuedHas a queued queue task
    and removed
    status/blockedQueue or user escalation state
    queue/blockedQueue or user escalation state
    on Nov 11, 2026
  10. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: repo queue worker, lane code-f (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-f run 2026-11-10; task 14841
    • Found via: queue claim; execution-lane assignment returned direct (fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187)
    • Task: task 14841 (small_fix) for issue pkarr-worker(deploy): --dry-run is ignored on the --deploy-version path — a rollback preview creates a real 100% deployment #3252: pkgs/pkarr-worker/deploy.mjs ignores --dry-run on the --deploy-version branch — a rollback preview creates a real 100% deployment. Fresh check: issue pkarr-worker(deploy): --dry-run is ignored on the --deploy-version path — a rollback preview creates a real 100% deployment #3252 OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit), no status/needs-triage. Stale queue/blocked + status/blocked labels from the superseded combined packet (task 5685, blocked packet_defect 2026-11-04) are cleared by this claim; this corrected packet covers pkarr-worker(deploy): --dry-run is ignored on the --deploy-version path — a rollback preview creates a real 100% deployment #3252 only (defect re-verified on origin/main 2026-11-11 by triage task 14383).
    • Plan: worktree on the laptop, guard the deploy-version branch on dryRun (report would-be deployment, exit 0 before createDeployment), add flag x path tests in the pkgs/pkarr-worker suite style, run the suite, open a PR citing pkarr-worker(deploy): --dry-run is ignored on the --deploy-version path — a rollback preview creates a real 100% deployment #3252 and Design: unknown means stop — one strict argument contract for the repo's operator scripts #3352.
    • Links: task 14841 · issue pkarr-worker(deploy): --dry-run is ignored on the --deploy-version path — a rollback preview creates a real 100% deployment #3252 · issue Design: unknown means stop — one strict argument contract for the repo's operator scripts #3352
  11. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    on Nov 11, 2026
  12. dezren39
    added a commit that references this issue on Nov 11, 2026

    Merge pull request #8483 from developing-today/queue/14841-3252-deplo…

    6adf901
  13. dezren39
    closed this as completedin #8483on Nov 11, 2026
  14. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (fixed_merged) — task 14841 (issue #3252)

    • PR fix(pkarr-worker): honor --dry-run on the --deploy-version path (#3252) #8483 MERGED at 2026-11-11T03:10:55Z, merge commit 6adf901; issue pkarr-worker(deploy): --dry-run is ignored on the --deploy-version path — a rollback preview creates a real 100% deployment #3252 closed by the merge.
    • --dry-run --deploy-version <id> now previews (worker, version, 100%) and creates nothing; the live path is unchanged. Shepherd record on PR fix(pkarr-worker): honor --dry-run on the --deploy-version path (#3252) #8483 (comment 6785841133): vitest 64/64, tsc clean, Codex no findings.
  15. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked (CI wait)

    • Agent: repo queue worker, lane code-f (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-f run 2026-11-10; task 14841
    • Task: task 14841 (small_fix) for issue pkarr-worker(deploy): --dry-run is ignored on the --deploy-version path — a rollback preview creates a real 100% deployment #3252 — PARKED as a broker CI wait on PR fix(pkarr-worker): honor --dry-run on the --deploy-version path (#3252) #8483 (ready-condition ci, PR fix(pkarr-worker): honor --dry-run on the --deploy-version path (#3252) #8483). The park call returned an empty response (the known apply-then-error shape, cf. 2026-10-29 note in AGENTS.md); the parked state was verified by verdicts instead: fleet queue heartbeat answers "task 14841 is not claimed by repo-worker-code" and a targeted claim answers "no claimable task" — the claim is released and the task is not claimable before its CI wait releases.
    • Done this shift: implemented the fix on branch queue/14841-3252-deploy-dry-run (worktree queue-14841-3252 at origin/main e719f91): the deploy-version branch of deploy.mjs now delegates to a new testable helper, deploy-version.mjs — on --dry-run it reports the would-be deployment (worker pkarr, version id) and returns before createDeployment is reachable; without --dry-run it deploys exactly as before. USAGE + header document the preview form.
    • Tests (laptop): pkgs/pkarr-worker suite — 5 files, 64/64 pass, including 3 new flag x path tests in test/deploy-version.test.ts (dry-run performs no createDeployment/reportLive call; plain path calls both once in order; parseArgs matrix drives preview only when --dry-run is parsed). tsc --noEmit clean.
    • PR: PR fix(pkarr-worker): honor --dry-run on the --deploy-version path (#3252) #8483, head dbee8c4 — checks 9 pending / 1 skipping at park (fleet runner stall, no failures); no Codex review had landed yet.
    • Resume: PR fix(pkarr-worker): honor --dry-run on the --deploy-version path (#3252) #8483 checks green + Codex findings (if any) dispositioned → merge → verify issue pkarr-worker(deploy): --dry-run is ignored on the --deploy-version path — a rollback preview creates a real 100% deployment #3252 closed → complete task 14841 as fixed_merged.
    • Links: task 14841 · issue pkarr-worker(deploy): --dry-run is ignored on the --deploy-version path — a rollback preview creates a real 100% deployment #3252 · issue Design: unknown means stop — one strict argument contract for the repo's operator scripts #3352 · PR fix(pkarr-worker): honor --dry-run on the --deploy-version path (#3252) #8483
  16. dezren39
    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 11, 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/pkarr-workerpkgs/pkarr-workereffort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)queue/parkedQueue task is parked (waiting on CI, time, or an event)queue/queuedHas a queued queue tasksource/creatorFiled by the new-issue-creator jobsource/design-architectFiled by the repo design architect jobstatus/parkedDeliberately paused with a recorded resume conditiontask/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.