Skip to content

ci(docs): track mainline Cloudflare deployments - #569

Merged
Eli Bosley (elibosley) merged 1 commit into
mainfrom
codex/docs-main-deployment-tracking
Oct 22, 2026
Merged

Eli Bosley (elibosley) merged 1 commit into
mainfrom
codex/docs-main-deployment-tracking

Conversation

@elibosley

Copy link
Copy Markdown
Member

Summary

Mainline docs merges have Cloudflare build checks but no GitHub production deployment history. This adds a Production record for every push to main, and reports success only when the public site returns that commit and Cloudflare build ID.

Resolution

The tracking workflow observes the existing Cloudflare Git integration. It does not deploy code and needs no additional Cloudflare credentials. A Docusaurus post-build plugin writes deployment.json from Cloudflare's build environment, so a successful build check alone cannot mark an older public site as live.

Reviewer considerations

  • Tracking uses the existing Production environment and a GitHub token with checks-read and deployments-write permissions.
  • Public verification must match the commit SHA, build ID, and main branch. Blocked requests, stale content, and missing metadata leave the deployment unverified.
  • The workflow waits up to 25 minutes for Cloudflare and another five minutes for public verification. Cancellation records an interrupted tracking state when its cleanup step can run.
  • A rerun creates another tracking record without rebuilding or redeploying. An older commit can remain unverified if a newer deployment replaces it before verification.
  • Search indexing remains a separate status. Production activation and public verification require the first run after merge.

Implementation

  • Add a workflow with queued, building, public-verification, and terminal deployment statuses, with links to GitHub tracking logs and Cloudflare builds.
  • Publish build metadata for the default locale and give the endpoint a no-store cache policy.
  • Document where to view deployment history and how to repeat verification.

Verification

  • All 19 targeted Node tests passed, including build failure/cancellation/skip, wrong app or commit, retry selection, stale build identity, blocked public requests, propagation delay, and metadata generation.
  • Actionlint, Prettier, and git diff --check passed.
  • Remark passed for the new README section. The existing README is excluded from repository Remark checks and contains pre-existing HTML that the MDX parser rejects when forced.
  • Docusaurus configuration loaded with the plugin registered, using the checkout's node_modules on NODE_PATH for the glossary plugin's dependency resolution.
  • No full site build ran, per AGENTS.md. Live Cloudflare rollout is not yet proven.

Submission checklist

  1. Existing internal documentation links are unchanged.
  2. No new documentation pages were added.
  3. No media assets were added.
  4. Checked for duplicate open pull requests.
  5. Full build succeeds (CI pending; local full build omitted per AGENTS.md).

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

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 58 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: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2eaeac03-1f0e-4921-bdce-efe5b0b949dd
📥 Commits

Reviewing files that changed from the base of the PR and between f50879f and 569b1a6.

📒 Files selected for processing: 7
  • .github/workflows/production-deployment.yml
  • README.md
  • docusaurus.config.ts
  • plugins/deployment-metadata/index.cjs
  • scripts/track-production-deployment.cjs
  • scripts/track-production-deployment.node-test.cjs
  • static/_headers
  • 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

Comment @coderabbitai help to get the list of available commands.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
unraid-docs 569b1a6 Commit Preview URL

Branch Preview URL
Oct 22 2026, 05:47 PM

@elibosley
Eli Bosley (elibosley) marked this pull request as ready for review October 22, 2026 21:00
@elibosley
Eli Bosley (elibosley) merged commit 7e1f033 into main Oct 22, 2026
6 checks passed
@elibosley
Eli Bosley (elibosley) deleted the codex/docs-main-deployment-tracking branch October 22, 2026 21:00
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