mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-07 04:22:04 +00:00
[ci] use --output-logs=new-only to only list tests that changed (#10570)
This PR effectively reverts the change in https://github.com/vercel/vercel/pull/9172 since it is safe to skip tests that are not part of the turbo cache miss results. Previously, we were unable to do this because all of those jobs/checks were marked as required on the github repo settings. But now we have a single ["Summary" job](f6e863d4bb/.github/workflows/test.yml (L111-L128)) that is marked as required at the repo level so now we don't need to create jobs anymore just to see the turbo cache hit go green. - [15f90b0](15f90b057d) correctly skipped all e2e tests since none of the packages changed - [2613963](26139634fb) correctly ran the `vercel` e2e tests since the cli package was changed - [8488b05](8488b0543b) correctly runs tests for all packages since build-utils was changed and all packages depend on it Also see [Turbo `-output-logs` docs](https://turbo.build/repo/docs/reference/command-line-reference/run#--output-logs) for more.
This commit is contained in:
2
.changeset/very-happy-tests.md
Normal file
2
.changeset/very-happy-tests.md
Normal file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
---
|
||||
2
utils/chunk-tests.js
vendored
2
utils/chunk-tests.js
vendored
@@ -47,7 +47,7 @@ async function getChunkedTests() {
|
||||
`run`,
|
||||
...scripts,
|
||||
`--cache-dir=.turbo`,
|
||||
'--output-logs=full',
|
||||
'--output-logs=new-only',
|
||||
'--log-order=stream',
|
||||
'--',
|
||||
'--', // need two of these due to pnpm arg parsing
|
||||
|
||||
Reference in New Issue
Block a user