Commit 8288dcb
committed
feat(lighthouse-ci): render report as Job Summary; sync APPS list to matrix
Two changes to make Lighthouse data visible on every run, regardless of trigger:
1. Always write the report markdown to `$GITHUB_STEP_SUMMARY` via
`core.summary.addRaw().write()`. The Job Summary renders as a styled panel
at the top of the workflow run page \u2014 visible for PR runs, nightly runs,
and manual dispatches alike. For PR runs the existing PR comment is still
posted/updated; for nightly runs the Job Summary becomes the only output
(was previously just `console.log` to the workflow log, which nobody reads).
2. Trim the hardcoded APPS list from 9 entries down to 2 (default-browser,
nextjs-16). Only those two apps actually branch on `SENTRY_LIGHTHOUSE_MODE`
today \u2014 the other seven were carried over from the original planner output
but were never instrumented. With the stale 9-entry list, the matrix only
produced 6 of 27 expected cells, tripping the 50%-fill safety check on
every run and skipping the report entirely. The MEDIUM-severity bugbot
finding called this out.
When more apps gain `SENTRY_LIGHTHOUSE_MODE` support (tracked in
TODO-aeab11f0), add them to both APPS arrays at the same time.1 parent 760b128 commit 8288dcb
1 file changed
Lines changed: 11 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 20 | | |
26 | | - | |
27 | 21 | | |
28 | 22 | | |
29 | 23 | | |
| |||
150 | 144 | | |
151 | 145 | | |
152 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | | - | |
| 154 | + | |
157 | 155 | | |
158 | 156 | | |
159 | 157 | | |
| |||
0 commit comments