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): workerExists() treats any cf error as 'worker does not exist' — a transient/auth probe failure silently reroutes a standard deploy into the bootstrap cf deploy path · Issue #4865 · developing-today/code

pkarr-worker(deploy): workerExists() treats any cf error as 'worker does not exist' — a transient/auth probe failure silently reroutes a standard deploy into the bootstrap cf deploy path #4865

New issue
Copy link
New issue
Copy link
Closed
#6811
Closed
pkarr-worker(deploy): workerExists() treats any cf error as 'worker does not exist' — a transient/auth probe failure silently reroutes a standard deploy into the bootstrap cf deploy path#4865
#6811
Copy link
Assignees
dezren39
Labels
app/pkarr-workerpkgs/pkarr-workereffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)queue/queuedHas a queued queue tasksource/pr-diff-reviewFiled by the pr-diff-review jobstatus/in-progressQueue worker lifecycle statetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

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

Finding

pkgs/pkarr-worker/deploy.mjs's workerExists() treats any failure of cf workers get pkarr as "the Worker does not exist":

// current main (eefeab5af), pkgs/pkarr-worker/deploy.mjs:130-142
function workerExists() {
  try {
    execFileSync("cf", ["-q", "workers", "get", WORKER], { ... });
    return true;
  } catch {
    return false;
  }
}

and the caller (deploy.mjs:85) routes on that boolean:

const bootstrapping = !workerExists();

Evidence

  • Introduced by PR fix(pkarr): bootstrap a brand-new Worker via cf deploy (#1829) #3241 (merged, merge commit fdd8811, verified an ancestor of current main) — "fix(pkarr): bootstrap a brand-new Worker via cf deploy (P7.2 implement + deploy: Cloudflare Workers pkarr endpoint, under the Nix deployment standard #1829)". Its purpose was only the genuinely-new-Worker case: cf workers versions create refuses to create a brand-new Worker.
  • Verified on current main eefeab5af648ac612899c65a4c575c20808ef0e1 via two independent contents-API reads: the catch-all catch { return false; } is unchanged, and stderr is piped away (stdio: ["inherit", "pipe", "pipe"]), so nothing distinguishes a not-found response from an auth failure, a network error, a rate limit, or a broken cf install.

Why it matters

When the Worker does exist but the probe fails for any transient reason (expired/insufficient token, Cloudflare API blip, network error), the script silently takes the bootstrap path and runs cf deploy, which uploads and deploys at 100% immediately — bypassing the deployment standard's versions flow (versions create → ?deployable=true pre-check → deployments create) that PR #3234 established and PRs #3242/#3244 hardened. The run then reports success as a "bootstrap", so the misroute is invisible in the output an operator reads. A probe error should be a stop, not a silent change of deploy mechanism.

Related but distinct from the already-filed deploy.mjs findings #3252 (--dry-run ignored on the --deploy-version path) and #3264 (unrecognized arguments silently ignored) — this one is the existence probe's error classification.

Acceptance criteria

  • workerExists() (or its replacement) returns "does not exist" only for the actual not-found response from cf workers get; any other failure (non-not-found exit, spawn error) aborts the deploy with the cf error visible.
  • The bootstrap cf deploy path is unreachable when the existence probe errored for a reason other than not-found.
  • A probe/dry-run demonstration: simulated not-found → bootstrap path chosen; simulated auth/network failure → deploy refuses before uploading anything.
  • The genuinely-new-Worker bootstrap from PR fix(pkarr): bootstrap a brand-new Worker via cf deploy (#1829) #3241 still works unchanged.

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    source/pr-diff-reviewFiled by the pr-diff-review job
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    effort/sSmall: expected under 2 hours of work
    app/pkarr-workerpkgs/pkarr-worker
    on Nov 3, 2026
  2. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: pr-diff-review job
    • Session / ID: pr-diff-review cron run 2026-11-03 05:24 CST
    • Found via: filed this run
    • Task: Triage-verify the pkarr deploy.mjs workerExists() catch-all finding from PR fix(pkarr): bootstrap a brand-new Worker via cf deploy (#1829) #3241 against current main, then fix the probe's error classification if confirmed.
    • Expectation: effort/s — done when only a genuine not-found response routes to the bootstrap cf deploy path and any other probe failure aborts the deploy.
    • Links: source PR fix(pkarr): bootstrap a brand-new Worker via cf deploy (#1829) #3241; evidence in the issue body.
  3. github-actions
    assigned
    dezren39
    on Nov 3, 2026
  4. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: reviewed (coverage loop-back)
    Coverage pass 2026-11-03, loop-back review: this issue was re-reviewed (drift / overlap / already-handled / stale / blockers / ordering) so every open issue in the four repos is reviewed and in the system. Verdict: still live; in the system as task 7522 (triage, queued, priority 50) in repo-health-code-pilot. Labels audited and synced. If it is already handled at current main, its triage closes it with evidence; if oversized, the triage files the split; blockers belong on this issue.
    Found via: coverage loop-back 2026-11-03

  5. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-j
    • Session / ID: task 7522
    • Found via: queue claim
    • Task: Triage for issue pkarr-worker(deploy): workerExists() treats any cf error as 'worker does not exist' — a transient/auth probe failure silently reroutes a standard deploy into the bootstrap cf deploy path #4865 — handed off to the opencode execution lane per task 7522's lane assignment; the laptop claimant launches the bound opencode session.
    • Expectation: effort/s work at current main by the bound session; this lane does not work task 7522 directly.
    • Links: issue pkarr-worker(deploy): workerExists() treats any cf error as 'worker does not exist' — a transient/auth probe failure silently reroutes a standard deploy into the bootstrap cf deploy path #4865
  6. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    on Nov 4, 2026
  7. 64 remaining items

  8. dezren39
    added
    work/assignedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    on Nov 5, 2026
  9. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-r
    • Session / ID: task 9735
    • Found via: queue claim
    • Task: pkarr deploy workerExists() failure classification (pkarr-worker(deploy): workerExists() treats any cf error as 'worker does not exist' — a transient/auth probe failure silently reroutes a standard deploy into the bootstrap cf deploy path #4865) — assigned to the opencode execution lane; the laptop claimant launches the bound opencode session, which drives task 9735 to its terminal state.
    • Expectation: effort class s; done = only genuine Worker-not-found routes to bootstrap, other probe failures abort with diagnostics, regression tests pass.
    • Links: issue pkarr-worker(deploy): workerExists() treats any cf error as 'worker does not exist' — a transient/auth probe failure silently reroutes a standard deploy into the bootstrap cf deploy path #4865; source PR fix(pkarr): bootstrap a brand-new Worker via cf deploy (#1829) #3241 (merged)
  10. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), OpenChamber scheduled lane
    • Session / ID: task 9735 · lane 9aca43b4-5439-4939-9f71-323f5d32521b
    • Found via: queue claim
    • Task: Implement the bounded workerExists() failure classification and regression tests from task 9735; resuming directly after atomic claim of the expired handoff.
    • Expectation: only genuine Worker-not-found selects bootstrap; other probe failures abort before upload/deploy with useful diagnostics.
    • Links: task 9735 · issue pkarr-worker(deploy): workerExists() treats any cf error as 'worker does not exist' — a transient/auth probe failure silently reroutes a standard deploy into the bootstrap cf deploy path #4865 · source PR fix(pkarr): bootstrap a brand-new Worker via cf deploy (#1829) #3241 (merged)
  11. dezren39
    added a commit that references this issue on Nov 5, 2026

    fix(pkarr): stop on worker probe failures (#4865)

    711a901
  12. developing-today commented on Nov 7, 2026

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

    Picked up by repo-worker-code-f — working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live while repo-worker-code-f posts progress markers; after 30 minutes of silence any other worker may pick this up.)

  13. developing-today commented on Nov 7, 2026

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

    Progress from repo-worker-code-f: verified: workerExists catch-all present at deploy.mjs on c3fe40e; fix shape: extract deploy-probe.mjs (not-found-only classification, abort otherwise) + vitest cases; next: implement

  14. developing-today commented on Nov 7, 2026

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

    🤖 Agent note · fixed — PR #6811 open, remainder: merge on green CI

    • Agent: queue worker lane F (repo-worker-code-f), fallback claim (queue backend down, code#6619)
    • Fix: PR fix(pkarr-worker): existence probe aborts on non-not-found cf failures (#4865) #6811, branch queue/4865-pkarr-worker-exists-probe. New pkgs/pkarr-worker/deploy-probe.mjs: probeWorkerExists returns "does not exist" only for the genuine not-found response (API code 10007 / workers.api.error.not_found / rendered script-not-found; deliberately narrow matcher); any other probe failure (auth, network, spawn) aborts the deploy before any upload with the cf error visible. deploy.mjs delegates to it; the new-Worker bootstrap (PR fix(pkarr): bootstrap a brand-new Worker via cf deploy (#1829) #3241) is unchanged. 7 vitest cases in test/deploy-probe.test.ts + deploy-probe.d.mts.
    • Verification: direct node probe on the laptop — exists → true, 10007 → false, auth failure → throws with cf text visible, ENOENT → throws; node --check clean on both scripts. The vitest suite runs in CI (workers-pool suite needs the package npm ci).
    • Remainder (why released free, not done): PR fix(pkarr-worker): existence probe aborts on non-not-found cf failures (#4865) #6811's CI had not run within the poll window (fleet CI backlogged tonight). Next worker: check PR fix(pkarr-worker): existence probe aborts on non-not-found cf failures (#4865) #6811 (incl. Codex findings — disposition any before merging); if green, merge and close pkarr-worker(deploy): workerExists() treats any cf error as 'worker does not exist' — a transient/auth probe failure silently reroutes a standard deploy into the bootstrap cf deploy path #4865. Do not redo the fix.
  15. developing-today commented on Nov 7, 2026

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

    Released by repo-worker-code-f (outcome: free). Fixed in PR #6811 (deploy-probe.mjs: not-found-only classification, abort with cf error visible on any other probe failure; 7 vitest cases; node probe verified). REMAINS: merge PR #6811 when CI green (disposition Codex findings first), then close #4865.

  16. developing-today
    added
    queue/queuedHas a queued queue task
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 7, 2026
  17. dezren39 commented on Nov 7, 2026

    @dezren39
    dezren39
    on Nov 7, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: repo-fleet-monitor run 2026-11-07 00:12 CST
    • Found via: monitor reconciliation (Duty 1B PR↔queue check)
    • Task: DUPLICATE PR PAIR flagged for issue pkarr-worker(deploy): workerExists() treats any cf error as 'worker does not exist' — a transient/auth probe failure silently reroutes a standard deploy into the bootstrap cf deploy path #4865 — PR fix(pkarr): stop bootstrap on Worker probe failures (#4865) #6208 (opened 2026-11-05, branch queue/9735-4865-worker-probe-errors) and PR fix(pkarr-worker): existence probe aborts on non-not-found cf failures (#4865) #6811 (opened 2026-11-07, branch queue/4865-pkarr-worker-exists-probe) both implement the same workerExists() probe fix for this issue. Per protocol §8 / Duty 1B: the earliest-created PR (fix(pkarr): stop bootstrap on Worker probe failures (#4865) #6208) is canonical by default; do NOT open a third implementation. The closing agent must do the §8 salvage diff of the duplicate against the canonical before closing either — the monitor does not close PRs.
    • Expectation: effort/s — one holder shepherds PR fix(pkarr): stop bootstrap on Worker probe failures (#4865) #6208; salvage-check PR fix(pkarr-worker): existence probe aborts on non-not-found cf failures (#4865) #6811's deploy-probe extraction/tests against it before any closure
    • Links: PR fix(pkarr): stop bootstrap on Worker probe failures (#4865) #6208, PR fix(pkarr-worker): existence probe aborts on non-not-found cf failures (#4865) #6811
    • Note: this issue carries queue/queued but has NO live queue task in repo-health-code-pilot (verified against the live Turso tasks table this run), so the monitor could not bind/park a task on the canonical PR — the binding gap is recorded here and in the run tracker.
  18. dezren39
    added a commit that references this issue on Nov 7, 2026

    Merge pull request #6811 from developing-today/queue/4865-pkarr-worke…

    7ac02f6
  19. dezren39
    closed this as completedin #6811on Nov 7, 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/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)queue/queuedHas a queued queue tasksource/pr-diff-reviewFiled by the pr-diff-review jobstatus/in-progressQueue worker lifecycle statetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

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.