Repository navigation
ci(deps): keep grammar crates in their own Dependabot group - #355
Merged
Merged
Conversation
The single cargo group put every update, grammar crates included, into one pull request. #345 showed the cost: its tree-sitter-dart 0.3.0 bump changed extraction (batch_coverage_languages' dart case failed on Windows Tests) without an extraction-version move, and it rewrote the deliberate exact pins of tree-sitter-swift (=0.7.3) and tree-sitter-scala (=0.26.3). - A `tree-sitter` group takes `tree-sitter*` and comes first; the general `cargo` group excludes `tree-sitter*`, so a grammar crate never lands in it (Dependabot assigns a dependency to the first group it matches, and a dependency matching an exclude pattern is left out). - tree-sitter-swift and tree-sitter-scala are ignored: their exact pins move by hand together with the extraction change each one needs. An ignore also covers security updates for those two crates. The github-actions group is unchanged.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #355 +/- ##
==========================================
- Coverage 96.40% 96.39% -0.01%
==========================================
Files 368 368
Lines 254382 254382
==========================================
- Hits 245226 245223 -3
- Misses 9156 9159 +3 see 6 files with indirect coverage changes 🚀 New features to boost your workflow:
|
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
Split Dependabot's single cargo group so grammar crates never ride along with ordinary dependency bumps:
tree-sittergroup takestree-sitter*and is listed first;cargogroup keeps*but excludestree-sitter*(Dependabot assigns a dependency to the first group it matches, and a dependency that matches an exclude pattern is left out);tree-sitter-swiftandtree-sitter-scalaare ignored: both are pinned exactly incrates/codegraph-extract/Cargo.toml(=0.7.3,=0.26.3) and move by hand together with the extraction change each one needs.The github-actions group is unchanged.
Why
#345 (now superseded by #353) put 22 updates in one pull request. Its tree-sitter-dart 0.3.0 bump changed extraction (
batch_coverage_languages.rs:111, the Dart case, failed on Windows Tests) without an extraction-version decision, and it rewrote the two deliberate exact pins. A grammar update needs its own pull request, goldens and an extraction-version decision.Verification
["tree-sitter", "cargo"]with the two ignores.oxfmt --check(0.64.0) passes on the file.make pre-cipassed on 09b0410.Note: an
ignoreentry also suppresses Dependabot security updates for those two crates; their versions are tracked by hand.