Skip to content

ci: switch cargo-udeps to cargo-shear - #10943

Open
siketyan wants to merge 8 commits into
mainfrom
ci/cargo-shear
Open

siketyan wants to merge 8 commits into
mainfrom
ci/cargo-shear

Conversation

@siketyan

@siketyan siketyan commented Jul 14, 2026 •

Copy link
Copy Markdown
Member

Summary

Removes use of cargo-udeps and use cargo-shear instead.

cargo-shear doesn't expand macros by default, so there are some false positives; usages in macros are not considered. If we choose to use macro expansion, it needs the nightly toolchain.

Test Plan

CI should be green

Docs

N/A

@siketyan siketyan self-assigned this Jul 14, 2026
@changeset-bot

changeset-bot Bot commented Jul 14, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 94f065d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

✅ Organic activity

No automation signals detected in the analyzed events.

View full analysis →

This is an automated analysis by AgentScan

@siketyan
siketyan requested review from a team July 14, 2026 16:34
@github-actions github-actions Bot added A-CLI Area: CLI A-Core Area: core A-Project Area: project A-Linter Area: linter A-Parser Area: parser A-Formatter Area: formatter A-Tooling Area: internal tools A-LSP Area: language server protocol L-JavaScript Language: JavaScript and super languages L-CSS Language: CSS and super languages L-JSON Language: JSON and super languages L-HTML Language: HTML and super languages L-Grit Language: GritQL A-Type-Inference Area: type inference A-Resolver Area: resolver L-Tailwind Language: Tailwind CSS L-Markdown Language: Markdown L-Yaml Language: Yaml labels Jul 14, 2026
@siketyan
siketyan marked this pull request as ready for review July 14, 2026 16:34
@coderabbitai

coderabbitai Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 12c31050-4fb8-4d14-9d93-c09f286bfecb

📥 Commits

Reviewing files that changed from the base of the PR and between 5025a91 and 94f065d.

📒 Files selected for processing (1)
  • crates/biome_css_parser/Cargo.toml
🚧 Files skipped from review as they are similar to previous changes (1)
  • crates/biome_css_parser/Cargo.toml

Walkthrough

The pull request replaces the nightly cargo-udeps dependency check with cargo-shear --deny-warnings. Workspace and package manifests remove unused dependencies, adjust development dependency paths, add cargo-shear ignore metadata, and simplify schema and language feature wiring. Generated syntax modules gain nodes_mut declarations, while selected internal module declarations are removed or added.

Possibly related PRs

  • biomejs/biome#10426: Updates the same dependency-check workflow and related dependency validation.
  • biomejs/biome#10416: Changes overlapping service feature wiring for GraphQL, YAML, and Markdown support.
  • biomejs/biome#10762: Changes overlapping language feature wiring in biome_configuration.
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states the main CI change: replacing cargo-udeps with cargo-shear.
Description check ✅ Passed The description matches the changeset and explains the cargo-udeps to cargo-shear swap and macro false positives.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/cargo-shear

Comment @coderabbitai help to get the list of available commands.

Comment thread crates/biome_graphql_parser/Cargo.toml Outdated
@codspeed

codspeed Bot commented Jul 14, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 28 untouched benchmarks
⏩ 242 skipped benchmarks1


Comparing ci/cargo-shear (94f065d) with main (899c60d)

Open in CodSpeed

Footnotes

  1. 242 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@siketyan
siketyan marked this pull request as draft July 14, 2026 16:48
@github-actions

Copy link
Copy Markdown
Contributor

Parser conformance results on

js/262

Test result main count This PR count Difference
Total 53422 53422 0
Passed 52141 52141 0
Failed 1239 1239 0
Panics 42 42 0
Coverage 97.60% 97.60% 0.00%

jsx/babel

Test result main count This PR count Difference
Total 38 38 0
Passed 37 37 0
Failed 1 1 0
Panics 0 0 0
Coverage 97.37% 97.37% 0.00%

markdown/commonmark

Test result main count This PR count Difference
Total 652 652 0
Passed 652 652 0
Failed 0 0 0
Panics 0 0 0
Coverage 100.00% 100.00% 0.00%

symbols/microsoft

Test result main count This PR count Difference
Total 5467 5467 0
Passed 1915 1915 0
Failed 3552 3552 0
Panics 0 0 0
Coverage 35.03% 35.03% 0.00%

ts/babel

Test result main count This PR count Difference
Total 677 677 0
Passed 593 593 0
Failed 84 84 0
Panics 0 0 0
Coverage 87.59% 87.59% 0.00%

ts/microsoft

Test result main count This PR count Difference
Total 18876 18876 0
Passed 13010 13010 0
Failed 5865 5865 0
Panics 1 1 0
Coverage 68.92% 68.92% 0.00%

@siketyan
siketyan marked this pull request as ready for review July 15, 2026 10:54
@siketyan
siketyan requested a review from ematipico July 15, 2026 10:55

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
crates/biome_css_parser/Cargo.toml (1)

32-32: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use local paths for internal dev-dependencies.

  • crates/biome_css_parser/Cargo.toml#L32-L32: change biome_diagnostics to path = "../biome_diagnostics".
  • crates/biome_graphql_analyze/Cargo.toml#L31-L31: change biome_languages to path = "../biome_languages".
  • crates/biome_graphql_formatter/Cargo.toml#L36-L36: change biome_languages to path = "../biome_languages".

As per coding guidelines, internal biome_* crates in [dev-dependencies] must use path dependencies rather than workspace = true.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@crates/biome_css_parser/Cargo.toml` at line 32, Replace the workspace-based
internal dev-dependencies with local path dependencies: use path
"../biome_diagnostics" for biome_diagnostics in
crates/biome_css_parser/Cargo.toml:32-32, and path "../biome_languages" for
biome_languages in crates/biome_graphql_analyze/Cargo.toml:31-31 and
crates/biome_graphql_formatter/Cargo.toml:36-36.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@crates/biome_css_parser/Cargo.toml`:
- Line 32: Replace the workspace-based internal dev-dependencies with local path
dependencies: use path "../biome_diagnostics" for biome_diagnostics in
crates/biome_css_parser/Cargo.toml:32-32, and path "../biome_languages" for
biome_languages in crates/biome_graphql_analyze/Cargo.toml:31-31 and
crates/biome_graphql_formatter/Cargo.toml:36-36.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: f6ca858c-a4ff-4d57-9966-5c72326fe7c4

📥 Commits

Reviewing files that changed from the base of the PR and between 899c60d and 5025a91.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock and included by **
📒 Files selected for processing (64)
  • .github/workflows/pull_request.yml
  • Cargo.toml
  • crates/biome_analyze/Cargo.toml
  • crates/biome_cli/Cargo.toml
  • crates/biome_configuration/Cargo.toml
  • crates/biome_configuration/src/organize_imports.rs
  • crates/biome_css_analyze/Cargo.toml
  • crates/biome_css_formatter/Cargo.toml
  • crates/biome_css_parser/Cargo.toml
  • crates/biome_css_parser/src/lib.rs
  • crates/biome_css_parser/src/prelude.rs
  • crates/biome_css_syntax/Cargo.toml
  • crates/biome_formatter/Cargo.toml
  • crates/biome_formatter_test/Cargo.toml
  • crates/biome_fs/Cargo.toml
  • crates/biome_graphql_analyze/Cargo.toml
  • crates/biome_graphql_formatter/Cargo.toml
  • crates/biome_graphql_parser/Cargo.toml
  • crates/biome_grit_formatter/Cargo.toml
  • crates/biome_grit_parser/Cargo.toml
  • crates/biome_grit_patterns/src/parse.rs
  • crates/biome_html_analyze/Cargo.toml
  • crates/biome_html_formatter/Cargo.toml
  • crates/biome_html_formatter/src/astro/auxiliary/expression.rs
  • crates/biome_html_parser/Cargo.toml
  • crates/biome_html_syntax/Cargo.toml
  • crates/biome_html_syntax/src/generated.rs
  • crates/biome_js_analyze/Cargo.toml
  • crates/biome_js_formatter/Cargo.toml
  • crates/biome_js_formatter/src/format.rs
  • crates/biome_js_parser/Cargo.toml
  • crates/biome_js_semantic/src/semantic_model.rs
  • crates/biome_js_syntax/Cargo.toml
  • crates/biome_js_type_info/Cargo.toml
  • crates/biome_json_formatter/Cargo.toml
  • crates/biome_json_parser/Cargo.toml
  • crates/biome_json_syntax/Cargo.toml
  • crates/biome_lsp/Cargo.toml
  • crates/biome_lsp_converters/Cargo.toml
  • crates/biome_markdown_formatter/Cargo.toml
  • crates/biome_markdown_parser/Cargo.toml
  • crates/biome_markdown_syntax/Cargo.toml
  • crates/biome_markdown_syntax/src/generated.rs
  • crates/biome_migrate/Cargo.toml
  • crates/biome_module_graph/Cargo.toml
  • crates/biome_project_layout/Cargo.toml
  • crates/biome_resolver/Cargo.toml
  • crates/biome_rowan/Cargo.toml
  • crates/biome_rule_options/src/use_single_case_statement.rs
  • crates/biome_service/Cargo.toml
  • crates/biome_service/src/workspace/document/mod.rs
  • crates/biome_service/src/workspace/document/services/mod.rs
  • crates/biome_tailwind_parser/Cargo.toml
  • crates/biome_tailwind_syntax/Cargo.toml
  • crates/biome_tailwind_syntax/src/generated.rs
  • crates/biome_test_utils/Cargo.toml
  • crates/biome_wasm/Cargo.toml
  • crates/biome_yaml_formatter/Cargo.toml
  • crates/biome_yaml_parser/Cargo.toml
  • crates/biome_yaml_syntax/Cargo.toml
  • crates/biome_yaml_syntax/src/generated.rs
  • xtask/codegen/Cargo.toml
  • xtask/coverage/Cargo.toml
  • xtask/rules_check/Cargo.toml
💤 Files with no reviewable changes (26)
  • crates/biome_lsp_converters/Cargo.toml
  • crates/biome_css_parser/src/prelude.rs
  • crates/biome_grit_formatter/Cargo.toml
  • crates/biome_module_graph/Cargo.toml
  • crates/biome_service/src/workspace/document/services/mod.rs
  • crates/biome_grit_patterns/src/parse.rs
  • crates/biome_js_type_info/Cargo.toml
  • crates/biome_js_parser/Cargo.toml
  • crates/biome_css_parser/src/lib.rs
  • crates/biome_fs/Cargo.toml
  • crates/biome_wasm/Cargo.toml
  • crates/biome_rule_options/src/use_single_case_statement.rs
  • crates/biome_project_layout/Cargo.toml
  • crates/biome_service/src/workspace/document/mod.rs
  • crates/biome_configuration/src/organize_imports.rs
  • crates/biome_html_formatter/src/astro/auxiliary/expression.rs
  • xtask/rules_check/Cargo.toml
  • crates/biome_lsp/Cargo.toml
  • crates/biome_js_formatter/src/format.rs
  • crates/biome_formatter/Cargo.toml
  • crates/biome_cli/Cargo.toml
  • crates/biome_resolver/Cargo.toml
  • xtask/codegen/Cargo.toml
  • crates/biome_css_formatter/Cargo.toml
  • crates/biome_html_formatter/Cargo.toml
  • crates/biome_test_utils/Cargo.toml

@ematipico ematipico left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found an incorrect change. Merge away once it's resolved

Comment thread crates/biome_css_parser/Cargo.toml Outdated

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-CLI Area: CLI A-Core Area: core A-Formatter Area: formatter A-Linter Area: linter A-LSP Area: language server protocol A-Parser Area: parser A-Project Area: project A-Resolver Area: resolver A-Tooling Area: internal tools A-Type-Inference Area: type inference L-CSS Language: CSS and super languages L-Grit Language: GritQL L-HTML Language: HTML and super languages L-JavaScript Language: JavaScript and super languages L-JSON Language: JSON and super languages L-Markdown Language: Markdown L-Tailwind Language: Tailwind CSS L-Yaml Language: Yaml

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants