Commit 5ad6026
committed
fix(observability-map): keep the test task out of the turbo cache
The suite scans apps/webapp/app, packages/plugins/src, internal-packages/rbac/src
and four files under .github/workflows, none of which turbo hashes for this
package, so turbo run test replayed a pass recorded before those trees changed.
Measured rather than argued: a route file with a syntax error fails the suite
under vitest, and the same tree came back FULL TURBO in 301ms with the failure
cached away as a success.
inputs was tried and rejected rather than assumed unworkable. Turbo 1.x does
accept .. in an input glob, and ../../apps/webapp/app/** did bust the cache on a
route change, but it replaces the default file set instead of adding to it, so
the same config silently dropped this package's own vitest.config.ts from the
hash. The $TURBO_DEFAULT$ token that would add rather than replace is turbo 2.x
only and matches nothing on 1.10.3.
Costs about 23s per run and no CI job pays it: the dedicated workflow calls
vitest without turbo, and unit-tests-internal.yml runs cold.
Reported by Devin on #4455.1 parent f06e723 commit 5ad6026
2 files changed
Lines changed: 62 additions & 0 deletions
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
216 | 247 | | |
217 | 248 | | |
218 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments