chore(ci): fix turbo input path globs (#52414)

This PR fixes turbo.json inputs to avoid cache hit when it should be cache miss.

Example PR it was incorrectly cached:

- [PR 52407](https://github.com/vercel/next.js/pull/52407)
- [Commit 06b780](06b780e15e)
- [Logs with cache hit](https://github.com/vercel/next.js/actions/runs/5488474758/jobs/10001427837#step:27:29)

The docs mention the glob is relative to the workspace (aka package) directory, not the monorepo root.

> inputs globs must be specified as relative paths rooted at the workspace directory.

https://turbo.build/repo/docs/reference/configuration#inputs
This commit is contained in:
Steven 2023-07-07 21:57:24 -04:00 committed by GitHub
parent 9ccc6fc4a6
commit 0abc874ed5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,35 +41,35 @@
"//#typescript": {},
"rust-check": {
"inputs": [
".cargo/**",
"packages/next-swc/crates/**",
"**/Cargo.toml",
"**/Cargo.lock"
"../../.cargo/**",
"../../packages/next-swc/crates/**",
"../../**/Cargo.toml",
"../../**/Cargo.lock"
]
},
"test-cargo-unit": {
"inputs": [
".cargo/**",
"packages/next-swc/crates/**",
"**/Cargo.toml",
"**/Cargo.lock"
"../../.cargo/**",
"../../packages/next-swc/crates/**",
"../../**/Cargo.toml",
"../../**/Cargo.lock"
]
},
"test-cargo-integration": {
"inputs": [
".cargo/**",
"packages/next-swc/crates/**",
"packages/next/**",
"**/Cargo.toml",
"**/Cargo.lock"
"../../.cargo/**",
"../../packages/next-swc/crates/**",
"../../packages/next/**",
"../../**/Cargo.toml",
"../../**/Cargo.lock"
]
},
"test-cargo-bench": {
"inputs": [
".cargo/**",
"packages/next-swc/crates/**",
"**/Cargo.toml",
"**/Cargo.lock"
"../../.cargo/**",
"../../packages/next-swc/crates/**",
"../../**/Cargo.toml",
"../../**/Cargo.lock"
]
},
"//#get-test-timings": {