Skip to content

Commit f13ecda

Browse files
Cleanup after ARM GPU runner (#1074)
### Before submitting Please complete the following checklist when submitting a PR: - [ ] All new features must include a unit test. If you've fixed a bug or added code that should be tested, add a test to the [`tests`](../tests) directory! - [ ] All new functions and code must be clearly commented and documented. If you do make documentation changes, make sure that the docs build and render correctly by running `make docs`. - [ ] Ensure that the test suite passes, by running `make test`. - [ ] Add a new entry to the `.github/CHANGELOG.md` file, summarizing the change, and including a link back to the PR. - [ ] Ensure that code is properly formatted by running `make format`. When all the above are checked, delete everything above the dashed line and fill in the pull request template. ------------------------------------------------------------------------------------------------------------ **Context:** Currently Arm GPU CI runners may be reused between runs, and there is no cleanup job after each runs. This means that caches/wheels from previous runs contaminate later runs. **Description of the Change:** Clean cache after each Arm GPU CI runs. E.g. [here](https://github.com/PennyLaneAI/pennylane-lightning/actions/runs/13593391314/job/38004671288?pr=1074#step:13:1) **Benefits:** No contamination between runs. **Possible Drawbacks:** **Related GitHub Issues:** --------- Co-authored-by: ringo-but-quantum <[email protected]>
1 parent 1259886 commit f13ecda

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@
6060

6161
### Bug fixes
6262

63+
* Fix Github CI for aarch64 cuda to clean up after runs.
64+
[(#1074)](https://github.com/PennyLaneAI/pennylane-lightning/pull/1074)
65+
6366
* Increase maximum time for aarch64-CUDA Github CI action .
6467
[(#1070)](https://github.com/PennyLaneAI/pennylane-lightning/pull/1070)
6568

.github/workflows/wheel_linux_aarch64_cuda.yml

+14
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,13 @@ jobs:
142142
retention-days: 1
143143
include-hidden-files: true
144144

145+
- name: Cleanup
146+
if: always()
147+
run: |
148+
rm -rf ${{ steps.setup_venv.outputs.venv_name }}
149+
rm -rf * .git .gitignore .github
150+
pip cache purge
151+
145152
upload-pypi:
146153
needs: [set_wheel_build_matrix, linux-wheels-aarch64]
147154
strategy:
@@ -168,3 +175,10 @@ jobs:
168175
with:
169176
verbose: true
170177
repository-url: https://test.pypi.org/legacy/
178+
179+
- name: Cleanup
180+
if: always()
181+
run: |
182+
rm -rf ${{ steps.setup_venv.outputs.venv_name }}
183+
rm -rf * .git .gitignore .github
184+
pip cache purge

0 commit comments

Comments
 (0)