Skip to content

programs: add initial rust-analyzer testing#543

Open
tamird wants to merge 1 commit intointel:masterfrom
tamird:add-rust-analyzer
Open

programs: add initial rust-analyzer testing#543
tamird wants to merge 1 commit intointel:masterfrom
tamird:add-rust-analyzer

Conversation

@tamird
Copy link
Copy Markdown

@tamird tamird commented Jan 29, 2026

Hi folks! I've recently become the maintainer of the rust analyzer support code
which makes IDEs work well for Rust code in the kernel. This PR is my attempt
to add basic testing for this area.

Mainly I'm unusure: have I done it right? is it possible to get a dry run on a
specific series before merging this? This[0] would be a good candidate.

Thanks!

Link: https://lore.kernel.org/all/20260122-rust-analyzer-types-v1-0-29cc2e91dcd5@kernel.org/ [0]

Introduce a rust-analyzer job that generates and diffs rust-project.json
for HEAD and its base, and records analysis timing. This adds reviewable
output and numeric metrics for regressions.
@rli9
Copy link
Copy Markdown

rli9 commented Feb 9, 2026

Hi Tamir, sorry for the late reply. This is very useful suite. Would you mind add a few things

  • basic spec test, refer to spec/stats to add sample out and expected parsed result
  • add a depends file programs/rust-analyzer/pkg/depends, refer to programs/avocado/pkg/depends to install python and needed packages for runtime.
  • add programs/rust-analyzer/pkg/PKGBUILD, not sure whether there's a repo of test suite to monitor, so it doesn't require to put rust-analyzer source in lkp, but stays in its own repo.

Regarding dry run, you can follow README.md example to run this locally, if it works it is mostly correct.

And the steps could be some complex, if there's any issue, kindly let me know and i can further follow up.

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.

2 participants