Skip to content

fix: remove stale configuration and honor deployment environment - #1450

Open
fhammerschmidt wants to merge 2 commits into
masterfrom
fix/1421-stale-config
Open

fhammerschmidt wants to merge 2 commits into
masterfrom
fix/1421-stale-config

Conversation

@fhammerschmidt

@fhammerschmidt fhammerschmidt commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

Manual docs deployments ignored the selected environment, and production passed an empty Pages branch. Honor the choice throughout deployment, Lighthouse, and E2E checks, and remove configuration left over from earlier tooling.

Fixes #1418. Part of #1421.

  • Make the manual environment input a preview/production choice. Production explicitly uses --branch=master; manual previews of master use a preview alias. Existing PR preview aliases stay stable. This follows Pages' branch-based environment selection.
  • Isolate Lighthouse baselines by effective deployment environment. Preserve existing production-master and branch-preview keys; manual master previews and production deployments from other branches get separate keys. PR comparisons still use the target branch's normal baseline.
  • Correct the compiler-bundle attribute path to apps/docs/public/playground-bundles/. Remove obsolete Next.js/Vercel, dist, MDX manifest, compiled .mjs, temporary-file formatter, and redundant ignore entries. Keep current JSX, build, script-bundle, and browser-compiler output ignored.
  • Mark the Makefile's build and dev targets as phony so matching files or directories cannot skip their recipes.

Branch: fix/1421-stale-config, based on website master (v12), pushed directly to rescript-lang/rescript-lang.org. No compiler repository changes.

Validation: strict ReScript compilation, Oxfmt and ReScript formatting checks, all 31 Lighthouse report tests, Bash syntax, all seven deployment event/branch/environment cases run directly (including baseline selection for non-PR runs), workflow YAML/input wiring, Git attribute/ignore checks, and a Make dry run with colliding build/dev directories pass locally. All six PR CI jobs pass on the final commit, including all 32 Lighthouse workflow tests and 31 report tests. The workflow suite cannot spawn Bash locally (EPERM, also after an unrestricted retry); its regression coverage is verified in CI.

Related cleanup: the Yarn release ignore pattern is identical to #1449. Keep the index_data rules until #1443 removes their obsolete extractor and the rules together. The Makefile stays as a small wrapper around existing Yarn commands.

Honor manual preview and production selection in the docs deployment and its audits. Always pass an explicit Pages branch, including master for production, and cover the event/branch combinations in the workflow tests.

Remove obsolete ignore and formatter entries, fix the compiler-bundle attribute path, and mark Makefile build and dev targets as phony. Keep index_data rules with their extractor until the separate dead-code cleanup removes both.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-11T23:28:31.966275Z 8546631 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 11, 2026 •

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
guide 9dc6f89 Commit Preview URL

Branch Preview URL
Oct 11 2026, 11:37 PM

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8546631dca

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/deploy.yml
@github-actions

github-actions Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Lighthouse baseline

Compared with target branch master at commit a62233b. Scores are the median of 3 runs against the deployed Cloudflare preview.

Category Target Current Change
Performance 84 84 0
Accessibility 80 80 0
Best practices 100 100 0
SEO 92 58 -34

Download the full Lighthouse reports and baseline

Commit d233948 · Cloudflare preview

Include the effective environment when manual deployments differ from the branch default. Preserve existing production-master and branch-preview artifact keys, and keep PR comparisons pointed at their target branch baseline.
@github-actions

Copy link
Copy Markdown
Contributor

Docs preview

This branch was successfully deployed

2 active deployments
preview — 9dc6f89f Deployed Oct 11, 2026 by github-actions[bot]
guide-preview — 9dc6f89f Deployed Oct 11, 2026 by github-actions[bot]
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.

Stale configuration entries

1 participant