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
3 Commits
Author SHA1 Message Date
poli0981andClaude Opus 5.5 4e46328fa2 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
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>
2026-12-02 21:35:18 +07:00
poli0981andClaude Opus 5.5 d18b35cbfd 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
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>
2026-12-02 21:22:01 +07:00
poli0981andClaude Opus 5.5 cfb46da9dc 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
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>
2026-12-02 21:07:38 +07:00