Skip to content

ci: benchmark pull requests with the benchmark label and comment the result - #932

Open
nigrosimone wants to merge 1 commit into
fastify:mainfrom
nigrosimone:bench-comment
Open

nigrosimone wants to merge 1 commit into
fastify:mainfrom
nigrosimone:bench-comment

Conversation

@nigrosimone

@nigrosimone nigrosimone commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

This runs npm run bench:cmp from #888 on a pull request with the benchmark label, against its base commit, and posts the result as a comment. The comment is updated on the next push, like in uWebSockets.js.

The comment is written by a second workflow on workflow_run, because the token of a pull_request run from a fork is read only. That workflow reads only the summary artifact, nothing from the pull request is checked out or run, and the pull request to comment on is taken from the event.

The label makes it opt-in, like test-compare in fastify, because one run takes about 15 minutes.

Since workflow_run uses the file on main, the comment works only after the merge.

@nigrosimone
nigrosimone marked this pull request as ready for review November 21, 2026 10:29
@nigrosimone
nigrosimone marked this pull request as draft November 21, 2026 10:30
@nigrosimone
nigrosimone marked this pull request as ready for review November 21, 2026 11:42

This branch has not been deployed

No deployments
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.

1 participant