Skip to content

Rust: Update rust-analyzer update instructions and update script - #22647

Open
paldepind wants to merge 4 commits into
mainfrom
rust/rust-analyzer-update-docs
Open

paldepind wants to merge 4 commits into
mainfrom
rust/rust-analyzer-update-docs

Conversation

@paldepind

@paldepind paldepind commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

This PR adds two (unrelated) changes to the rust-analyzer update automation:

  1. When rust-analyzer is updated the RUST_ANALYZER_SRC_TAG in MODULE.bazel needs to be updated. See e.g., cb459eb from the latest update. This PR adds a new step 2 explaining this in the update instructions and the script is extended to do this automatically.

  2. Add some more globs to allowed-files files for the agentic workflow. The comment explains why they're needed.

@github-actions github-actions Bot added documentation Rust Pull requests that update Rust code labels Sep 22, 2026
@paldepind
paldepind force-pushed the rust/rust-analyzer-update-docs branch from 7e5ea2f to 1da39a2 Compare September 22, 2026 11:51
@paldepind
paldepind force-pushed the rust/rust-analyzer-update-docs branch from 8ccccba to cfef83b Compare September 23, 2026 05:08
@paldepind
paldepind force-pushed the rust/rust-analyzer-update-docs branch from cfef83b to aab542b Compare September 23, 2026 07:11
@paldepind
paldepind force-pushed the rust/rust-analyzer-update-docs branch from aab542b to 09f793f Compare September 29, 2026 13:16
@paldepind
paldepind marked this pull request as ready for review September 30, 2026 06:47
@paldepind
paldepind requested review from a team as code owners September 30, 2026 06:47
Copilot AI balanced review requested due to automatic review settings September 30, 2026 06:47

Copilot AI 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.

Copilot review overview

🟡 Changes recommended

The workflow excludes relevant test sources, and the updater can silently retain stale source metadata.

Review effort: Balanced
Findings: 2 Medium severity · 1 Low severity

Open (3)
What changed in this PR

Automates rust-analyzer source-tag and integrity updates while broadening workflow edit permissions.

Changes:

  • Updates instructions and updater automation.
  • Extracts Bazel integrity into an updater-managed constant.
  • Expands agentic workflow file permissions.
File Description
rust/​updating-rust-analyzer.md Documents source archive updates and renumbers steps.
rust/​scripts/​update_rust_analyzer.py Updates source tag and integrity automatically.
MODULE.bazel Adds the managed integrity constant.
.github/​workflows/​update-rust-analyzer.md Expands allowed shared-source paths.
.github/​workflows/​update-rust-analyzer.lock.yml Regenerates the compiled workflow.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/update-rust-analyzer.md
Comment thread rust/scripts/update_rust_analyzer.py Outdated
Comment thread rust/scripts/update_rust_analyzer.py Outdated
paldepind and others added 2 commits September 30, 2026 09:24
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Refactor regex replacements for RUST_ANALYZER_SRC_TAG and RUST_ANALYZER_SRC_INTEGRITY to ensure exactly one assignment is made for each.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

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

documentation Rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants