|
68 | 68 | # Makefile variables |
69 | 69 | BUILD_ARCH: ${{ inputs.platform }} |
70 | 70 | RELEASE_PYTHON_VERSION: ${{ inputs.python }} |
| 71 | + # Faster/smaller cache restore on resource-constrained runners (e.g. arm64). RHAIENG-2819 |
| 72 | + GHA_CACHE_ZSTD_LEVEL: "3" |
71 | 73 |
|
72 | 74 | steps: |
73 | 75 |
|
@@ -160,7 +162,7 @@ jobs: |
160 | 162 |
|
161 | 163 | # region Free up disk space |
162 | 164 |
|
163 | | - - name: Free up additional disk space |
| 165 | + - name: Free up disk space |
164 | 166 | uses: ./.github/actions/free-up-disk-space |
165 | 167 | # https://docs.github.com/en/actions/learn-github-actions/expressions |
166 | 168 | # NOTE: the arm64 GitHub hosted runner does not have the /mnt-mounted scratch disk |
@@ -324,7 +326,7 @@ jobs: |
324 | 326 | # leave a breadcrumb trail in the logs. |
325 | 327 | (while true; do |
326 | 328 | echo "=== $(date -u '+%H:%M:%S') ===" |
327 | | - df -h | grep "${HOME}/.local/share/containers" |
| 329 | + df -h / /mnt "${HOME}/.local/share/containers" 2>/dev/null || df -h |
328 | 330 | free -h |
329 | 331 | sleep 30 |
330 | 332 | done) & |
@@ -567,7 +569,12 @@ jobs: |
567 | 569 | - run: df -h |
568 | 570 | if: "${{ !cancelled() }}" |
569 | 571 |
|
570 | | - - run: sudo compsize -x "${HOME}/.local/share/containers" |
| 572 | + - run: | |
| 573 | + if mountpoint -q "${HOME}/.local/share/containers"; then |
| 574 | + sudo compsize -x "${HOME}/.local/share/containers" |
| 575 | + else |
| 576 | + echo "Skipping compsize: ${HOME}/.local/share/containers is not a btrfs mountpoint." |
| 577 | + fi |
571 | 578 | if: "${{ !cancelled() && steps.install-compsize.outcome == 'success' }}" |
572 | 579 |
|
573 | 580 | # print system logs, useful when hunting for OOM kills |
|
0 commit comments