Skip to content

ci: Fix !bencher-thresholds-reset PR comment#466

Merged
samuelburnham merged 3 commits into
mainfrom
ci-bencher-thresholds
Jul 2, 2026
Merged

ci: Fix !bencher-thresholds-reset PR comment#466
samuelburnham merged 3 commits into
mainfrom
ci-bencher-thresholds

Conversation

@samuelburnham

@samuelburnham samuelburnham commented Jul 1, 2026

Copy link
Copy Markdown
Member

Unifies the reset command to !bencher-thresholds-reset everywhere, and adds a comment reply that confirms whether or not the action parsed the command correctly.

Also switches from only parsing on PR close to adding a PR label that queues the threshold reset, which can also be added/removed manually by maintainers. This way if someone queues the reset accidentally it can be rolled back before merge.

Match the workflow filename to the `!bencher-thresholds-reset` command it
handles. The old `bench-thresholds-reset.yml` name didn't match the command,
which made it easy to typo as `!benchmark-thresholds-reset` — a miss that
silently reset nothing at merge. Keep the `bencher` spelling (not `benchmark`)
so it can't collide with bench-pr.yml's `!benchmark` trigger.

Add an `ack` job: when a maintainer comments the command on a still-open PR,
reply confirming the baseline reset is queued for the merge commit, or warn if
the workload is unknown/missing — immediate feedback instead of silence until
merge. Bot-guarded so its own reply can't re-trigger it.

The reset still runs only on merge (pull_request.merged == true), never on a
non-merged close.
The ack job (comment time) is now the single place that parses and validates
the !bencher-thresholds-reset command; it records each valid workload as a
baseline-reset:<workload> label. The merge-time reset job reads those labels
straight from the event payload instead of re-scanning and re-parsing PR
comments, so the interpret logic lives in exactly one place. The label is also
human-visible and can be removed to cancel a queued reset. Adds issues: write
so ack can create/apply the label.
…label

Rename the moved git tag baseline-reset-<workload> ->
bencher-thresholds-reset-<workload> (and its reader in bencher-track/action.yml)
so the command, workflow, label, and tag all share one name.

Make `all` a first-class label: ack applies bencher-thresholds-reset:all
verbatim, and the merge job is the single place that expands an `all` label into
every workload.
@samuelburnham samuelburnham merged commit 43564f6 into main Jul 2, 2026
15 of 16 checks passed
@samuelburnham samuelburnham deleted the ci-bencher-thresholds branch July 2, 2026 01:27
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.

2 participants