Report the percentage compiled and a lost/regained diff against the PR base

The sticky comment now leads with the share of components compiled and a
comparison with the PR's base commit: components that lost optimization
(with the compiler's reasons) and ones that regained it. Functions are
diffed by file + name rather than line so unrelated edits that shift a
component down a file do not read as changes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Tomek Zawadzki
2026-08-31 14:19:29 +02:00
parent e42d7f9859
commit 90409ead1e
3 changed files with 173 additions and 5 deletions
+2 -1
View File
@@ -5,7 +5,8 @@
Reports which components and hooks React Compiler skipped optimizing, grouped by
the compiler's own diagnostic category. Run with `pnpm react-compiler:report`;
the React Compiler report workflow also runs it on every pull request and posts
the report as a sticky PR comment.
the report as a sticky PR comment, including a diff against the base commit of
components that lost or regained optimization.
## updateExtensions.sh