Skip to content

feat(.github/perf): reference metrics dashboard#297

Merged
mxinden merged 1 commit intomasterfrom
perf-dashboard-link-alt
Sep 4, 2023
Merged

feat(.github/perf): reference metrics dashboard#297
mxinden merged 1 commit intomasterfrom
perf-dashboard-link-alt

Conversation

@galargh
Copy link
Copy Markdown
Member

@galargh galargh commented Sep 4, 2023

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

Copy link
Copy Markdown
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.

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member 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
Copy Markdown
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
codemaestro64 pushed a commit to codemaestro64/test-plans that referenced this pull request Oct 28, 2025
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