Repository navigation
ci: extract host Dylint into a script-backed local gate lane - #3899
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #3892. Replaces the rejected shape of closed #3894. Leave unmerged per maintainer request.
Host Dylint now has a real
lane_dylintinci/local_gate.py, with its existing soldr flags and dedicated target directory preserved.lane_lintretains formatting, selftests and Clippy. The new TOML lane is a short script argv; every existing lane command and[gate] runare unchanged. Existing long declarations are wrapped below 120 columns. Attestation coverage requires the new host lane wherever it previously requiredlint, so cached lint alone cannot replace host Dylint coverage.CI's one-line change:
Existing
rust-cross-lintremains:Cross Dylint remains inside
cross_lint's shared per-target loop, also used bycross-release. It is not a standalone call inlane_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:crossremains locally selected for source and dylints changes. No Rust sources or versions change.Validation so far:
03bc2a0c1: extracting the pass without its target-directory flag fails existingtest_only_the_lint_lane_runs_it_beside_clippy(0 expected 1).a2de01209: preservesbeside_clippy=True; all six existing Dylint tests pass. Another 34 gate/cross/native tests pass.local-gate plancommand. Equivalent evaluation using its reallane_inputsAPI (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.Ran 1332 tests in 379.484s/OK, usinguv run --no-project ... python -m ci_lint selftestwith the exacta1917ce76598904ce515cd7eec83450c317ea6f2source archive onPYTHONPATH. The installed package omits fixtures and cannot run its selftest correctly.local-gate run: FAILED after 155s (no lane passed). Lint fails before Dylint atcheck_test_binary_inventory: soldr metadata has noworkspace_members(KeyError). Its parallel Tier 2 container was stopped after this terminal lint failure; exit 137 is cancellation, not a Tier 2 test result.local-gate run: FAILED after 151s (no lane passed). SameKeyError: 'workspace_members'in lint, before Dylint. Its parallel Tier 2 container was also stopped after lint failed (137 is cancellation).ci-lint local-gate run --no-stamp, with no source or HEAD changes between them. Both reportnot 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.local-gate lintreports 93 workflow/declaration violations; these findings were not investigated within this task.git diff --checkpasses; 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.