Skip to content

[Copilot Dreaming] Avoid Bazel dead ends and recover interrupted updates and tests - #23356

Open
Copilot wants to merge 4 commits into
mainfrom
copilot/dream-curate-memories-20261204050528
Open

Copilot wants to merge 4 commits into
mainfrom
copilot/dream-curate-memories-20261204050528

Conversation

@Copilot

Copilot AI commented Dec 4, 2026

Copy link
Copy Markdown

🧠 How this helps Copilot

Copilot can chase an unsupported registry-package error or miss a generated helper outside the shared Bazel directory. Grounded Bazel troubleshooting guidance helps agents find the actual helper instead of investigating unrelated registry files.

Copilot has also detoured after a dependency upgrade stopped partway through and after a local Unified extractor was missing. Focused recovery guidance helps finish workspace lockfile resolution and select a matching extractor/schema pack, so required version checks and regression work can continue.

Review commit by commit for each change's rationale and evidence.

Note

Copilot Dreaming curates this repository's Copilot instructions and skills in the background, proposing updates to help agents work here. Learn more about Copilot Dreaming.

Automated details

Source: curate-memories Dream, analyzing main at da92276d2923.

copilot-dreamer[bot] added 4 commits December 4, 2026 05:05
Copilot could chase a registry-directory error that the checkout does not
establish. Removing that diagnosis keeps troubleshooting grounded in the
documented transition limitation.
https://github.com/github/codeql/blob/da92276d2923354ffac1e02e4c0a2fe5a7bb92d6/.bazelrc#L25-L26

The recursive-build warning and specific-target validation remain in the
skill's Traps entry point. The blanket recursive-query failure claim has no
replacement because the checkout does not establish it.
Copilot can miss a generated Swift helper when it searches only the shared
Bazel directory. The extractor package loads its wrapper from the Swift tree.
https://github.com/github/codeql/blob/da92276d2923354ffac1e02e4c0a2fe5a7bb92d6/swift/extractor/BUILD.bazel#L1-L6

That wrapper constructs the internal target itself.
https://github.com/github/codeql/blob/da92276d2923354ffac1e02e4c0a2fe5a7bb92d6/swift/rules.bzl#L105-L131

Following the defining load path avoids this dead end and lets agents inspect
the helper's actual visibility.
Copilot encountered an upgrade that changed manifests before failing on an
ambiguous package identity. The workspace lockfile contains registry and Git
packages with the same name.
https://github.com/github/codeql/blob/da92276d2923354ffac1e02e4c0a2fe5a7bb92d6/Cargo.lock#L3115-L3132

A repository-root lockfile update recovered this stage; documenting that narrow
recovery avoids another package-disambiguation detour. The manual version
alignment still needs attention because the updater reaches it only after the
checked upgrade command.
https://github.com/github/codeql/blob/da92276d2923354ffac1e02e4c0a2fe5a7bb92d6/rust/scripts/update_rust_analyzer.py#L235-L255
Copilot tried an installed extractor after a local extractor was missing and
reached a schema mismatch instead of the intended regression. The checkout
builder creates the extractor and generates its matching schema and library.
https://github.com/github/codeql/blob/da92276d2923354ffac1e02e4c0a2fe5a7bb92d6/unified/scripts/create-extractor-pack.sh#L11-L25

Selecting that matched pack avoids a second setup failure before the regression
can be evaluated.
@Copilot
Copilot AI requested review from a team as code owners December 4, 2026 05:05
Copilot AI adaptive review requested due to automatic review settings December 4, 2026 05:05

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.

🟢 Approval recommended

No active review issues are identified, and the changes are limited to documenting recovery and troubleshooting guidance.

No open issues 🎉

What changed in this PR

Updates repository guidance for Bazel troubleshooting, interrupted Cargo upgrades, and missing Unified extractor packs.

Changes:

  • Adds recovery guidance for ambiguous tree-sitter-ql dependencies.
  • Documents when to rebuild the Unified extractor pack.
  • Refines Bazel target and generated-helper troubleshooting.
File Description
unified/​AGENTS.md Adds instructions for recovering from a missing Unified extractor pack.
rust/​updating-rust-analyzer.md Documents recovery steps for interrupted Cargo dependency updates.
.github/​skills/​bazel/​SKILL.md Refines Bazel troubleshooting guidance for target validation and generated helpers.

Review effort: Lite (adaptive)

@github-actions github-actions Bot added documentation Rust Pull requests that update Rust code Unified labels Dec 4, 2026

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 Unified

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants