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

feat: support pr summary for benchmark output #138

Merged
merged 9 commits into from
Mar 5, 2023

Conversation

EstebanBorai
Copy link
Contributor

Provide support for PR Summary for benchmark output.

Refer: #136

Provide support for PR Summary for benchmark output.

Refer: benchmark-action#136
@embano1
Copy link

embano1 commented Nov 20, 2022

Please don't forgot to also update action.yaml and the README.

@EstebanBorai
Copy link
Contributor Author

Please don't forgot to also update action.yaml and the README.

Of course!

@EstebanBorai EstebanBorai marked this pull request as ready for review November 21, 2022 23:06
@EstebanBorai
Copy link
Contributor Author

Hi @embano1, thanks for remind me documentation! I addressed documentation here: 45bc41e.

@EstebanBorai
Copy link
Contributor Author

Along with documentation I also added the option to the cargo example we have in our workflows here https://github.com/benchmark-action/github-action-benchmark/pull/138/files#diff-73e17259d77e5fbef83b2bdbbe4dc40a912f807472287f7f45b77e0cbf78792dR45 to check it out

src/write.ts Outdated
];
});

core.summary.addHeading(`Benchmarks: ${name}`).addTable([headers, ...rows]);

Choose a reason for hiding this comment

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

Note this is missing the call to write() to actually send the summary upstream to GitHub

core.summary.addHeading(`Benchmarks: ${name}`).addTable([headers, ...rows]).write();

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks!

j3hempsey
j3hempsey previously approved these changes Jan 3, 2023
Copy link

@j3hempsey j3hempsey left a comment

Choose a reason for hiding this comment

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

LGTM

@EstebanBorai
Copy link
Contributor Author

Hi @embano1 and @ktrz, any news on merging this? It would be cool to use actual repo version over forks if possible. Please let me know if theres something I should update to have this merged soon! 🙌🏻

README.md Outdated Show resolved Hide resolved
@edulix
Copy link

edulix commented Feb 11, 2023

Just wanted to say - I'd also love this to be merged. Thanks for the good work guys.

@EstebanBorai
Copy link
Contributor Author

Just wanted to say - I'd also love this to be merged. Thanks for the good work guys.

Yeah! Any suggestions or improvements that could get this merged sooner!

@embano1
Copy link

embano1 commented Feb 12, 2023

See my only comment on the PR, but I'm not a maintainer of this project so can't merge.

Co-authored-by: Michael Gasch <[email protected]>
@EstebanBorai
Copy link
Contributor Author

See my only comment on the PR, but I'm not a maintainer of this project so can't merge.

Just committed! Thanks!

@EstebanBorai EstebanBorai requested review from embano1 and j3hempsey and removed request for embano1 and j3hempsey February 12, 2023 16:36
embano1
embano1 previously approved these changes Feb 13, 2023
Copy link

@embano1 embano1 left a comment

Choose a reason for hiding this comment

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

LGTM

j3hempsey
j3hempsey previously approved these changes Feb 13, 2023
morenol
morenol previously approved these changes Feb 13, 2023
@morenol
Copy link
Contributor

morenol commented Feb 13, 2023

@ktrz hey, sorry for pinging you on this PR.

Maybe you could review this and merge if everything looks good to you?

@edulix
Copy link

edulix commented Feb 14, 2023

Random comment, trying to be helpful: seems like this project would benefit from having you guys, that are already reviewers, [to be able to / feel able to] have the power to merge code into the main branch and do releases, given that @ktrz seems a bit busy these days.

@brainstorm
Copy link

Random comment, trying to be helpful: seems like this project would benefit from having you guys, that are already reviewers, [to be able to / feel able to] have the power to merge code into the main branch and do releases, given that @ktrz seems a bit busy these days.

And not only this pullrequest, but the others waiting in line plus attention to some of the issues too... I was considering doing a soft fork of this project if this owner/maintainer situation is not addressed soon :-S

ktrz
ktrz previously approved these changes Feb 17, 2023
@ktrz
Copy link
Member

ktrz commented Feb 17, 2023

Hey @EstebanBorai

Thanks for your contribution. I'd love to merge this PR. I just need the CI errors to be addressed before I can do that.

@EstebanBorai EstebanBorai dismissed stale reviews from ktrz, morenol, j3hempsey, and embano1 via f2e739f March 2, 2023 13:06
@EstebanBorai
Copy link
Contributor Author

Hey @EstebanBorai

Thanks for your contribution. I'd love to merge this PR. I just need the CI errors to be addressed before I can do that.

Hi @ktrz sorry for the delay!

I just pushed fixes for tests and lint!

@EstebanBorai EstebanBorai requested a review from ktrz March 3, 2023 14:43
@ktrz ktrz merged commit 78c0eb2 into benchmark-action:master Mar 5, 2023
@ktrz
Copy link
Member

ktrz commented Mar 5, 2023

Released in v1.16.0

@gaby
Copy link

gaby commented Mar 6, 2023

@EstebanBorai @embano1 @ktrz The action.yml was not updated, is that why this feature doesnt work yet?

We are getting an Unexpected Input(s) "summary-always" error.

@ktrz
Copy link
Member

ktrz commented Mar 6, 2023

@EstebanBorai @embano1 @ktrz The action.yml was not updated, is that why this feature doesnt work yet?

We are getting an Unexpected Input(s) "summary-always" error.

Yes, @gaby. That seems to be an issue. Sorry for the oversight. Just released a new version with action.yml update

@gaby
Copy link

gaby commented Mar 6, 2023

@EstebanBorai @embano1 @ktrz The action.yml was not updated, is that why this feature doesnt work yet?
We are getting an Unexpected Input(s) "summary-always" error.

Yes, @gaby. That seems to be an issue. Sorry for the oversight. Just released a new version with action.yml update

Thank you! 😁

@EstebanBorai EstebanBorai deleted the feat/pr-summary branch March 6, 2023 15:26
@EstebanBorai
Copy link
Contributor Author

Awesome! Im using it here: https://github.com/infinyon/fluvio/actions/runs/4347865829/attempts/1#summary-11804007347
But looks like we still have to add some titles over [object Object].

image

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.

8 participants