Skip to content

ci: soldr 0.9.42 verdict ledger; native Dylint beside Clippy (#2293) - #2309

Merged
zackees merged 2 commits into
masterfrom
ci/soldr-0.9.42-lint
Oct 25, 2026
Merged

zackees merged 2 commits into
masterfrom
ci/soldr-0.9.42-lint

Conversation

@zackees

@zackees zackees commented Oct 25, 2026

Copy link
Copy Markdown
Member

Fixes #2293. Part of #2294.

Changes

  • Pins: soldr 0.9.38 → 0.9.42 (cmake/common/soldr.cmake, with the SHA256s from soldr-v0.9.42-SHA256SUMS.txt). setup-soldr v0.9.86 → v0.9.87 (6ad4abd, the commit v0 points to; tagged for this PR). All 7 callsites keep their explicit version:.
  • Verdict ledger (soldr#3894): clippy, fmt --check, dylint and doctest runs whose exact inputs already passed are replayed. setup-soldr's default verdicts: auto carries it between CI runs: master publishes, PRs restore.
  • Dylint goes through soldr dylint with soldr's managed driver (SOLDR_FORCE_MANAGED_CARGO_SUBCOMMANDS=1). Before, it deferred to whatever cargo-dylint was on PATH. It runs in its own target-dylint/ beside the stable Clippy chain. With a shared target/, soldr's no-cache preflight refused to start while Clippy held a .cargo-lock. Its output prints when it finishes. The --lib --bins scope is unchanged.
  • Source probe sets SOLDR_VERDICTS=off. Its scratch crate in target/ (an ignored directory) keyed on none of its files and replayed a stale doctest pass. Fixed upstream in fix(verdict): a workspace ignored by git disables the skip forge-ci/soldr#3913. Off is right for the probe either way, since it proves that source gets compiled.
  • docs/ci-tooling.md describes the ledger.

RED → GREEN

  • RED (first commit): ci/test_gate_dylint.py. The gate must call soldr dylint, not soldr cargo dylint, with the managed driver, its own target root and the wrapper off. It had 1 failure and 1 error.
  • GREEN: that test, test_soldr_pin.py and test_local_gate_probe.py pass. ./lint passes in 37.0 s; the same lane took 117.9 s earlier today on master's gate.

Measurements (local, shared 16-thread host, soldr 0.9.41)

Unchanged tree, per step: fmt and all four Clippy runs are replayed (0 s), and Dylint is replayed after about 1.5 s of driver resolution. The rest of the lane's 21 s is not soldr: the source probe (10 s, verdicts off on purpose), clang-format (7 s) and the ifdef ratchet (2 s).

After a one-line edit in obs-util, which every crate depends on, the lane took 46–56 s on both gates, and one master run hit a 190 s load spike. This shared host is too noisy to measure the overlap gain locally. In CI the lint job runs with build-cache: false, so every Clippy and Dylint compile is cold there, and taking the Dylint nightly build off the critical path saves its full duration.

Wrapper policy is unchanged: SOLDR_RUSTC_WRAPPER=none stays while forge-ci/zccache#1943 is open.

…side Clippy (#2293)

- soldr 0.9.42 / setup-soldr v0.9.87: the verdict ledger (soldr#3894)
  replays a clippy, fmt, dylint or doctest pass whose exact inputs already
  passed; setup-soldr carries it between CI runs (verdicts: auto).
- The gate runs the Dylints through soldr dylint with soldr's managed
  driver (it deferred to the cargo-dylint on PATH), in target-dylint/ so
  soldr's no-cache preflight does not refuse it while Clippy holds a
  .cargo-lock, and beside the stable Clippy steps.
- The source probe sets SOLDR_VERDICTS=off: its scratch crate in target/
  keyed on none of its files (forge-ci/soldr#3913).
@zackees
zackees enabled auto-merge October 25, 2026 01:51
@zackees
zackees added this pull request to the merge queue Oct 25, 2026
Merged via the queue into master with commit 82f39ca Oct 25, 2026
32 checks passed
chriscoveries pushed a commit to chriscoveries/obsrust-fork that referenced this pull request Oct 25, 2026
…s-rust#2325)

* test: cross-lane Dylint shares target/ with Clippy

* ci: cross-lane Dylint reuses target/ instead of a cold target-dylint/
@zackees
zackees deleted the ci/soldr-0.9.42-lint branch October 26, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

ci: the lint lane does not use soldr's verdict ledger or native Dylint (pin 0.9.38)

1 participant