-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Bencher CLI usage #4335
base: master
Are you sure you want to change the base?
Update Bencher CLI usage #4335
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @epompeii , Thanks for the PR!
The changes are good overall just a formatting change I've suggested for you to look into.
.github/workflows/track_benches.yml
Outdated
core.exportVariable("PR_HEAD", `${githubEvent.pull_request.head.ref}-${githubEvent.pull_request.head.sha.slice(0, 8)}`); | ||
core.exportVariable("PR_ID", `${githubEvent.pull_request.head.ref}/${process.env.BENCHER_TESTBED}/${process.env.BENCHER_ADAPTER}`); | ||
core.exportVariable("PR_NUMBER", githubEvent.number); | ||
core.exportVariable("PR_HEAD", prEvent.pull_request.head.ref); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable prEvent
is not present here, we can use the githubEvent
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch! Fixed.
bc4c1fd
to
8377219
Compare
This changeset updates the Bencher CLI to the new recommended usage. - Update deprecated CLI options: https://bencher.dev/docs/explanation/branch-selection/ - Safer and more succinct tracking from forks: https://bencher.dev/docs/how-to/github-actions/#pull-requests-from-forks - Threshold creation as a part of `bencher run`: https://bencher.dev/docs/explanation/thresholds/ - Use `percentage` test: https://bencher.dev/docs/explanation/thresholds/#percentage
8377219
to
3d3493f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes, LGTM
This changeset updates the Bencher CLI to the new recommended usage.
bencher run
: https://bencher.dev/docs/explanation/thresholds/percentage
test: https://bencher.dev/docs/explanation/thresholds/#percentage