Skip to content

ci: check ReScript formatting and committed output - #1448

Open
fhammerschmidt wants to merge 7 commits into
masterfrom
fix/1421-rescript-ci
Open

fhammerschmidt wants to merge 7 commits into
masterfrom
fix/1421-rescript-ci

Conversation

@fhammerschmidt

@fhammerschmidt fhammerschmidt commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

Extend yarn ci:format to check Oxfmt and ReScript formatting across all four workspaces. Run formatting from the repository root and have the docs workspace's formatting command delegate to it.

Add yarn ci:generated to check tracked compiler output after a clean build. Identify generated files by their compiler header, remove them before rebuilding, and fail if the tracked output changes. This also catches output left behind by deleted or excluded sources.

Regenerate the guide's stale routes.jsx and document how to run and fix the new checks. The unused-value and export check is in #1443.

Merge after #1451.

Part of #1421.
Fixes #1416 together with #1443.

Check ReScript formatting across all workspaces alongside Oxfmt. Clean and rebuild before comparing tracked JavaScript output, refresh guide routes output, and share the root format commands with the docs workspace.

Refs #1416 and #1421.
@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-11T22:45:36.023304Z aa47e87 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 117afd8 Commit Preview URL

Branch Preview URL
Oct 14 2026, 08:39 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: aa47e87128

ℹ️ 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 package.json Outdated
@github-actions

github-actions Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Lighthouse baseline

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

Category Target Current Change
Performance 85 86 +1
Accessibility 80 80 0
Best practices 100 100 0
SEO 100 66 -34

Download the full Lighthouse reports and baseline

Commit 4d40f1c · Cloudflare preview

Remove compiler-generated tracked files identified by their committed header before rebuilding. Preserve handwritten JavaScript and detect output whose source was deleted or whose workspace was excluded from the build.
Keep focused docs helpers in their workspace and retain contributor commands with an explicit purpose. Document manual tools and Yarn preparation behavior, and remove duplicate docs formatting and cleaning entries.
Remove the unused root performance and preparation aliases and the redundant docs formatting entry also removed by #1419. Keep the workspace helpers and root formatter checks so the CI and script-audit PRs merge cleanly.
Include #1451 so its package-script audit can merge first without conflicts. Preserve the root ReScript formatting and generated-output checks and the docs formatting delegate.
Keep the package-script audit focused on the eight redundant entries. Explain retained manual commands in the PR description without duplicating package scripts and contributor documentation.
Keep route validation before the clean compiler rebuild and retain root-level formatting commands while merging master.
@github-actions

Copy link
Copy Markdown
Contributor

Docs preview

This branch was successfully deployed

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

No CI check for ReScript formatting, reanalyze, or committed generated files

1 participant