fix: let Qodana build the workspace (C linker bootstrap, rust-src) #2

Merged
poli0981 merged 3 commits from fix/qodana-rust-src into main 2026-12-02 14:38:40 +00:00
Owner

Qodana's first run on main (after #1) failed with 47 "Critical" problems, and every one is a false positive. The linter could not see the standard library:

  • unresolved methods in coverage.rs;
  • types that "do not implement" Debug or Clone;
  • format macro errors;
  • "Cargo project loading" on Cargo.toml.

Cause. The jetbrains/qodana-rust:2026.3-eap image ships rust-src only for its own default toolchain (1.94.0). It installs 1.100.0 from rust-toolchain.toml, whose minimal profile has no rust-src. Checked inside the cached image with rustup component list --installed.

Change.

  • rust-toolchain.toml lists rust-src; rust-analyzer needs it too.
  • The Linux CI job installs the same components.
  • The Windows job picks it up through rustup toolchain install, which adds missing components (seen locally).
  • Doc 02 records the image the run actually pulled, and doc 17 the first S10 data.

Check. Qodana does not run on pull requests, so I'll dispatch it on this branch to confirm the false positives are gone before merging.

🤖 Generated with Claude Code

Qodana's first run on `main` (after #1) failed with 47 "Critical" problems, and every one is a false positive. The linter could not see the standard library: - unresolved methods in `coverage.rs`; - types that "do not implement" `Debug` or `Clone`; - format macro errors; - "Cargo project loading" on `Cargo.toml`. **Cause.** The `jetbrains/qodana-rust:2026.3-eap` image ships `rust-src` only for its own default toolchain (1.94.0). It installs 1.100.0 from `rust-toolchain.toml`, whose `minimal` profile has no `rust-src`. Checked inside the cached image with `rustup component list --installed`. **Change.** - `rust-toolchain.toml` lists `rust-src`; rust-analyzer needs it too. - The Linux CI job installs the same components. - The Windows job picks it up through `rustup toolchain install`, which adds missing components (seen locally). - Doc 02 records the image the run actually pulled, and doc 17 the first S10 data. **Check.** Qodana does not run on pull requests, so I'll dispatch it on this branch to confirm the false positives are gone before merging. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
poli0981 added 1 commit 2026-12-02 14:08:17 +00:00
fix: give the pinned toolchain rust-src so Qodana can resolve std
CI / ci-ok (push) Skipped
Security / workflow-lint (push) Skipped
CI / Linux · fmt, clippy, rules, tests, coverage (pull_request) Successful in 45s
CI / Windows · clippy, tests (pull_request) Successful in 25s
Security / workflow-lint (pull_request) Successful in 25s
Reusable / Security / .NET (NuGetAudit) (pull_request) Skipped
Reusable / Security / Secrets (gitleaks) (pull_request) Successful in 10s
Reusable / Security / SAST (Opengrep) (pull_request) Successful in 20s
Reusable / Security / Dependencies (osv-scanner) (pull_request) Successful in 13s
Reusable / Security / Rust (cargo-deny) (pull_request) Successful in 46s
Security / scan (pull_request) Successful in 1m30s
CI / ci-ok (pull_request) Successful in 4s
cfb46da9dc
Qodana's first run on main reported 47 "Critical" problems, all false:
- unresolved methods;
- types that "do not implement" Debug or Clone;
- format macro errors;
- a Cargo project loading error in Cargo.toml.

The cause: the qodana-rust 2026.3-eap image ships rust-src only for its
own default toolchain (1.94.0). It installs 1.100.0 from
rust-toolchain.toml, whose minimal profile has no rust-src, so the
linter had no standard-library source. Checked inside the cached image
with `rustup component list --installed`.

rust-toolchain.toml now lists rust-src, which rust-analyzer needs too,
and the Linux CI job installs the same components. The Windows job
picks it up through `rustup toolchain install`, which adds missing
components.

doc 02 records the image the run pulled (2026.3-eap, QDRST-263.7944).
doc 17 records the first S10 data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
poli0981 added 1 commit 2026-12-02 14:22:06 +00:00
fix: install a C linker in Qodana's image so build scripts run
CI / ci-ok (push) Skipped
Security / workflow-lint (push) Skipped
CI / Linux · fmt, clippy, rules, tests, coverage (pull_request) Successful in 51s
CI / Windows · clippy, tests (pull_request) Successful in 33s
Security / workflow-lint (pull_request) Successful in 35s
Reusable / Security / .NET (NuGetAudit) (pull_request) Skipped
Reusable / Security / Secrets (gitleaks) (pull_request) Successful in 27s
Reusable / Security / SAST (Opengrep) (pull_request) Successful in 25s
Reusable / Security / Dependencies (osv-scanner) (pull_request) Successful in 27s
Reusable / Security / Rust (cargo-deny) (pull_request) Successful in 45s
Security / scan (pull_request) Successful in 2m6s
CI / ci-ok (pull_request) Successful in 3s
d18b35cbfd
The previous commit blamed the missing rust-src, and it was wrong about
the main cause. A Qodana run dispatched on that commit still found the
same 47 problems. It passed only because Qodana Cloud had taken the
first run as the baseline ("UNCHANGED: 47, NEW: 0").

The real cause, reproduced in the cached qodana-rust:2026.3-eap image:
`cargo check` fails on every build script (anyhow, serde_core, zmij)
with "linker `cc` not found". The image is a Docker Hardened Image with
no C toolchain. The linter runs build scripts while it opens the
project, so the project half-loaded and std/serde code read as errors.

qodana.yaml gets a bootstrap that installs build-essential, with the
dhi.io pin that free-steam-games-list needed for the same image. With
it, `cargo check --locked` succeeds in the image.

rust-src stays in rust-toolchain.toml, since the linter and
rust-analyzer resolve std from it; its comment now says only that.
doc 14 §6 and doc 17's S10 notes describe the real cause, and the
baseline that hid it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
poli0981 changed title from fix: give the pinned toolchain rust-src so Qodana can resolve std to fix: let Qodana build the workspace (C linker bootstrap, rust-src) 2026-12-02 14:22:30 +00:00
Author
Owner

Correction: the description above has the wrong main cause.

A Qodana run dispatched on cfb46da (the rust-src change alone) still found the same 47 problems. It passed only because Qodana Cloud had taken the first run as the baseline ("UNCHANGED: 47, NEW: 0").

Real cause. I reproduced it in the cached jetbrains/qodana-rust:2026.3-eap image. cargo check fails on every build script (anyhow, serde_core, zmij) with linker `cc` not found. The image is a Docker Hardened Image (Debian) with no C toolchain. The linter runs build scripts while it opens the project, so the project half-loaded and std/serde code read as errors.

Fix (d18b35c). qodana.yaml gets a bootstrap that installs build-essential, with the dhi.io pin that free-steam-games-list needed for the same image. With that bootstrap, cargo check --locked succeeds in the image. rust-src stays, because the linter and rust-analyzer resolve std from it; its comment now says only that. Doc 14 §6 and doc 17's S10 notes are corrected. I'll dispatch Qodana on this branch again and check that the problem count drops, not just the "new" count.

🤖 Generated with Claude Code

**Correction: the description above has the wrong main cause.** A Qodana run dispatched on `cfb46da` (the `rust-src` change alone) still found the same 47 problems. It passed only because Qodana Cloud had taken the first run as the baseline ("UNCHANGED: 47, NEW: 0"). **Real cause.** I reproduced it in the cached `jetbrains/qodana-rust:2026.3-eap` image. `cargo check` fails on every build script (`anyhow`, `serde_core`, `zmij`) with ``linker `cc` not found``. The image is a Docker Hardened Image (Debian) with no C toolchain. The linter runs build scripts while it opens the project, so the project half-loaded and std/serde code read as errors. **Fix (`d18b35c`).** `qodana.yaml` gets a `bootstrap` that installs `build-essential`, with the `dhi.io` pin that free-steam-games-list needed for the same image. With that bootstrap, `cargo check --locked` succeeds in the image. `rust-src` stays, because the linter and rust-analyzer resolve std from it; its comment now says only that. Doc 14 §6 and doc 17's S10 notes are corrected. I'll dispatch Qodana on this branch again and check that the problem count drops, not just the "new" count. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
poli0981 added 1 commit 2026-12-02 14:35:23 +00:00
docs: say what the Qodana runs proved and what is still open
CI / ci-ok (push) Skipped
Security / workflow-lint (push) Skipped
CI / Linux · fmt, clippy, rules, tests, coverage (pull_request) Successful in 44s
CI / Windows · clippy, tests (pull_request) Successful in 27s
Security / workflow-lint (pull_request) Successful in 26s
Reusable / Security / .NET (NuGetAudit) (pull_request) Skipped
Reusable / Security / Secrets (gitleaks) (pull_request) Successful in 10s
Reusable / Security / SAST (Opengrep) (pull_request) Successful in 18s
Reusable / Security / Dependencies (osv-scanner) (pull_request) Successful in 14s
Reusable / Security / Rust (cargo-deny) (pull_request) Successful in 42s
Security / scan (pull_request) Successful in 1m26s
CI / ci-ok (pull_request) Successful in 3s
4e46328fa2
A Qodana run with the C-linker bootstrap (d18b35c) showed two things.
The bootstrap fixes one cause: the sanity check's "Cargo project
loading" error is gone. It leaves the 47 false type errors in xtask
unchanged.

The report preview explains those 47. projectStructure/SDKs.json is
{"roots": []}: the IDE attached no Rust standard library, so u64 and
usize have no traits. Adding rust-src did not change that.

The comments in qodana.yaml and rust-toolchain.toml, and doc 14 §6 and
doc 17's S10 notes, no longer claim more than the runs showed:
- fixed: the linker;
- open: attaching std (next idea: `rustup toolchain install` in the
  bootstrap);
- the Qodana Cloud baseline: it is why the later runs pass, and it gets
  reset once std is attached.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
Owner

Result of the Qodana run on d18b35c (C-linker bootstrap): part of it is fixed, part is still open.

  • Fixed: the linker. The sanity check's "Cargo project loading" error is gone (5 sanity problems → 4), so build scripts now run.
  • Still open: the 47 false type errors in xtask. They are unchanged. The report preview (artifact qodana-report, file projectStructure/SDKs.json) shows {"sdks": [{"roots": []}]}: the IDE attached no Rust standard library at all. That is why u64 "lacks" PartialEq and Default, and usize "lacks" Display. Adding rust-src did not change it.

4e46328 corrects the comments and docs so they claim only this. The S10 notes in doc 17 now give the next idea: run rustup toolchain install in the bootstrap so the toolchain exists before the IDE opens the project. They also note that Qodana Cloud's baseline is what makes the later runs pass, and that it should be reset once std is attached.

Merging this for the real part of the fix, the linker. Qodana is report-only and not a required check; the std attachment is follow-up work under S10.

🤖 Generated with Claude Code

**Result of the Qodana run on `d18b35c` (C-linker bootstrap):** part of it is fixed, part is still open. - **Fixed: the linker.** The sanity check's "Cargo project loading" error is gone (5 sanity problems → 4), so build scripts now run. - **Still open: the 47 false type errors in xtask.** They are unchanged. The report preview (artifact `qodana-report`, file `projectStructure/SDKs.json`) shows `{"sdks": [{"roots": []}]}`: the IDE attached no Rust standard library at all. That is why `u64` "lacks" `PartialEq` and `Default`, and `usize` "lacks" `Display`. Adding `rust-src` did not change it. `4e46328` corrects the comments and docs so they claim only this. The S10 notes in doc 17 now give the next idea: run `rustup toolchain install` in the bootstrap so the toolchain exists before the IDE opens the project. They also note that Qodana Cloud's baseline is what makes the later runs pass, and that it should be reset once std is attached. Merging this for the real part of the fix, the linker. Qodana is report-only and not a required check; the std attachment is follow-up work under S10. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
poli0981 scheduled this pull request to auto merge when all checks succeed 2026-12-02 14:36:37 +00:00
poli0981 merged commit cb4f9d501f into main 2026-12-02 14:38:40 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: poli0981/mutevault#2