Repository navigation
Use cargo-shear for dependency checks in CI - #11476
Merged
Merged
Conversation
This was referenced Oct 9, 2026
Jefffrey
reviewed
Oct 10, 2026
Jefffrey
left a comment
Contributor
There was a problem hiding this comment.
thanks i think we can go with shear
we can also remove occurrences of #[allow(unused_crate_dependencies)] i believe
and we can also remove it here:
arrow-rs/.github/workflows/integration.yml
Lines 228 to 231 in fa96419
Member
Author
Jefffrey
approved these changes
Oct 15, 2026
Jefffrey
enabled auto-merge
October 15, 2026 06:45
Contributor
|
thanks @sdf-jkl |
andygrove
added a commit
to andygrove/arrow-rs
that referenced
this pull request
Nov 19, 2026
The `jiff` feature is expected to cover more than named timezones as arrow moves to jiff, so the CI step names, the README and the feature comments describe the feature rather than its current effect. The `timezone` module docs keep the timezone details. Remove `use chrono_tz as _`, which kept the `-D unused_crate_dependencies` clippy checks passing. apache#11476 replaced those checks with cargo-shear, which passes without it. Drop the `tzdb_version` test, since the function only passes the release through.
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.
Which issue does this PR close?
closes #11166.
Rationale for this change
The existing unused-dependency checks add 54 Clippy invocations across Arrow crates and exclude tests and benchmarks. Replace them with cargo-shear to check dependencies across the repository, including dev-dependencies and Parquet crates.
The Machete comparison draft #11477 evaluates detection quality and false positives on the same upstream base. Dependencies remain unchanged so the PR CI runs show each tool's findings directly.
What changes are included in this PR?
--deny-warnings, covering the workspace and both excluded PyArrow crates. The excluded-crate scans still run if an earlier scan finds issues.Are these changes tested?
actionlint,git diff --check, andtypos --config typos.tomlpass.On upstream base
e17d04788f, all three local Shear scans pass with no findings. Machete 0.9.2 reports six false positives on that same base:bytes,futures, andtokioin each ofarrow-csvandarrow-json, all used in reader doctests.The previously observed unused and misplaced dependencies have already been corrected upstream. This PR contains no dependency cleanup. The PR CI run will validate installation and execution in GitHub Actions.
Codex assisted with the workflow edits, local validation, and this description.
Are there any user-facing changes?
No. This changes CI only.