Skip to content

Conversation

paldepind
Copy link
Contributor

@paldepind paldepind commented Sep 11, 2025

This seems to have gone pretty smoothly.

I had to revert the changes to the Ruby extractor's Cargo file as updating those caused problems.

DCA is uneventful.

@github-actions github-actions bot added documentation Ruby Rust Pull requests that update Rust code labels Sep 11, 2025
@paldepind paldepind force-pushed the rust/update-rust-analyzer branch from 6e07d4b to 4e1c4a9 Compare September 11, 2025 09:40
@github-actions github-actions bot removed the Ruby label Sep 11, 2025
@paldepind paldepind marked this pull request as ready for review September 11, 2025 12:49
@paldepind paldepind requested review from a team as code owners September 11, 2025 12:49
@Copilot Copilot AI review requested due to automatic review settings September 11, 2025 12:49
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR upgrades rust-analyzer dependencies from version 0.0.300 to 0.0.301, updating the core Rust extractor components and related dependencies. The update appears to have gone smoothly, with the note that Ruby extractor changes were reverted due to compatibility issues.

Key changes:

  • Updates all ra_ap_* (rust-analyzer API) dependencies from 0.0.300 to 0.0.301
  • Updates various Rust ecosystem dependencies (proc-macro2, syn, chrono, etc.)
  • Updates Bazel build files to reflect new dependency versions

Reviewed Changes

Copilot reviewed 162 out of 163 changed files in this pull request and generated no comments.

Show a summary per file
File Description
shared/typeinference/codeql/typeinference/internal/TypeScraps.md Added new code snippets for type inference signature modules
shared/tree-sitter-extractor/Cargo.toml Updated dependency versions for tracing-subscriber, rayon, regex, and chrono
rust/extractor/macros/Cargo.toml Updated syn dependency from 2.0.104 to 2.0.106
rust/extractor/Cargo.toml Updated clap and all rust-analyzer dependencies to 0.0.301, plus other minor version bumps
rust/ast-generator/Cargo.toml Updated proc-macro2 and ra_ap_stdx to latest versions
misc/bazel/3rdparty/tree_sitter_extractors_deps/defs.bzl Comprehensive update of Bazel dependency definitions with new version labels
Multiple BUILD files Updated version numbers and dependency references throughout Bazel build configuration

@hvitved
Copy link
Contributor

hvitved commented Sep 11, 2025

DCA is uneventful.

That's because database caching was enabled; I have started a new run with caching disabled.

@paldepind
Copy link
Contributor Author

Oh, I see. Thanks! The second DCA run seems good as well.

@hvitved
Copy link
Contributor

hvitved commented Sep 12, 2025

Looks like this has a positive impact on extraction time: https://github.com/github/codeql-dca-main/blob/data/hvitved/pr-20408-4e1c4a__nightly__nightly/reports/summaries/time.theme.md#database-build-time-per-source

@@ -8,15 +8,15 @@ edition = "2024"
# When updating these dependencies, run `misc/bazel/3rdparty/update_cargo_deps.sh`
[dependencies]
tree-sitter = ">= 0.23.0"
tree-sitter-embedded-template = "0.25.0"
tree-sitter-embedded-template = "0.23.2"
Copy link
Contributor

Choose a reason for hiding this comment

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

@paldepind I guess upgrading tree-sitter-embedded-template caused problem in the ruby extractor. Perhaps we can bump the versions of the other dependencies and only revert the upgrade of tree-sitter-embedded-template?

Copy link
Contributor

Choose a reason for hiding this comment

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

The changes in 0.25 don't look to exciting, but I guess the update of the underlying tree-sitter library may cause problems. Having multiple versions of tree-sitter in the dependency hierarchy can lead to annoying clashes and error messages like type Language does not match type Language.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll try that 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks, just make an issue for the Ruby team to have a look into updating tree-sitter-embedded-template and tree-sitter.

@@ -0,0 +1,134 @@

Copy link
Contributor

Choose a reason for hiding this comment

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

This change does not seem related to regenerating bazel files.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Good you spotted this.

@paldepind paldepind force-pushed the rust/update-rust-analyzer branch from 4e1c4a9 to 19c529e Compare September 12, 2025 13:50
@paldepind paldepind requested a review from a team as a code owner September 12, 2025 13:50
@github-actions github-actions bot added the Ruby label Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ruby Rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants