Skip to content

enable posting to GitHub Checks API #894

Description

@OmarTawfik

Thanks for working on Bencher!

We have bencher running on our PRs, and it posts a PR comment with the result. But unfortunately we have a couple of issues with PR comments:

  1. A PR comment with active alerts won't block merging the PR. GitHub checks do.
  2. On large PRs with many comments/review rounds, that comment (and any alerts) are less visible/can be missed. A failed check (because of alerts) is highly visible.
  3. We have a lot of benchmarks, so we end up with ⚠️ WARNING: Truncated view! The full continuous benchmarking report exceeds the maximum length allowed on this platform.

The documentation mentions posting to GitHub Checks, which would work perfectly for us. But looking at the code, it seems to be a fallback only if bencher is not able to post a comment to the PR.

Is there currently a way to override this behavior, and explicitly switch to GitHub checks instead?
If not, any thoughts/concerns on adding a flag like this? i.e. something like --github-checks

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions