-
Notifications
You must be signed in to change notification settings - Fork 5.3k
build: commit hash parameter from Compare and comment
step in Page Load Benchmark workflow
#35554
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
Merged
ffmcgee725
merged 14 commits into
main
from
fix/page-load-benchmark-pr-comment-commit-hash
Sep 8, 2025
+51
−15
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
80de03f
build: remove commit hash from metamaskbot comment
ffmcgee725 ded681a
fix: attempt to fix commit sha
ffmcgee725 86c277b
fix: minor fix to expected file path
ffmcgee725 69a08ff
fix: last attempt at correct head commit hash
ffmcgee725 63f8bc3
Revert "fix: last attempt at correct head commit hash"
ffmcgee725 d4d3085
fix: attempt separate workflow
ffmcgee725 901aa08
fix: add script for commit hash fetch from head of branch
ffmcgee725 acaa04e
Revert "fix: add script for commit hash fetch from head of branch"
ffmcgee725 ba3e3ca
Revert "fix: attempt separate workflow"
ffmcgee725 7991c6d
Revert "Revert "fix: last attempt at correct head commit hash""
ffmcgee725 ce43719
build: extract page load benchmark comment logic
ffmcgee725 692a023
fix: address invalid yml
ffmcgee725 9f0bcab
fix: add page load bench comment as github action instead of workflow
ffmcgee725 5bf9bdf
build: minor clean up
ffmcgee725 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: 'Page load benchmark comment' | ||
description: 'Download benchmark results, create directory structure, and comment on PR' | ||
inputs: | ||
head-commit-hash: | ||
description: 'The head commit hash to pass to the benchmark comment script' | ||
required: true | ||
pr-comment-token: | ||
description: 'GitHub token for commenting on PR' | ||
required: true | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Download page load benchmark results | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: benchmark-results | ||
|
||
- name: Create expected page load benchmark results directory structure | ||
shell: bash | ||
run: | | ||
mkdir -p test-artifacts/benchmarks | ||
mv benchmark-results.json test-artifacts/benchmarks/benchmark-results.json | ||
- name: Page load benchmark compare and comment | ||
shell: bash | ||
run: yarn tsx development/page-load-benchmark-pr-comment.ts | ||
env: | ||
PR_COMMENT_TOKEN: ${{ inputs.pr-comment-token }} | ||
OWNER: ${{ github.repository_owner }} | ||
REPOSITORY: ${{ github.event.repository.name }} | ||
PR_NUMBER: ${{ github.event.pull_request.number }} | ||
HEAD_COMMIT_HASH: ${{ inputs.head-commit-hash }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.