Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
cf workers versions createupload andcf workers deployments createpromotion workflows, pinned to Node24.22.0,cf@1.0.0-rc.1, and Wrangler4.163.0.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.lab-ops-hub-cloudflare-releasewith uniquely named environment variableCLOUDFLARE_LAB_OPS_HUB_ACCOUNT_IDand secretCLOUDFLARE_LAB_OPS_HUB_API_TOKEN. The token needs the Cloudflare WorkersEditorrole scoped to the individuallab-ops-hubWorker; it is never supplied to pull-request jobs. No GitHub settings or token were changed/accessed.wrangler.jsoncbindings, routing, migrationsv1/v2, D1, R2, KV, queues, scheduled trigger, assets, and the exactCrawlerContainerV2:v5image mapping. Restore the former operator recovery app; keep the image-onlylab-ops-hub-image-pushapp separate from GHA Worker release.Fail-closed release hold
Cloudflare's documented Worker Version GET exposes
migration_tagand 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'sv2migration and fails before creating a new version if it cannot verify the exact:v5image; 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 buildplusnode 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.cf workers versions create --prebuilt ... --dry-run— passed with Cloudflare credential variables unset; showed expected bindings andCrawlerContainerV2:v5metadata.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.bash -n, PyYAML parsing of both workflows,git diff --check, and.github/scripts/check-ci-policy-agreement.sh— passed (10 workflows, zero waived disagreements).--dry-runbefore credential handling.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.