ci(mobile): each mobile benchmark job posts its run as a pull request comment
Merged
OK
2mo ago+32+32+01234567890123456789-3-3-0123456789
- The web benchmark posts its two suites to the pull request through
@e2edev/github; the four mobile jobs (ios, android, each deterministic and agentic) posted nothing. Now each does, plus the job summary. - The workflow names each comment through
E2E_MOBILE_BENCHMARK_COMMENT, following the reporter's own matrix idiom (key: process.env.MATRIX_BROWSER):ios,ios agent,android,android agent. The agent config inherits the reporter through its spread of the base config, so one line covers both suites. - The
--last-failedsecond pass runs without the token and posts nothing, so each job has one comment: the first full pass. The report page lists only the tests a run selected (packages/e2e/src/report/markdown.ts:472), so a retry under the same name would replace a real failure list with its few passes, and a retry under its own name would outlive the failure that caused it. A green job whose comment lists failures is one the retry recovered. pull-requests: writeon the workflow andGITHUB_TOKENon the run steps. A fork's pull request still gets a read-only token, and the reporter says so instead of posting.- Unset, as on a Mac, no key: the reporter prints why it did not post and nothing else changes.
// apps/mobile-benchmark/e2e.config.ts
const comment = process.env.E2E_MOBILE_BENCHMARK_COMMENT;
reporters: ['list', github(comment === undefined ? {} : { key: comment })],
E2E_MOBILE_BENCHMARK_COMMENT: ios${{ matrix.suite == 'agentic' && ' agent' || '' }}
run: $E2E_RUN || env -u GITHUB_TOKEN $E2E_RUN --last-failed
This PR's own mobile jobs are the check: four comments should appear below.