Skip to content

ci: extract host Dylint into a script-backed local gate lane - #3899

Merged
zackees merged 3 commits into
masterfrom
fix/3892-script-lane
Nov 7, 2026
Merged

zackees merged 3 commits into
masterfrom
fix/3892-script-lane

Conversation

@zackees

@zackees zackees commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Refs #3892. Replaces the rejected shape of closed #3894. Leave unmerged per maintainer request.

Host Dylint now has a real lane_dylint in ci/local_gate.py, with its existing soldr flags and dedicated target directory preserved. lane_lint retains formatting, selftests and Clippy. The new TOML lane is a short script argv; every existing lane command and [gate] run are unchanged. Existing long declarations are wrapped below 120 columns. Attestation coverage requires the new host lane wherever it previously required lint, so cached lint alone cannot replace host Dylint coverage.

CI's one-line change:

-        run: uv run --no-project ci/local_gate.py --lane lint
+        run: uv run --no-project ci/local_gate.py --lane lint --lane dylint

Existing rust-cross-lint remains:

run: uv run --no-project ci/local_gate.py --lane cross --cross-target ${{ matrix.target }}

Cross Dylint remains inside cross_lint's shared per-target loop, also used by cross-release. It is not a standalone call in lane_cross, so this PR follows the task's explicit exception and leaves that logic unchanged. Consequently the separate requirement that host Dylint be the only selected Dylint-bearing lane cannot hold: cross remains locally selected for source and dylints changes. No Rust sources or versions change.

Validation so far:

  • RED 03bc2a0c1: extracting the pass without its target-directory flag fails existing test_only_the_lint_lane_runs_it_beside_clippy (0 expected 1).
  • GREEN a2de01209: preserves beside_clippy=True; all six existing Dylint tests pass. Another 34 gate/cross/native tests pass.
  • Pinned ci-lint has no local-gate plan command. Equivalent evaluation using its real lane_inputs API (without editing any Rust sources):
    • rust/obs-util/src/lib.rs: host dylint=NOT selected; Dylint-bearing=cross.
    • dylints/ban_platform_cfg_outside_boundary/src/lib.rs: host dylint=selected; Dylint-bearing=dylint,cross.
  • Pinned-source selftest: Ran 1332 tests in 379.484s / OK, using uv run --no-project ... python -m ci_lint selftest with the exact a1917ce76598904ce515cd7eec83450c317ea6f2 source archive on PYTHONPATH. The installed package omits fixtures and cannot run its selftest correctly.
  • Final consecutive gate run 1: local-gate run: FAILED after 155s (no lane passed). Lint fails before Dylint at check_test_binary_inventory: soldr metadata has no workspace_members (KeyError). Its parallel Tier 2 container was stopped after this terminal lint failure; exit 137 is cancellation, not a Tier 2 test result.
  • Final consecutive gate run 2 on the identical committed tree: local-gate run: FAILED after 151s (no lane passed). Same KeyError: 'workspace_members' in lint, before Dylint. Its parallel Tier 2 container was also stopped after lint failed (137 is cancellation).
  • Both final commands were the pinned ci-lint local-gate run --no-stamp, with no source or HEAD changes between them. Both report not run after a heavy-lane failure: dylint, rust-test, cross, macos-native, windows-native. Dylint cache reuse did NOT engage. Validation stopped as requested; this PR is not claimed complete or ready.
  • Optional local-gate lint reports 93 workflow/declaration violations; these findings were not investigated within this task.
  • git diff --check passes; TOML parses; all old run argv match master; all TOML lines <=120 characters; no inline interpreter command added.

This is a CI-only change; Rust testing tiers and the user-facing features ledger do not apply. No native-coverage labels exist in this repository.

zackees and others added 3 commits November 7, 2026 05:03
Extract the host pass as a real lane. RED: ci/test_gate_dylint.py fails because extraction drops beside_clippy=True, the existing dedicated-target preamble.
GREEN: all six ci/test_gate_dylint.py tests pass; preserve the existing host target root without embedding lane logic in TOML.
@obs-rust-project-manager obs-rust-project-manager Bot moved this to In progress in obs-rust Multiview Nov 7, 2026
@zackees
zackees marked this pull request as ready for review November 7, 2026 17:34
@zackees
zackees added this pull request to the merge queue Nov 7, 2026
Merged via the queue into master with commit 74a5781 Nov 7, 2026
39 checks passed
@zackees
zackees deleted the fix/3892-script-lane branch November 7, 2026 18:20
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In progress to Done in obs-rust Multiview Nov 7, 2026
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.

1 participant