Repository: vercel/next.js
Pull request: [ci] Stop using Turbopack tests in native binary build cache keys

These tests can include node_modules that cause cache invalidations in windows runners. They're also not contributing to the binaries and should be save to exclude. 


Now windows jobs all use the same binary created in build-native-windows:
- [build-native-window: cache miss, executing `2d683f1c4730153a`](https://github.com/vercel/next.js/actions/runs/22360024714/job/64711356925?pr=90449#step:26:48)
- [test dev windows: cache hit, replaying logs `2d683f1c4730153a`](https://github.com/vercel/next.js/actions/runs/22360024714/job/64713041657?pr=90449#step:26:48)
- [test integration windows: cache hit, replaying logs `2d683f1c4730153a`](https://github.com/vercel/next.js/actions/runs/22360024714/job/64713041659?pr=90449#step:26:49)
- [test prod windows: cache hit, replaying logs `2d683f1c4730153a`](https://github.com/vercel/next.js/actions/runs/22360024714/job/64713041658?pr=90449#step:26:49)

---
[Slack Thread](https://vercel.slack.com/archives/C04KC8A53T7/p1771941715103449?thread_ts=1771941715.103449&cid=C04KC8A53T7)

<p><a href="https://cursor.com/agents/bc-1842f5a1-2efc-5078-9f83-9bff35b1b39a"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a href="https://cursor.com/background-agent?bcId=bc-1842f5a1-2efc-5078-9f83-9bff35b1b39a"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;</p>



Changed files:
filename: packages/next-swc/turbo.json
patch: @@ -7,6 +7,7 @@
         "../../.cargo/**",
         "../../crates/**",
         "../../turbopack/crates/**",
+        "!../../turbopack/crates/*/tests/**",
         "../../Cargo.toml",
         "../../Cargo.lock",
         "../../.github/workflows/build_and_deploy.yml",
@@ -24,6 +25,7 @@
         "../../.cargo/**",
         "../../crates/**",
         "../../turbopack/crates/**",
+        "!../../turbopack/crates/*/tests/**",
         "../../Cargo.toml",
         "../../Cargo.lock",
         "../../.github/workflows/build_and_deploy.yml",
@@ -37,6 +39,7 @@
         "../../.cargo/**",
         "../../crates/**",
         "../../turbopack/crates/**",
+        "!../../turbopack/crates/*/tests/**",
         "../../**/Cargo.toml",
         "../../**/Cargo.lock",
         "../../.github/workflows/build_and_deploy.yml",
@@ -50,6 +53,7 @@
         "../../.cargo/**",
         "../../crates/**",
         "../../turbopack/crates/**",
+        "!../../turbopack/crates/*/tests/**",
         "../../**/Cargo.toml",
         "../../**/Cargo.lock",
         "../../.github/workflows/build_and_deploy.yml",
@@ -63,6 +67,7 @@
         "../../.cargo/**",
         "../../crates/**",
         "../../turbopack/crates/**",
+        "!../../turbopack/crates/*/tests/**",
         "../../**/Cargo.toml",
         "../../**/Cargo.lock",
         "../../.github/workflows/build_and_deploy.yml",
@@ -76,6 +81,7 @@
         "../../.cargo/**",
         "../../crates/**",
         "../../turbopack/crates/**",
+        "!../../turbopack/crates/*/tests/**",
         "../../**/Cargo.toml",
         "../../**/Cargo.lock",
         "../../.github/workflows/build_and_deploy.yml",
@@ -89,6 +95,7 @@
         "../../.cargo/**",
         "../../crates/**",
         "../../turbopack/crates/**",
+        "!../../turbopack/crates/*/tests/**",
         "../../**/Cargo.toml",
         "../../**/Cargo.lock",
         "../../.github/workflows/build_and_deploy.yml",
@@ -102,6 +109,7 @@
         "../../.cargo/**",
         "../../crates/**",
         "../../turbopack/crates/**",
+        "!../../turbopack/crates/*/tests/**",
         "../../**/Cargo.toml",
         "../../**/Cargo.lock",
         "../../.github/workflows/build_and_deploy.yml",
@@ -115,6 +123,7 @@
         "../../.cargo/**",
         "../../crates/**",
         "../../turbopack/crates/**",
+        "!../../turbopack/crates/*/tests/**",
         "../../**/Cargo.toml",
         "../../**/Cargo.lock",
         "../../.github/workflows/build_and_deploy.yml",