Skip to content

meta: fastest lint lane with soldr 0.9.42 (verdict ledger, native Dylint, overlapped domains) #2294

Closed

Description

@zackees

Meta issue for making the lint lane (./lint, and the CI lint/Fast Gate jobs) as fast as soldr's current strategy allows. It collects every task in this effort so a /goal run can work it to the end.

Goal (done when): ./lint and the CI lint jobs use soldr's verdict ledger and native Dylint; the Dylint and Clippy domains overlap; the PR records before/after lane timings (unchanged tree, one-file edit, cold); and no remaining soldr feature would make the lane measurably faster.

Background

Tasks

Progress (2026-10-25)

Out of scope / kept

Activity

  1. zackees commented on Oct 25, 2026

    @zackees
    MemberAuthor

    Claiming: #2294. Working the tasks in order, starting with the pin bump.

  2. added
    claimed
    on Oct 25, 2026
  3. added
    ready
    and removed
    claimed
    on Oct 25, 2026
  4. zackees commented on Oct 25, 2026

    @zackees
    MemberAuthor

    Progress: #2309 (soldr 0.9.42, native Dylint, verdict replay), #2311 and soldr #3913/#3914 have merged. #2325 (Cross Lint reuses target/) is in the queue.

    Locally on master, ./lint on an unchanged tree takes 29 s (it took 117.9 s): fmt, all four Clippy runs and Dylint are replayed from the verdict ledger.

    Gap found in CI: master publishes its verdicts (run 40154786188: 8 verdicts), but PR and merge-queue runs never restore them. setup-soldr's manifest scope hashes the calling workflow (push.yaml on master, ci.yml on PRs) and save-cache-remote. So #2324, which touches no Rust, still ran every lint in full (91 s). Filed forge-ci/setup-soldr#604; fix in forge-ci/setup-soldr#605. After it's released, obs sets verdict-scope on the Fast Gate / Cross Lint setup-soldr steps.

  5. zackees commented on Oct 25, 2026

    @zackees
    MemberAuthor

    CI evidence that PRs replay master's lint verdicts (#2332, setup-soldr v0.9.88 verdict-scope): PR run 40162363768 (fix/appimage-glx-preflight) restored all 8 verdicts from master's manifest b88ba65d043f3f19-40159829966-1. In that run, fmt, 4 Clippy passes and Dylint were all "skipped: inputs match". The lint lane took 16.8 s, against 70.6 s in run 40161794379, which restored 0. The Fast Gate took 72 s instead of 134 s. A PR that changes rust/ still runs the checks for the whole workspace. Narrowing them per member would change Cargo feature unification, so that was measured and left out (forge-ci/soldr#3916). Still open: #2339 (soldr 0.9.43), and forge-ci/soldr#3915 (the PyPI trusted publisher, which needs an owner).

  6. moved this from In progress to Tracker in obs-rust Multiviewon Oct 26, 2026
  7. zackees commented on Oct 27, 2026

    @zackees
    MemberAuthor

    Worker check (2026-10-27): current cmake/common/soldr.cmake pins soldr 0.9.43. The v0.9.43 release’s rust-toolchain.toml still pins Rust 1.98.1, exactly matching this repo’s rust-toolchain.toml and ci/test_toolchain.py (SOLDR_SUPPORTED_RUST). The toolchain-bump checklist item needs no PR for this soldr release.

  8. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Claiming: #2294 (remaining tasks: lint-lane before/after measurement, toolchain pin check, soldr ci-test/lint rust re-evaluation). Plan: run ./lint locally on an unchanged tree, a one-file edit and a cold target dir against the current pins (soldr 0.9.43), record the numbers here and in a PR if anything needs changing.

  9. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Worker tick (2026-10-28, checkout obs-studio5, master 4ef0605da): the three open tasks are answered.
    Measurements use the pinned soldr, not the host's: the host soldr on PATH is 0.9.35 (no
    verdict ledger), so I unpacked the v0.9.43 release (soldr-v0.9.43-x86_64-unknown-linux-gnu.tar.zst,
    as cmake/common/soldr.cmake does) into a scratch dir and prepended it to PATH. No host tool was
    changed.

    1. Lint lane before/after (local, targets x86_64-unknown-linux-gnu)

    Scenario Wall Rust steps ci/ self-tests
    Unchanged tree, first run (verdicts cold for this pin) 35.4 s clippy ran 17.9 s (21 Checking), 2 cargo invocations 267 tests
    Unchanged tree, warm verdicts 42.3 s clippy + dylint + fmt all replayed (0 s) 267 tests, CPU sum 206.6 s, 8-way
    One-line edit to one crate (rust/obs-util/src/array_serializer.rs, reverted) 81.2 s 6 cargo invocations, 75 Checking, 36.4 s CPU sum 157.1 s

    Where the time goes now, on an unchanged tree:

    • ~26-35 s is the ci/ self-test suite (267 ci/test_*.py, 8 at a time; CPU sum 157.1-206.6 s
      across the three runs on the same tree; slowest test_tier2_proof_inputs.py 19.4 s,
      test_app_config_identity.py 8.3 s). This is now the largest single term — it is Python, so no
      soldr feature can shorten it.
    • ~10 s ruff (390 files) plus the two Python ratchets, cargo metadata, uv startup.
    • 0 s fmt / clippy / Dylint when nothing changed — the verdict ledger does replay all four
      clippy configurations and the Dylint pass. On a one-file edit the whole-workspace clippy verdict is
      invalidated and all four configurations relint (36.4 s), which is the 81.2 s run above.

    Variance caveat for CI comparisons: two unchanged runs on the same tree measured 35.4 s and 42.3 s,
    and the self-test CPU sum moved 157 -> 207 s, so compare medians, not single runs.

    2. rust-toolchain.toml bump

    No move is possible yet, so no PR:

    • soldr v0.9.43's own rust-toolchain.toml pins 1.98.1 (checked at the release tag), the repo
      pins 1.98.1, and ci/test_toolchain.py (SOLDR_SUPPORTED_RUST = "1.98.1") passes.
    • Rust stable is now 1.99.1 (58cf8f9c3 2026-10-13), i.e. one release ahead of what the pinned
      soldr supports.
    • forge-ci/soldr's latest release is still v0.9.43 (2026-10-25), so the pin stays. The next soldr
      release that moves its own toolchain is the trigger for a bump PR.

    3. Re-evaluating soldr lint rust / soldr ci-test — still not usable, filed upstream

    The premise in the task list is still true in v0.9.43, and it is now pinned with evidence:
    soldr lint rust --lib --bins accepts the cargo scope flags but the Dylint stage appends them to a
    hard-coded --all-targets:

    "cargo" "check" "--target-dir" …/target/dylint/target/nightly-2026-05-28-… "--workspace" "--all-targets" "--lib" "--bins"
    error: host-platform selection outside the platform boundary: host cfg `cfg(unix)`; move it into
    this crate's src/platform/ …
    

    so the pre-expansion boundary lint fires on test/bench targets and the suite exits 1 (80.1 s, 316
    misses). Passing --workspace explicitly is also an error (the argument '--workspace' cannot be used multiple times), so the suite is not a drop-in for the lane's four clippy configurations plus
    the standalone soldr dylint call.

    Filed as forge-ci/soldr#3930 (propagate the caller's target scope to the Dylint stage; keep
    --all-targets only when no selector was given). While that is open, ci/local_gate.py keeps the
    current shape. Same run also logs a harmless-but-noisy
    cargo-dylint --version: error: unexpected argument '--version' found probe.

    4. Cosmetic, not a speed issue

    Every soldr invocation here prints the four-line broker notice
    running broker: soldr-0.9.35-… / this soldr: soldr-0.9.43-… (the host's 0.9.35 broker daemon is
    still the singleton). It does not affect timings or verdicts; retiring it is soldr broker remove,
    a host decision, not this issue's.

    Nothing in the repo needs changing for the above, so no PR accompanies this comment.

  10. 4 remaining items

  11. removed their assignment
    on Oct 29, 2026
  12. zackees commented on Oct 29, 2026

    @zackees
    MemberAuthor

    Claim status (coordinator tick, 2026-10-29T02:20Z): the 24 h claim sweep unassigned this issue today, and claim-blocked was removed by hand on 2026-10-28T02:20Z — 12 minutes after the claim bot added it — so nothing on the issue currently records why it is waiting.

    The blocker itself is unchanged, and I re-checked it rather than restating it:

    • forge-ci/soldr#3930 is still open, with no fix and no comments. soldr lint rust --lib --bins still forwards --all-targets to the Dylint stage, so ban_platform_cfg_outside_boundary keeps linting test/bench targets.
    • forge-ci/soldr#3942 (merged 2026-10-29T00:30Z, "Route all-targets bootstrap through Soldr") does not cover it: it fixes test: register #1390 native graph batches 12-21 #3937 and touches the manually dispatched workflow, not the Dylint stage's cargo scope.

    So the remaining lint-lane work here is still upstream-bound. Please don't re-claim it until soldr#3930 lands — the repo side has nothing left to change. When it is released, re-claim and run the before/after measurement with the pinned soldr from cmake/common/soldr.cmake, not the host's 0.9.35.

  13. zackees commented on Oct 29, 2026

    @zackees
    MemberAuthor

    Worker tick (2026-10-29): the last open checkbox on this issue, forge-ci/soldr#3930 (the Dylint stage ignores the caller's target scope), now has an upstream PR: forge-ci/soldr#3948.

    What it does: the Dylint stage widens to --all-targets only when the invocation names no target; a caller scope with --lib, --bins, --bin <name>, --tests, --test <name>, --benches, --bench <name>, --examples, --example <name> or --all-targets is passed through unchanged. RED (2 failing argv tests) → GREEN (21 passed, -p soldr-cli --lib lint_cmd), plus fmt/clippy clean and a docs/API.md line.

    PR state: CLEAN, every required check green on the attested head (0eb3119c, local gate passed in 1122 s: rust 3/3, cross 5/5, tests 1/1, wine 1/1, winvm n/a). Not merged and not released — both are the maintainer's.

    Remaining after the merge: cut the soldr release that carries it, then bump OBS_SOLDR_VERSION here and re-point ci/local_gate.py's Dylint call at soldr lint rust --lib --bins (the fragment it replaces is the standalone soldr dylint --all -- --workspace --lib --bins step).

  14. moved this from In progress to Tracker in obs-rust Multiviewon Oct 29, 2026
  15. zackees commented on Oct 29, 2026

    @zackees
    MemberAuthor

    Worker tick (2026-10-29, checkout obs-studio4, master 9ffa4e65c): the last open task's upstream fix is ready to merge.

    Next after merge (not done here): cut the soldr release that carries it, then bump OBS_SOLDR_VERSION / the setup-soldr pins in this repo in its own PR, per the maintainer instruction on this issue. Soldr's own agent rule is to report the PR URL for the maintainer to merge, so #3948 is left for you to merge.

    Still open elsewhere: none of the other tasks; rust-toolchain.toml stays at 1.98.1 (soldr releases still pin it).

  16. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    Worker tick (2026-10-30T01:45Z, checkout obs-studio4, master c15675b6): forge-ci/soldr#3948 is now in the merge queue at position 1.

    • gh pr merge 3948 --auto does not work in forge-ci/soldr: auto-merge is disabled for the repository (allow_auto_merge: false), so it fails with "Auto merge is not allowed for this repository". --merge also fails with "The merge strategy for main is set by the merge queue".
    • The working path is the queue mutation itself: gh api graphql -f query='mutation { enqueuePullRequest(input:{pullRequestId:"<PR node id>"}) { mergeQueueEntry { position state } } }', using gh pr view 3948 --repo forge-ci/soldr --json id.
    • Current queue state: #3948 → QUEUED, position 1 (verified again after enqueueing; the queue was empty before).

    Note on its CI: the pull_request run 40821082435 reported CI path selection: docs_only=false, but Lint, Full coverage and every build lane came back skipped while Lint (docs no-op) passed — so the PR's own Rust change was never compiled by that run. The merge-group run the queue triggers is therefore the first real CI on the fix; the local soldr cargo test -p soldr-cli --lib lint_cmd (21 passed) from the previous tick is the only test evidence so far. Worth watching when it lands.

    Next (unchanged): cut the soldr release that carries #3948, then bump OBS_SOLDR_VERSION / the setup-soldr pins here in its own PR.

  17. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    Worker tick (2026-10-30T02:25Z, checkout obs-studio4): forge-ci/soldr#3948 merged (queue run 40986934115, merge commit at the head of main).

    • The queue run's CI Pre / Repository Actions cache budget job was red, but not because of this PR: setup-soldr's verdict-ledger remote tier writes soldr-verdict-manifest-v1-<scope>-<run>-<attempt> on main and no [cache.family] declared it, so the budget gate failed with "unregistered producer" on every same-repo PR and every queue run. That is fixed in fix(ci): register setup-soldr's verdict manifest in the cache budget forge-ci/soldr#3957 (family + ownership group + the eviction-map pin; RED/GREEN is the gate's own output, local gate passed in 711 s, pytest tests/test_cache_{ownership,budget}.py 117 passed). It is queued at position 1.
    • Auto Release takes an explicit candidate_sha + a successful full-CI run id and runs the whole production matrix, so cutting v0.9.45 for the fix(ci): join resource sampler before run returns (#3929) #3930 fix is a separate, deliberate step — the OBS_SOLDR_VERSION / setup-soldr pin bump here waits on that tag, as the issue's Decided: says.
  18. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    Worker tick (2026-10-30T02:30Z, checkout obs-studio4, master 93b911a67): the upstream release still has not been cut, and the reason is now one queued PR.

    • forge-ci/soldr#3948 (the fix(ci): join resource sampler before run returns (#3929) #3930 Dylint target-scope fix this issue's last open task needs) merged at 02:10Z.
    • forge-ci/soldr#3957 (register setup-soldr's verdict manifest in the cache budget gate) is still merge-queue position 1, AWAITING_CHECKS. Its queue run 40990529868 on gh-readonly-queue/main/pr-3957-… has been in_progress since 02:14Z (~20 min at the time of writing, against 33-53 min for the earlier Auto Release matrix runs), so this is a normal wait, not a stuck entry.
    • No v0.9.45 tag exists yet; v0.9.44 (2026-10-29T06:28Z) is still Latest.

    So the remaining chain is unchanged and has no code work left in this repo until the release exists:

    1. test: register #1390 native graph display and Qt batches 22-29 #3957 merges (queue stays open, nothing to push).
    2. Cut v0.9.45 from main; Auto Release is workflow_dispatch only and needs an explicit candidate_sha plus a successful full-CI run id, so it takes a deliberate dispatch, not the merge itself.
    3. Then the last checkbox on this issue is a pin bump here: cmake/common/soldr.cmake OBS_SOLDR_VERSION is still 0.9.43, and the setup-soldr pins are still zackees/setup-soldr@71e6b56… (v0.9.88) — both move to the v0.9.45-carrying release in one PR with ci/test_soldr_pin.py as the pin test.

    Holding the claim, no PR opened yet: there is nothing in this repo to change until step 2 lands.

  19. moved this from Tracker to In review in obs-rust Multiviewon Oct 30, 2026
  20. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    Worker tick (2026-10-30T06:35Z, obs-studio4 / ~/dev/soldr): the last open task's upstream fix is merged, and the release that carries it is prepared but not attested.

    Next: re-run the gate on a quiet box (passed lanes are cached by tree, so it is short), queue #3969, let auto-release publish v0.9.45, then bump OBS_SOLDR_VERSION and the setup-soldr pins here in their own PR.

    Also this tick: #2994 and #2998 merged out of the queue; #2999 (infra/2985-platform-lanes-overlap-gate) is queue position 1. The 2026-10-29 scheduled reds are stale-superseded — Sanitizers' conversion failures were fixed by #2923/#2925/#2935 and the release lane's by #2940/#2971, all after those runs started.

  21. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    Worker tick (2026-10-30T10:05Z, checkout obs-studio4, master 5fe22f01c): the last open task's upstream release exists, so the pin bump is now a PR instead of a wait.

    What I verified rather than transcribed: the x86_64-unknown-linux-gnu tarball was downloaded from the release and re-hashed locally, and its sha256 equals both the SHA256SUMS line and the value pinned in cmake/common/soldr.cmake (60ce244f…b85e27). zccache is still 1.15.5 at this tag, so the wrapper notes in the workflows only move with the version number.

    What does not have evidence yet: ./lint on this host dies before the lanes, in ci/test_check_changes.py — the lane's soldr-managed environment runs git diff and gets git: command not found. That is an environment failure, not a finding on the diff; PR CI is running the Dylint/Clippy lanes for #3042 now, and the PR stays a draft until they are green.

    So the remaining chain is: #3042 CI → ready → queue → merge. Nothing else in this issue needs code in this repo; when #3042 lands, the last checkbox can be ticked.

  22. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    Closing: every task on this meta issue is done and the last one landed.

    Remaining sellable ground, for a future issue rather than this tracker: the zccache rustc wrapper stays off in the gate until forge-ci/zccache#1943 (stale replay) is fixed. That is documented above under "Out of scope / kept".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions