From 42429b00f9455fa3135de49b35daf64b4ceac1ce Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Fri, 31 Oct 2025 19:03:58 +0100 Subject: [PATCH] Temporarily disable nextest caching --- .github/workflows/release_nightly.yml | 4 ++-- .github/workflows/run_tests.yml | 27 +++------------------- tooling/xtask/src/tasks/workflows/steps.rs | 14 ++--------- 3 files changed, 7 insertions(+), 38 deletions(-) diff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.yml index 597bb60b7d116366332cbc4b1adb3098687b5210..80e6534e70e8f7169514fb8cc569f7b11488cd88 100644 --- a/.github/workflows/release_nightly.yml +++ b/.github/workflows/release_nightly.yml @@ -53,7 +53,7 @@ jobs: run: ./script/clippy shell: bash -euxo pipefail {0} - name: steps::cargo_install_nextest - run: cargo nextest || cargo install cargo-nextest --locked + run: cargo install cargo-nextest --locked shell: bash -euxo pipefail {0} - name: steps::clear_target_dir_if_large run: ./script/clear-target-dir-if-larger-than 300 @@ -88,7 +88,7 @@ jobs: run: ./script/clippy.ps1 shell: pwsh - name: steps::cargo_install_nextest - run: cargo nextest || cargo install cargo-nextest --locked + run: cargo install cargo-nextest --locked shell: pwsh - name: steps::clear_target_dir_if_large run: ./script/clear-target-dir-if-larger-than.ps1 250 diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 2d4bf65e619c84b38a8ae89f8e547c70a910b3ab..e7b9a1bf827929b82be430996fdc82aa08b44436 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -70,9 +70,6 @@ jobs: uses: namespacelabs/nscloud-cache-action@v1 with: cache: rust - path: |- - /home/runner/.cargo/bin/cargo-nextest - /home/runner/.cargo/bin/cargo-about - name: steps::setup_pnpm uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 with: @@ -117,7 +114,7 @@ jobs: run: ./script/clippy.ps1 shell: pwsh - name: steps::cargo_install_nextest - run: cargo nextest || cargo install cargo-nextest --locked + run: cargo install cargo-nextest --locked shell: pwsh - name: steps::clear_target_dir_if_large run: ./script/clear-target-dir-if-larger-than.ps1 250 @@ -156,9 +153,6 @@ jobs: uses: namespacelabs/nscloud-cache-action@v1 with: cache: rust - path: |- - /home/runner/.cargo/bin/cargo-nextest - /home/runner/.cargo/bin/cargo-about - name: steps::setup_node uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 with: @@ -167,7 +161,7 @@ jobs: run: ./script/clippy shell: bash -euxo pipefail {0} - name: steps::cargo_install_nextest - run: cargo nextest || cargo install cargo-nextest --locked + run: cargo install cargo-nextest --locked shell: bash -euxo pipefail {0} - name: steps::clear_target_dir_if_large run: ./script/clear-target-dir-if-larger-than 100 @@ -204,7 +198,7 @@ jobs: run: ./script/clippy shell: bash -euxo pipefail {0} - name: steps::cargo_install_nextest - run: cargo nextest || cargo install cargo-nextest --locked + run: cargo install cargo-nextest --locked shell: bash -euxo pipefail {0} - name: steps::clear_target_dir_if_large run: ./script/clear-target-dir-if-larger-than 300 @@ -232,9 +226,6 @@ jobs: uses: namespacelabs/nscloud-cache-action@v1 with: cache: rust - path: |- - /home/runner/.cargo/bin/cargo-nextest - /home/runner/.cargo/bin/cargo-about - name: steps::setup_linux run: ./script/linux shell: bash -euxo pipefail {0} @@ -282,9 +273,6 @@ jobs: uses: namespacelabs/nscloud-cache-action@v1 with: cache: rust - path: |- - /home/runner/.cargo/bin/cargo-nextest - /home/runner/.cargo/bin/cargo-about - name: cargo build -p collab run: cargo build -p collab shell: bash -euxo pipefail {0} @@ -345,9 +333,6 @@ jobs: uses: namespacelabs/nscloud-cache-action@v1 with: cache: rust - path: |- - /home/runner/.cargo/bin/cargo-nextest - /home/runner/.cargo/bin/cargo-about - name: run_tests::check_dependencies::install_cargo_machete uses: clechasseur/rs-cargo@8435b10f6e71c2e3d4d3b7573003a8ce4bfc6386 with: @@ -385,9 +370,6 @@ jobs: uses: namespacelabs/nscloud-cache-action@v1 with: cache: rust - path: |- - /home/runner/.cargo/bin/cargo-nextest - /home/runner/.cargo/bin/cargo-about - name: run_tests::check_docs::lychee_link_check uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332 with: @@ -430,9 +412,6 @@ jobs: uses: namespacelabs/nscloud-cache-action@v1 with: cache: rust - path: |- - /home/runner/.cargo/bin/cargo-nextest - /home/runner/.cargo/bin/cargo-about - name: ./script/check-licenses run: ./script/check-licenses shell: bash -euxo pipefail {0} diff --git a/tooling/xtask/src/tasks/workflows/steps.rs b/tooling/xtask/src/tasks/workflows/steps.rs index 88aa4c410d68e33afd4793e29481ee381cc720f3..d3e8faae116ee6b02e758d9ca09af6c40d963d20 100644 --- a/tooling/xtask/src/tasks/workflows/steps.rs +++ b/tooling/xtask/src/tasks/workflows/steps.rs @@ -49,10 +49,7 @@ pub fn cargo_fmt() -> Step { } pub fn cargo_install_nextest(platform: Platform) -> Step { - named::run( - platform, - "cargo nextest || cargo install cargo-nextest --locked", - ) + named::run(platform, "cargo install cargo-nextest --locked") } pub fn cargo_nextest(platform: Platform) -> Step { @@ -116,14 +113,7 @@ pub(crate) fn clippy(platform: Platform) -> Step { } pub(crate) fn cache_rust_dependencies_namespace() -> Step { - let allowlisted_binaries: &str = &[ - "/home/runner/.cargo/bin/cargo-nextest", - "/home/runner/.cargo/bin/cargo-about", - ] - .join("\n"); - named::uses("namespacelabs", "nscloud-cache-action", "v1") - .add_with(("cache", "rust")) - .add_with(("path", allowlisted_binaries)) + named::uses("namespacelabs", "nscloud-cache-action", "v1").add_with(("cache", "rust")) } fn setup_linux() -> Step {