GeezerVison is showing github.com — deploy(pm-console): stage protected cf release by dezren39 · Pull Request #12561 · developing-today/code
Conversation
dezren39
commented
Nov 22, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Part of #12521. This draft stages only the Worker deployment slice; it does not close the umbrella issue or include the report endpoint, APK, or Android SDK work.
Changes
- The existing
.github/workflows/pm-console-edge-deploy.yml is restored to match main exactly. Its current push-to-main Wrangler publisher and rollback input remain the production path.
- Adds a separate
workflow_dispatch-only cf release workflow, restricted to main, with upload-only and release stages. Neither stage runs on a push or pull request.
- Runs a no-secret parity job first. It compares Wrangler and cf dry-run binding names and bundle size, and checks the v1 SQLite Durable Object mapping.
- Upload uses the
pm-console-edge-upload environment and only CF_PM_EDGE_UPLOAD_API_TOKEN / CF_PM_EDGE_UPLOAD_ACCOUNT_ID. It creates a candidate version tagged with the full source SHA and workflow run, then captures the current 100% serving version. Upload never promotes.
- Promotion uses the separate
pm-console-edge-production environment and only CF_PM_EDGE_PROMOTE_API_TOKEN / CF_PM_EDGE_PROMOTE_ACCOUNT_ID. It verifies the candidate version id, tag and message, confirms its source SHA remains on main, checks that the serving version has not changed since upload, then explicitly promotes. It verifies the candidate is serving at 100% and passes the existing production health check.
- No route is configured in cf;
expose.py and its health-gated route behavior remain unchanged. The cf config maps the existing PmEdge SQLite class and assets.
Verification
npm ci --no-audit --no-fund: passed.
node build.mjs: passed.
- Wrangler
deploy --dry-run vs pinned cf beta.20 workers versions create --dry-run: passed offline with no Cloudflare credentials. Binding names matched and both reported 68.11 KiB / 19.81 KiB gzip. Output included the PM Durable Object, assets, PUBLIC_HOST and commit VERSION.
- Workflow YAML parsed;
bash -n passed for all 23 run steps; git diff --check: passed.
- GitHub currently reports no PR checks for this branch.
bun test: could not run because Bun is not installed locally. The Nix-backed CLI build also was not run locally because Nix is unavailable. No release workflow was triggered.
Settings prerequisite
A read-only check of repository environments found only copilot and github-pages; neither pm-console-edge-upload nor pm-console-edge-production currently exists. GitHub creates a referenced but missing environment without protection, so do not dispatch this workflow until both environments are configured with required reviewers, a main-only deployment branch policy, and their distinct environment-only secrets. No settings were changed; only environment names and protection metadata were checked read-only. No credential values were read. The production token also needs the access required for version/deployment checks and the existing workers.dev health lookup.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 22, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 59 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
94089081-c5e4-4c2b-b14e-9e1d60c78c85
Commits
-
Reviewing files that changed from the base of the PR and between 1d6ca73 and d111164.
Files selected for processing: 3
-
.github/workflows/pm-console-edge-cf-release.yml
pm-stack/console/edge/cloudflare.config.ts
pm-stack/console/edge/wrangler.config.ts
- 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.
dezren39
changed the title
deploy(pm-console): use cf Worker Versions
deploy(pm-console): stage protected cf release
Nov 22, 2026
This was referenced Nov 22, 2026
Uh oh!
There was an error while loading. Please reload this page.
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.
|