Skip to content

nimbus: live#32181

Merged
MohamedH1998 merged 3 commits into
productionfrom
nimbus/live
Jul 21, 2026
Merged

nimbus: live#32181
MohamedH1998 merged 3 commits into
productionfrom
nimbus/live

Conversation

@MohamedH1998

Copy link
Copy Markdown
Contributor

Summary

Flip Nimbus builds to production

Screenshots (optional)

Documentation checklist

  • Is there a changelog entry (guidelines)? If you don't add one for something awesome and new (however small) — how will our customers find out? Changelogs are automatically posted to RSS feeds, the Discord, and X.
  • The change adheres to the documentation style guide.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Review

🚨 1 critical, ⚠️ 1 warning found in commit e096dd5.

Fix in your agent
Fix the following review findings in PR #32181 (https://github.com/cloudflare/cloudflare-docs/pull/32181).

Before making changes, review each finding and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g. the fix requires disproportionate effort for minimal benefit,
  or the finding is factually incorrect), explain why
- If you need clarification before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order

After triaging, fix all legitimate findings. For any you decide to skip,
post a comment on this PR with the finding ID and your reasoning.

---

## Code Review

### Critical (1)

#### CR-2e023bfe23fe · Asset directory inconsistent with Worker redirects import
- **File:** `wrangler.jsonc` line 17
- **Issue:** `assets.directory` is changed to `./dist-nimbus`, but `worker/index.ts` (the `main` entry) still imports redirects from `../dist/__redirects`. The Nimbus build outputs to `dist-nimbus/` while the default build outputs to `dist/`, so the production Worker will use stale or missing redirects while serving `dist-nimbus` assets.
- **Fix:** Either update `main` to `worker/index.preview.ts` (which imports `../dist-nimbus/__redirects`) or change `worker/index.ts` to import `../dist-nimbus/__redirects` so redirects and static assets are sourced from the same build output.

### Warnings (1)

#### CR-266a6c612836 · Preview deploy uses default wrangler config for Nimbus artifact
- **File:** `.github/workflows/ci.yml` line 401
- **Issue:** publish-preview now downloads dist-nimbus, but the Deploy to Cloudflare Workers step runs wrangler deploy without --config wrangler.nimbus-preview.json. The separate publish-nimbus-preview job uses that exact config for the same dist-nimbus artifact, so the default config likely expects dist, not dist-nimbus.
- **Fix:** If publish-preview is intended to deploy the Nimbus build, add --config wrangler.nimbus-preview.json to the wrangler deploy commands; otherwise, keep it downloading dist for the default config.

Code Review

This code review is in beta and may not always be helpful — use your judgment.

Critical (1)
File Issue
wrangler.jsonc line 17 Asset directory inconsistent with Worker redirects importassets.directory is changed to ./dist-nimbus, but worker/index.ts (the main entry) still imports redirects from ../dist/__redirects. The Nimbus build outputs to dist-nimbus/ while the default build outputs to dist/, so the production Worker will use stale or missing redirects while serving dist-nimbus assets. Fix: Either update main to worker/index.preview.ts (which imports ../dist-nimbus/__redirects) or change worker/index.ts to import ../dist-nimbus/__redirects so redirects and static assets are sourced from the same build output.
Warnings (1)
File Issue
.github/workflows/ci.yml line 401 Preview deploy uses default wrangler config for Nimbus artifact — publish-preview now downloads dist-nimbus, but the Deploy to Cloudflare Workers step runs wrangler deploy without --config wrangler.nimbus-preview.json. The separate publish-nimbus-preview job uses that exact config for the same dist-nimbus artifact, so the default config likely expects dist, not dist-nimbus. Fix: If publish-preview is intended to deploy the Nimbus build, add --config wrangler.nimbus-preview.json to the wrangler deploy commands; otherwise, keep it downloading dist for the default config.

Conventions

No convention issues found.

Style Guide Review

No style-guide issues found.

Commands

Only codeowners can run commands. Post a comment with the command to trigger it.

Command Description
/review Runs a review now. Incremental if a prior review exists, full if not.
/full-review Re-reviews the entire PR diff from scratch, ignoring incremental history. Useful after a rebase, when you want a fresh review, or if the bot gets out of sync and reports issues that no longer exist.
/ignore-review-limit Permanently lifts the 2-review automatic limit for this PR. Future pushes will trigger reviews as normal.
/disable-auto-review Stops automatic reviews from triggering on future pushes to this PR. Codeowners can still run /review or /full-review manually.
/rebase Rebases the PR branch against production. On conflict, attempts to resolve automatically using AI. Stops with an explanation if confidence is not high enough.

@github-actions

github-actions Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/.github/ @cloudflare/content-engineering, @kodster28, @mvvmm, @colbywhite, @ahaywood, @MohamedH1998
*.ts @cloudflare/content-engineering, @kodster28
* @cloudflare/product-owners

@github-actions

github-actions Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

@MohamedH1998
MohamedH1998 merged commit 6ef6c18 into production Jul 21, 2026
16 checks passed
@MohamedH1998
MohamedH1998 deleted the nimbus/live branch July 21, 2026 11:56
@MohamedH1998

Copy link
Copy Markdown
Contributor Author

/bonk create a revert PR for this

@ask-bonk

ask-bonk Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

fatal: couldn't find remote ref nimbus/live

github run

@ask-bonk

ask-bonk Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

@MohamedH1998 Bonk workflow failed. Check the logs for details.

View workflow run · To retry, trigger Bonk again.

@MohamedH1998

Copy link
Copy Markdown
Contributor Author

/bonk Roll back the Nimbus flip.

  1. Branch off latest production.
  2. Run: git revert -m 1 6ef6c18
  3. Open a PR to production titled "revert: nimbus to live".

Before opening, verify the diff touches EXACTLY these 8 files and nothing else:

  • wrangler.jsonc -> ./dist-nimbus reverts to ./dist
  • worker/index.ts -> ../dist-nimbus/__redirects reverts to ../dist/__redirects
  • worker/index.worker.test.ts -> og:image reverts to dev-products-preview.png
  • .github/workflows/ci.yml
  • .github/workflows/publish-production.yml
  • bin/post-pr-ci-failure-comment/index.ts
  • src/nimbus/content.config.ts
  • public/og-docs.png

@ask-bonk

ask-bonk Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

fatal: couldn't find remote ref nimbus/live

github run

MohamedH1998 added a commit that referenced this pull request Jul 21, 2026
MohamedH1998 added a commit that referenced this pull request Jul 21, 2026
@mvvmm mvvmm mentioned this pull request Jul 22, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants