Skip to content
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

Enable user to specify the git ref being tested #163

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

robobario
Copy link
Contributor

@robobario robobario commented Apr 11, 2023

The ref will be used preferentially (if specified) when looking up the details of the commit to record the results against.

Why:
When used to record results from a performance test run triggered by a comment on a PR, the results were recorded against the head commit of main, not the tested commit. The workflow checked out the PR's ref and ran tests against this. This change allows users to specify the tested ref to record benchmark results against.

Example usage:

with:
  ref: refs/pull/${{ github.event.issue.number }}/head

Closes #157

The ref will be used preferentially (if specified) when looking up the details
of the commit to record the results against.

Why:
When used to record results from a performance test run triggered by a
comment on a PR, the results were recorded against the head commit of main
on our branch. Not the tested commit. This change allows users to specify
the tested ref.

Example usage:
```
with:
  ref: refs/pull/${{ github.event.issue.number }}/head
```
Copy link
Member

@ktrz ktrz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution @robobario!
LGTM!

@ktrz ktrz merged commit 87c65e8 into benchmark-action:master Apr 26, 2023
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.

Integrate with Pull Request comment flow
2 participants