fix: Replace axios with native fetch in turbo-codemod#11600
Merged
anthonyshew merged 2 commits intomainfrom Jan 31, 2026
Merged
fix: Replace axios with native fetch in turbo-codemod#11600anthonyshew merged 2 commits intomainfrom
anthonyshew merged 2 commits intomainfrom
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Coverage Report
|
anthonyshew
added a commit
that referenced
this pull request
Jan 31, 2026
## 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]`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
fetch()in@turbo/codemodpackageChanges
The
getLatestVersion.tsfile was the only place using axios for a simple GET request to the npm registry. Node.js 18+ has native fetch support, so this removes the need for the axios dependency entirely.Testing