From 74f6cd898167bec22dd3fe9e23c6c55a0e53027e Mon Sep 17 00:00:00 2001 From: Mobeen Abdullah Date: Tue, 11 Aug 2026 17:45:13 +0500 Subject: [PATCH] ci(root): stop the test step rebuilding under running suites --- .github/workflows/ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c7d57aa87b..699192ed6a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -164,9 +164,20 @@ jobs: # # ui / storage-s3 / storage-uploadthing have no test files yet; listed so # they gate automatically the moment they gain one. + # `--only` because the Build step above already built every package in this + # filter list. Without it turbo re-materialises each test's build + # dependencies from cache — 11 packages' `dist/` rewritten while sibling + # suites are already collecting against them. A test that resolves a + # dependency's entry mid-rewrite fails with `Cannot find module + # '.../dist/chunk-.mjs'` in a package the change never touched, and + # which package loses the race varies run to run. + # + # Safe because the filter list is a subset of `./packages/*`, which the + # Build step covers. A package added here but not built above would fail + # loudly at collection rather than silently skip. - name: Test run: >- - pnpm turbo test + pnpm turbo test --only --filter=@nextlyhq/blocks-engine --filter=@nextlyhq/blocks-react --filter=@nextlyhq/builder