From b9dad83c4622cae8bf1fd539e0acdb183573fc60 Mon Sep 17 00:00:00 2001 From: Wonhyuk Yang Date: Fri, 26 Jun 2026 00:18:52 +0900 Subject: [PATCH] [CI] Run test_scheduler on github-hosted with extra disk test_scheduler compiles resnet18 and EncoderBlock and launches each model twice, so the per-kernel RISC-V ELFs, objdump disassembly dumps and gem5 m5out directories accumulate within a single run. On the small github-hosted root volume (~14G) this overflows during the RISC-V final link step (ld: final link failed: No space left on device). Free the preinstalled tool caches before the run and redirect the PyTorchSim outputs/ and /tmp artifacts onto the larger /mnt scratch disk (~70G) so the accumulated artifacts no longer fill the root volume. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01HAmdM9BrsTvfi8sZnnfNno --- .github/workflows/pytorchsim_test.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/pytorchsim_test.yml b/.github/workflows/pytorchsim_test.yml index 345c716e..a1b475c1 100644 --- a/.github/workflows/pytorchsim_test.yml +++ b/.github/workflows/pytorchsim_test.yml @@ -637,6 +637,16 @@ jobs: name: Run test_scheduler runs-on: ubuntu-latest steps: + - name: Free up disk space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: true + android: true + dotnet: true + haskell: true + large-packages: true + swap-storage: false + - name: Log in to GitHub Container Registry uses: docker/login-action@v3 with: @@ -647,8 +657,17 @@ jobs: - name: Run test_scheduler.py run: | echo "Running test_scheduler.py" + # test_scheduler compiles resnet18 + EncoderBlock and launches each + # twice, so per-kernel RISC-V ELFs, objdump dumps and gem5 m5out dirs + # accumulate and overflow the small github-hosted root volume. + # Redirect those artifacts to the larger /mnt scratch disk (~70G). + sudo mkdir -p /mnt/togout /mnt/togtmp + sudo chmod 777 /mnt/togout /mnt/togtmp docker run --rm \ -e TOGSIM_CONFIG="${{ inputs.togsim_config }}" \ + -e TMPDIR=/tmp \ + -v /mnt/togout:/workspace/PyTorchSim/outputs \ + -v /mnt/togtmp:/tmp \ ${{ inputs.image_name }} python3 PyTorchSim/tests/system/test_scheduler.py test_llama: