diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b2eca094c8..076b7c2177 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -139,7 +139,8 @@ lane's output prints as one block when the lane finishes, so lanes never interle summary gives every step's time, the slowest steps and each lane's wall time. `--quick` and `--only` run serially. `MO_CI_PY_WORKERS` (default 8), `MO_CI_TS_WORKERS` (default 6) and `MO_CI_JVM_FORKS` (default 3) set the worker counts for pytest-xdist, the TypeScript -integration suite and the JVM integration modules' surefire forks. +integration suite and the TypeScript `codegen-ts` conformance suite, and the JVM +integration modules' surefire forks. It SKIPS (loudly, not silently) any port whose toolchain (bun/dotnet/uv/mvn) isn't installed. The `.githooks/pre-push` hook additionally runs the TS build+typecheck diff --git a/scripts/ci-local.sh b/scripts/ci-local.sh index c78b0c4e39..e370f8e55b 100755 --- a/scripts/ci-local.sh +++ b/scripts/ci-local.sh @@ -125,7 +125,8 @@ # slowest steps and each lane's wall time. Every step still runs and still fails the # run; only the order changes. --quick and --only run serially as before. # Worker counts inside the runners: MO_CI_PY_WORKERS (pytest-xdist, default 8), -# MO_CI_TS_WORKERS (bun test --parallel for the integration suite, default 6) and +# MO_CI_TS_WORKERS (bun test --parallel for the integration suite and the codegen-ts suite +# in conformance: typescript, default 6) and # MO_CI_JVM_FORKS (surefire forkCount for the JVM integration modules, default 3). # # POSTGRES SIDECAR (see ensure_pg_sidecar below). Any lane that runs integration @@ -666,7 +667,12 @@ gate_conf_ts() { ( cd server/typescript/packages/render && bun test test/render-conformance.test.ts test/verify-conformance.test.ts test/extract/extract-conformance.test.ts test/output-prompt-conformance.test.ts ) || return 1 ( cd server/typescript/packages/integration-tests && bun test test/validation-conformance.test.ts test/validation-conformance-runtime.test.ts ) || return 1 ( cd server/typescript/packages/migrate-ts && bun test ) || return 1 - ( cd server/typescript/packages/codegen-ts && bun test --timeout 30000 ) || return 1 + # --parallel: the suite is many independent files (each builds its own model and writes + # into its own mkdtemp directory), so serially they spent minutes waiting on each other. + # Same worker count as the integration suite (scripts/integration-test.sh); MO_CI_TS_WORKERS + # overrides it. The cli suite below stays serial on purpose: under --parallel its tests + # that spawn prisma starved and timed out on the small hosted runner (pr-ci ts-fast). + ( cd server/typescript/packages/codegen-ts && bun test --timeout 30000 --parallel="${MO_CI_TS_WORKERS:-6}" ) || return 1 # --timeout 30000: the cli suite invokes full `meta`/run() dispatch, which lazily # imports each command's (sometimes heavy: codegen, migrate-ts) module on first # use. On a cold/contended self-hosted runner that first cold-start import can