turbo
946b3cab - ci: Skip Rust and integration tests for JS-only changes (#11604)

Commit
307 days ago
ci: Skip Rust and integration tests for JS-only changes (#11604) ## Summary - Add `rust` output to the `find-changes` job that detects Rust/core code changes - Skip Rust tests, integration tests, and coverage when only JS packages change ## Why PRs like #11600 (removing axios from `@turbo/codemod`) were spinning up ~95 CI jobs even though the change only touched a JS package. Most of these jobs hit cache and did nothing useful, wasting compute. The existing `rest` filter triggers on any change outside `examples/` and `docs/`, including lockfile changes. This is too broad for determining whether Rust/integration tests need to run. ## Changes The new `rust` filter detects changes to: - `crates/` - Rust source - `cli/` - CLI code - `Cargo.*` - Rust dependencies - `rust-toolchain.toml` - Rust version - `.cargo/` - Cargo config - `turborepo-tests/` - Integration test fixtures Jobs now gated by `rust == 'true'`: - Integration tests (57 jobs across 3 OSes) - Rust unit tests (6 jobs) - Coverage report - `@turbo/types` codegen check ## Impact For JS-only PRs: ~95 jobs → ~20 jobs The `test-js-packages.yml` workflow still runs with proper filtering via `turbo run --filter={./packages/*}...[$BASE_SHA]`.
Author
Parents
Loading