Skip to content

ci(deps): keep grammar crates in their own Dependabot group - #355

Merged
sunerpy merged 1 commit into
mainfrom
ci/dependabot-grammar-group
Nov 27, 2026
Merged

sunerpy merged 1 commit into
mainfrom
ci/dependabot-grammar-group

Conversation

@sunerpy

@sunerpy sunerpy commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Summary

Split Dependabot's single cargo group so grammar crates never ride along with ordinary dependency bumps:

  • a tree-sitter group takes tree-sitter* and is listed first;
  • the general cargo group keeps * but excludes tree-sitter* (Dependabot assigns a dependency to the first group it matches, and a dependency that matches an exclude pattern is left out);
  • tree-sitter-swift and tree-sitter-scala are ignored: both are pinned exactly in crates/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

  • The file parses as YAML; the groups come out as ["tree-sitter", "cargo"] with the two ignores.
  • oxfmt --check (0.64.0) passes on the file.
  • The pre-push make pre-ci passed on 09b0410.

Note: an ignore entry also suppresses Dependabot security updates for those two crates; their versions are tracked by hand.

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

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@            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:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sunerpy
sunerpy merged commit de8e4da into main Nov 27, 2026
11 checks passed
@sunerpy
sunerpy deleted the ci/dependabot-grammar-group branch November 27, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant