Skip to content

github-ci: split Worker version upload and promotion - #12553

Draft
dezren39 wants to merge 5 commits into
mainfrom
codex/github-ci-worker-versions
Draft

dezren39 wants to merge 5 commits into
mainfrom
codex/github-ci-worker-versions

Conversation

@dezren39

@dezren39 dezren39 commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Keep upload and promotion manual-only, default-off, and without a push trigger. The pinned cf toolchain stays isolated from the operator Worker package.
  • The detached environment gates require the exact environment, required reviewers with self-review prevention, disabled administrator bypass, and exactly one typed branch:main policy. The protected job binds only to the environment name emitted by the successful gate.
  • Upload checks that Cloudflare's first/latest listed Version equals the serving baseline immediately before create, because strict binding inheritance resolves from the latest uploaded Version. It reads the exact Version UUID from the cf create response and binds the readback to that UUID and the exact run attempt.
  • Promotion requires the exact upload run/attempt receipt and baseline IDs, then verifies the exact create response and latest 100% deployment readback.
  • Cloudflare credentials have separate upload and promotion secret names. Runtime Worker secret values are never read or copied by this workflow.

Credential-free checks at this head

Head: e486bc9b5

  • Node 24.22.0: Worker typecheck passed; Vitest passed (7 files, 74 tests).
  • Offline guard tests passed (11/11); workflow source tests passed (3/3).
  • Both workflow YAML files parsed; bash -n passed for all 35 embedded run steps.
  • Offline cf build, Build Output v1 guard, and cf workers versions create --prebuilt --dry-run passed with Cloudflare credentials unset and proxy variables removed.
  • The operator Worker package, lockfile, wrangler.toml, and .github/workflows/github-ci-worker-tests.yml are byte-identical to origin/main.

No workflow was dispatched, no live Cloudflare operation was run, no secret values were inspected, and no provider or GitHub settings were read or changed.

Status: Blocked, remains draft

GitHub's documented branch-policy list/get responses show id, node_id, and name, but do not document a returned type. The gate requires type: branch and fails closed if that field is absent. Resolve this evidence gap before dispatching either workflow.

Production binding parity was not checked against live Cloudflare state. The upload workflow requires all six secret binding names on both the serving baseline and uploaded candidate before publishing its receipt; it records names and types only. No live binding blocker was inspected or established.

@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant