Automate Benchmarking - fixing issue. (#836)

## Summary
<!--- This is a required section; please describe the main purpose of
this proposed code change. --->
Weekly runs were failing, fixed it. 
<!---
## Details
This is an optional section; is there anything specific that reviewers
should be aware of?
--->

## Testing Done
<!--- This is a required section; please describe how this change was
tested. --->

<!-- 
Replace BLANK with your device type. For example, A100-80G-PCIe

Complete the following tasks before sending your PR, and replace `[ ]`
with
`[x]` to indicate you have done them. 
-->

- Hardware Type: <BLANK>
- [ ] run `make test` to ensure correctness
- [ ] run `make checkstyle` to ensure code style
- [ ] run `make test-convergence` to ensure convergence

---------

Co-authored-by: Manan Shah <[email protected]>
Co-authored-by: Vaibhav Jindal <[email protected]>
This commit is contained in:
Manan Shah
2025-07-28 14:16:54 -07:00
committed by GitHub
co-authored by Manan Shah Vaibhav Jindal
parent 7705dcc928
commit 286b240724
+13 -13
View File
@@ -39,24 +39,24 @@ jobs:
steps:
# Step: Decide the commit hash to use
- name: Determine commit hash to checkout
id: choose_commit
run: |
if [ "${{ github.event.inputs.commit_hash }}" != "" ]; then
echo "Using manual input commit: ${{ github.event.inputs.commit_hash }}"
echo "hash=${{ github.event.inputs.commit_hash }}" >> $GITHUB_OUTPUT
else
echo "Using latest commit from main"
git fetch origin main
echo "hash=$(git rev-parse origin/main)" >> $GITHUB_OUTPUT
fi
# Step: Checkout full history so we can check out any commit
- name: Checkout full repo history
uses: actions/checkout@v3
with:
fetch-depth: 0 # Important: so we can checkout arbitrary commit
# Step: Conditionally replace benchmark folder from main
- name: Determine commit hash to checkout
id: choose_commit
run: |
if [ "${{ github.event_name}}" == "workflow_dispatch" ] && [ "${{ github.event.inputs.commit_hash }}" != "main" ]; then
echo "Using manual input commit: ${{ github.event.inputs.commit_hash }}"
echo "hash=${{ github.event.inputs.commit_hash }}" >> $GITHUB_OUTPUT
else
echo "Using latest commit from main"
echo "hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
fi
# Step: Conditionally replace benchmark folder from main
- name: Replace benchmark folder from main (manual only, commit ≠ main)
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.commit_hash != 'main' }}
run: |