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(.github/perf): reference metrics dashboard #297

Merged
merged 1 commit into from
Sep 4, 2023

Conversation

galargh
Copy link
Contributor

@galargh galargh commented Sep 4, 2023

Alternative to #296 which ties the PR commenting to the perf job instead.

Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

Way better! Small comment in case you know a quick-fix.

run: |
git add benchmark-results.json
git commit -m "perf: update benchmark results"
git push
gh pr comment --body "See new metrics at https://observablehq.com/@libp2p-workspace/performance-dashboard?branch=$(git rev-parse HEAD)" || true
Copy link
Member

Choose a reason for hiding this comment

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

Small nit: I am not sure $(git rev-parse HEAD) would be URL encoded. E.g. a branch of system/subsystem would not work here, right?

Copy link
Contributor

Choose a reason for hiding this comment

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

afaik git rev-parse HEAD always outputs a commit hash

Copy link
Contributor Author

Choose a reason for hiding this comment

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

afaik git rev-parse HEAD always outputs a commit hash

👍

I also checked and the dashboard works fine with hashes. E.g. https://observablehq.com/@libp2p-workspace/performance-dashboard?branch=cb2db89d5ead60942e49f34bb6b0a3db83de26e3#branch

Copy link
Member

Choose a reason for hiding this comment

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

My bad. Yes. That makes sense. Thanks!

@mxinden mxinden merged commit 0b4e5e4 into master Sep 4, 2023
@mxinden mxinden deleted the perf-dashboard-link-alt branch September 4, 2023 15:57
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.

3 participants