Skip to content

chore: report React Compiler migration errors#8068

Open
joshblack wants to merge 1 commit into
mainfrom
copilot/react-compiler-report-errors
Open

chore: report React Compiler migration errors#8068
joshblack wants to merge 1 commit into
mainfrom
copilot/react-compiler-report-errors

Conversation

@joshblack

@joshblack joshblack commented Jun 26, 2026

Copy link
Copy Markdown
Member

Updates a column to our react compiler migration helper that reports on the error. You can see the result here in the job summary: https://github.com/primer/react/actions/runs/28247127773

Changelog

New

  • Adds compiler error reasons to the React Compiler migration status report for files that are not migrated.

Changed

  • Updates the migration status script to run React Compiler diagnostics with panicThreshold: 'all_errors' and collect logger.logEvent output per file.

Removed

  • N/A

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; this only changes an internal reporting script and does not affect the published package.

Testing & Reviewing

  • node script/react-compiler-migration-status.mts
  • npx eslint --fix script/react-compiler-migration-status.mts
  • npm run type-check

Merge checklist

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@joshblack joshblack added the skip changeset This change does not need a changelog label Jun 26, 2026
@changeset-bot

changeset-bot Bot commented Jun 26, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: e480375

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions Bot added the staff Author is a staff member label Jun 26, 2026
@joshblack joshblack added the integration-tests: skipped manually Changes in this PR do not require an integration test label Jun 26, 2026
@joshblack joshblack marked this pull request as ready for review June 26, 2026 15:28
@joshblack joshblack requested a review from a team as a code owner June 26, 2026 15:28
@joshblack joshblack requested review from Copilot and siddharthkp June 26, 2026 15:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds React Compiler diagnostic context to the migration status report so the GitHub Actions job summary shows why each “not migrated” file is failing/skipped, making the report more actionable for ongoing migration work.

Changes:

  • Runs per-file Babel transforms with babel-plugin-react-compiler configured with panicThreshold: 'all_errors'.
  • Captures React Compiler logger.logEvent output (plus CompilerError.details when thrown) and renders a new “Compiler errors” column for not-migrated files.
  • Refactors output to a small write() helper and adds formatting/escaping for Markdown table cells.
Show a summary per file
File Description
script/react-compiler-migration-status.mts Adds React Compiler diagnostics and includes per-file error/skip reasons in the generated migration status report.

Review details

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Low

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration-tests: skipped manually Changes in this PR do not require an integration test skip changeset This change does not need a changelog staff Author is a staff member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants