From d512c00d02d3ae804a17843dcab652867efce0de Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Mon, 12 Aug 2024 15:37:51 -0700 Subject: [PATCH 1/6] Log disk usage in CI --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1acd219f9ad19..1d02dcc922f4d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,6 +97,10 @@ jobs: with: toolchain: 1.72.0 override: true + - name: "Check free disk space" + run: df -h + - name: "Check disk usage (including . files)" + run: du -sh .[^.]* * - name: "Run tests" run: cargo test --manifest-path=compiler/Cargo.toml --locked ${{ matrix.target.features && '--features' }} ${{ matrix.target.features }} From 351cc5e7822ba24d734b0808af2732c6b313cb01 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Mon, 12 Aug 2024 15:44:29 -0700 Subject: [PATCH 2/6] Log after downloading crate code --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d02dcc922f4d..2a346b0b0aa06 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -101,6 +101,10 @@ jobs: run: df -h - name: "Check disk usage (including . files)" run: du -sh .[^.]* * + - name: "Fetch cargo dependencies" + run: cargo fetch + - name: "Check free disk space" + run: df -h - name: "Run tests" run: cargo test --manifest-path=compiler/Cargo.toml --locked ${{ matrix.target.features && '--features' }} ${{ matrix.target.features }} From c3e030676ad76cbb073553138f4827c7bf6f35ca Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Mon, 12 Aug 2024 15:45:47 -0700 Subject: [PATCH 3/6] Specify cargo dir --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a346b0b0aa06..1144c928d4547 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,7 +102,7 @@ jobs: - name: "Check disk usage (including . files)" run: du -sh .[^.]* * - name: "Fetch cargo dependencies" - run: cargo fetch + run: cargo fetch --manifest-path=compiler/Cargo.toml - name: "Check free disk space" run: df -h - name: "Run tests" From 0979a2aa47a06e14939c7dfe0e5ffc57c98dc435 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Mon, 12 Aug 2024 16:03:30 -0700 Subject: [PATCH 4/6] Try forcing test compiler artifacts to be written to / --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1144c928d4547..af8b040527fa7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -106,7 +106,7 @@ jobs: - name: "Check free disk space" run: df -h - name: "Run tests" - run: cargo test --manifest-path=compiler/Cargo.toml --locked ${{ matrix.target.features && '--features' }} ${{ matrix.target.features }} + run: CARGO_TARGET_DIR=/cargo-test-artifacts cargo test --manifest-path=compiler/Cargo.toml --locked ${{ matrix.target.features && '--features' }} ${{ matrix.target.features }} build-test-projects: name: Compiler output check (${{ matrix.target.os }}) From 920765c2fb3ed105d4ef3771e9a44bb9853a4061 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Mon, 12 Aug 2024 16:05:10 -0700 Subject: [PATCH 5/6] Log PWD --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af8b040527fa7..a8048672c70ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -105,6 +105,8 @@ jobs: run: cargo fetch --manifest-path=compiler/Cargo.toml - name: "Check free disk space" run: df -h + - name: "pwd" + run: pwd - name: "Run tests" run: CARGO_TARGET_DIR=/cargo-test-artifacts cargo test --manifest-path=compiler/Cargo.toml --locked ${{ matrix.target.features && '--features' }} ${{ matrix.target.features }} From d30f80c6a1c7dda22d78d13da2fec086c2c1885e Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Mon, 12 Aug 2024 16:06:38 -0700 Subject: [PATCH 6/6] Can we write to home dir? --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a8048672c70ee..bac459369ae97 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,7 +108,7 @@ jobs: - name: "pwd" run: pwd - name: "Run tests" - run: CARGO_TARGET_DIR=/cargo-test-artifacts cargo test --manifest-path=compiler/Cargo.toml --locked ${{ matrix.target.features && '--features' }} ${{ matrix.target.features }} + run: CARGO_TARGET_DIR=~/cargo-test-artifacts cargo test --manifest-path=compiler/Cargo.toml --locked ${{ matrix.target.features && '--features' }} ${{ matrix.target.features }} build-test-projects: name: Compiler output check (${{ matrix.target.os }})