Skip to content

github-backup(deploy): normal flow silently falls back to the pre-secrets upload as rollback target when the configured-live re-read is empty (#3510 residual) #6507

Closed

Description

@dezren39

Finding

PR #3510 (fix for #3475) made the github-backup deploy script advertise the final configured live version as the rollback target instead of the pre-secrets upload — but the new code silently falls back to that same pre-secrets upload whenever the post-provisioning re-read cannot name a live version:

// infra/github-backup/worker/deploy.mjs, normal flow (current main 85c435ec6c59)
const configuredLive = liveVersionIds();
const liveId = configuredLive.join(", ") || version.id;
console.log(`live: ${WORKER_URL} at version ${liveId} (${tag})`);

liveVersionIds() (same file) swallows every failure into []: a deployments list error, unparseable output, a non-array response, or a latest deployment with no version at percentage === 100 all yield []. In each of those cases the script exits 0 and prints live: … at version <uploaded id> — the exact version #3475 established carries no DRAIN_BEARER / GITHUB_WEBHOOK_SECRET bindings and must never be used as a rollback target. The note: uploaded version … was superseded … warning is also suppressed in this branch (it only prints when liveId !== version.id), so nothing in the run's own summary tells the operator the advertised target is unverified.

Evidence

Why it matters

The live: line is the record an operator later rolls back from. When the re-read fails, the script should fail loudly — instead it re-creates the #3475 hazard in precisely the failure mode (a Cloudflare read going wrong mid-deploy) where nobody is likely to hand-check the raw deployments dump printed earlier by reportLive().

Acceptance criteria

Found by the pr-diff-review job, run 2026-11-06 05:24 CST, batch PRs #3492–#3522.

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 6, 2026
  2. developing-today commented on Nov 6, 2026

    @developing-today
    Contributor
  3. added
    priority/normalOrdinary priority (the default)
    effort/sSmall: expected under 2 hours of work
    app/github-backupinfra/github-backup estate mirror system
    on Nov 6, 2026
  4. dezren39 commented on Nov 6, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

  5. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 6, 2026
  6. 56 remaining items

  7. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    Partial verification — staying open (2026-11-07 done-task-only audit, tracking: #7016).

    Queue task(s) [11194] were marked done, and some work did land:

    • Direct commits referencing this issue: 68d7f56

    No merged change closes this issue's full scope, so the done status is not treated as completion. Remainder enqueue deferred: this issue was active in tonight's lane shifts after the audit snapshot.

  8. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged (remainder)

    Remainder triage verdict (task 12531, 2026-11-08T05:45Z): bug REAL-AND-CURRENT on main; fix exists and is merge-ready; the only remainder is the merge.

  9. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  10. added
    queue/claimedQueue worker lifecycle state
    and removed
    queue/needs-reviewQueue task finished and is awaiting review
    on Nov 8, 2026
  11. added a commit that references this issue on Nov 8, 2026
  12. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

  13. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/github-backupinfra/github-backup estate mirror systemeffort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/pr-diff-reviewFiled by the pr-diff-review jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions