GeezerVison is showing github.com — ci(lab-ops-hub): release Worker versions through cf by dezren39 · Pull Request #12576 · developing-today/code
Conversation
dezren39
commented
Nov 22, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
- Add separately dispatched
cf workers versions create upload and cf workers deployments create promotion workflows, pinned to Node 24.22.0, [email protected], and Wrangler 4.163.0.
- Promotion accepts only a numeric upload workflow run ID. It downloads the receipt from that run, checks the exact successful trusted
main/workflow/run attempt/source SHA, checks the receipt's Worker/version/tag and the single-version 100% serving baseline, rereads that baseline immediately before promotion, then verifies the resulting 100% deployment.
- Use the protected environment
lab-ops-hub-cloudflare-release with uniquely named environment variable CLOUDFLARE_LAB_OPS_HUB_ACCOUNT_ID and secret CLOUDFLARE_LAB_OPS_HUB_API_TOKEN. The token needs the Cloudflare Workers Editor role scoped to the individual lab-ops-hub Worker; it is never supplied to pull-request jobs. No GitHub settings or token were changed/accessed.
- Preserve
wrangler.jsonc bindings, routing, migrations v1/v2, D1, R2, KV, queues, scheduled trigger, assets, and the exact CrawlerContainerV2 :v5 image mapping. Restore the former operator recovery app; keep the image-only lab-ops-hub-image-push app separate from GHA Worker release.
Fail-closed release hold
Cloudflare's documented Worker Version GET exposes migration_tag and container class, but does not document a container image URI. The documented Containers application read schema also omits the image for this Durable Object-managed container. The upload workflow checks the current version's v2 migration and fails before creating a new version if it cannot verify the exact :v5 image; promotion applies the same check to baseline and candidate. It does not request broader account/registry grants. Unblock only when read-only metadata exposes the exact pin or a trusted image-publish attestation binds the immutable image digest to the release receipt. Worker Version GET · Containers API.
Cloudflare's deployment-create request has no documented compare-and-swap baseline condition. GitHub concurrency serializes these two workflows, but operators must pause the legacy deploy path and other external Worker releases during any eventual GHA promotion window. Create Worker Deployment API.
Checks on this commit
node --test pkgs/lab-ops-hub/release-tools/release-safety.test.mjs — 6 passed, 0 failed.
cf build plus node release-tools/verify-build.mjs — passed; Build Output v1 matched target, bindings, migrations, triggers, assets, and container image mapping. Wrangler emitted a non-fatal optional log-directory warning because this sandbox lacks /home/agent/.config.
- Pinned
cf workers versions create --prebuilt ... --dry-run — passed with Cloudflare credential variables unset; showed expected bindings and CrawlerContainerV2 :v5 metadata.
cf workers deployments create ... --versions @<dummy-file> --dry-run — passed with Cloudflare credential variables unset; printed the expected single version at 100%, no API request sent.
- Node syntax checks,
bash -n, PyYAML parsing of both workflows, git diff --check, and .github/scripts/check-ci-policy-agreement.sh — passed (10 workflows, zero waived disagreements).
- Operator argument preflight rejected an unknown argument with exit 2 and accepted
--dry-run before credential handling.
- No Worker upload/promotion, live deploy, image build/push, credential value access, or settings change was performed. Nix evaluation and actionlint were unavailable in this sandbox.
Cutover prerequisites
Keep this PR draft and the operator recovery available. Before any cutover, configure the named protected environment and Worker-scoped token, resolve the image metadata/attestation blocker, confirm the existing Worker reports current migration tag v2, and pause other Worker deploys during the promotion window. The workflows do not apply migrations. No live Cloudflare state was read in this pass.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Important
Draft PR not reviewed
Draft PRs are not automatically reviewed by default.
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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 22, 2026
This was referenced Nov 24, 2026
|
Program tending — stalled PR check-in (tracking: #1352)
- No activity for 3 day(s); last update 2026-11-22T14:58:09Z.
- Waiting on: draft — waiting on its author.
- Next step: mark the PR ready for review, or post what the draft is waiting on.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
PR-SWEEP disposition (code-f, claim 22854, 2026-11-27): OPEN/draft, not merged — concrete release-safety blocker verified live. Head remains a060823; no hold labels, reviews, or inline review comments. Only attached check is Proof/SKIPPED, so prior dry-run claims are not fresh CI evidence.
Read-only Cloudflare investigation through Fleet-resolved credentials found deployment 40330a26-65e6-4859-bdc0-b45c7d958f57 serving c32664c0-5aa2-4cf6-bc26-49dbd85db090 at 100%. The live Worker Version GET returns top-level id/number/metadata/annotations/resources; resources contains script/script_runtime/bindings, but neither top-level migration_tag nor containers nor resources.containers is exposed. Therefore release-safety.mjs assertWorkerVersion cannot confirm v2 or the CrawlerContainerV2 :v5 image and will fail before upload. No trusted image-publish attestation path is implemented by this PR. Resume by implementing and verifying authoritative migration/image metadata or a trusted immutable-digest attestation tied to the exact serving baseline/candidate and receipt; do not remove the fail-closed gate.
Credential/environment findings: Fleet already holds cloudflare.lab-ops-hub-api-token, but a read-only deployments GET using it returned HTTP 401 / Cloudflare 10000 Authentication error. The existing day-to-day credential successfully performed the above read-only metadata checks; it was NOT installed into GHA as a substitute for the requested Worker-scoped credential. GitHub environment inventory confirms lab-ops-hub-cloudflare-release is absent (direct GET 404). Configure that main-only protected environment with a working Worker-scoped token once the release evidence path is implemented. This is routine fleet work, NOT a person-login/owner-approval gate; the historical hands classification is rejected.
No upload/promotion, live deploy, image push, GitHub settings mutation, or branch mutation performed. The blocker-comment alternative in task 22854 is evidenced, but the broker completion gate requires a distinct follow-up item and rejects this same tracking issue as its own follow-up. Final queue disposition: PARKED for technical implementation, until 2026-11-27T12:30:20Z; no hands dependency. #14202 stays open for implementation/cutover, not falsely completed. Cross-record: #14166.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 27, 2026
This branch has not been deployed
No deployments
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|