Unverified Commit 6d2cb42f authored by Niklas Mischkulnig's avatar Niklas Mischkulnig Committed by GitHub

ci: Fix caching of test-cargo-unit (#93327)

Previously, it only used the rust files as the cache key via `rust-fingerprint`.
So changing fixtures didn't invalidate the turborepo run.
parent 6ca4390a
...@@ -238,6 +238,7 @@ jobs: ...@@ -238,6 +238,7 @@ jobs:
needsRust: 'yes' needsRust: 'yes'
needsNextest: 'yes' needsNextest: 'yes'
skipNativeBuild: 'yes' skipNativeBuild: 'yes'
skipInstallBuild: 'yes'
afterBuild: pnpm dlx turbo@${TURBO_VERSION} run test-cargo-unit ${TURBO_ARGS} afterBuild: pnpm dlx turbo@${TURBO_VERSION} run test-cargo-unit ${TURBO_ARGS}
stepName: 'test-cargo-unit' stepName: 'test-cargo-unit'
secrets: inherit secrets: inherit
......
...@@ -309,7 +309,7 @@ jobs: ...@@ -309,7 +309,7 @@ jobs:
if: ${{ inputs.skipInstallBuild != 'yes' }} if: ${{ inputs.skipInstallBuild != 'yes' }}
- run: pnpm install - run: pnpm install
if: ${{ inputs.skipInstallBuild != 'yes' }} if: ${{ inputs.skipInstallBuild != 'yes' || inputs.needsNextest == 'yes' }}
- name: Install node-file-trace test dependencies - name: Install node-file-trace test dependencies
if: ${{ inputs.needsNextest == 'yes' }} if: ${{ inputs.needsNextest == 'yes' }}
......
...@@ -84,7 +84,12 @@ ...@@ -84,7 +84,12 @@
}, },
"test-cargo-unit": { "test-cargo-unit": {
"dependsOn": ["rust-fingerprint"], "dependsOn": ["rust-fingerprint"],
"inputs": ["../../target/.rust-fingerprint"], "inputs": [
"../../target/.rust-fingerprint",
"../../crates/*/tests/**",
"../../turbopack/crates/*/tests/**",
"!../../turbopack/crates/turbopack-tests/tests/execution/**/output/*",
],
}, },
}, },
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment