Repository navigation
Description
Context
The current ordinary PR always invokes Linux x86 lint, which calls the reusable lint workflow and runs real Dylint. Windows x86 lint and macOS ARM/x86 lint require the ci-full label, so an ordinary unlabelled PR can merge without Dylint evaluating code selected on those hosts. Linux ARM lint is also label-gated. This is especially relevant because release builds include all three OS families.
The local ./lint runs real cargo-dylint when prerequisites exist, and fails if they are missing in CI. On a local host with missing or wrong-version cargo-dylint, or missing rustup, it prints dylint not run and exits 0. Thus a green full local lint can omit the custom ban_std_pathbuf check. #262 requested a nonzero exit for this case but the current implementation returns 0.
Cross-target Clippy in forge-ci/soldr#3392 does not address this: Dylint remains host-only.
Proposal
Make actual custom Dylint a required ordinary PR check for supported Linux, Windows, and macOS selected Rust code, using native OS jobs or a cross-target method proven to lint the corresponding cfg modules. Retain the existing pinned nightly and reusable _lint.yml bootstrap. Make full local ./lint fail with an actionable prerequisite error when Dylint cannot run; preserve the other lint stages and document any deliberately partial command separately.
Acceptance criteria
- RED → GREEN: add a focused CI policy test that fails while Windows/macOS Dylint jobs are label-gated, plus a local-shell test that fails while missing Dylint prerequisites produce exit 0. Make both pass with the implementation.
- On an ordinary unlabelled PR, real custom Dylint runs for Linux, Windows, and macOS selected code. A representative violation inside each OS-specific
cfgmodule fails the corresponding required check before the violation is removed; the check passes afterward. The overall required gate fails on a skipped or failed OS leg. Confirm whether Linux ARM or other architecture-gated source needs a separate Dylint proof, and cover it if so. - Full local
./linton each supported host runs the custom Dylint and fails for a representative violation. Missingcargo-dylint, wrong version, missingrustup, or incompatible nightly fails with a clear install/repair message after the independent lint stages complete; it never reports overall lint success. - Verify the pinned nightly/driver setup works on the native CI runners. Keep existing Python, rustfmt, and Clippy coverage.
Decisions
- Priority: P1. Standard PR validation can miss platform-specific custom lint findings.
- Fix location: FastLED/cli. This is a workflow gate and local-script exit-code gap; soldr#3392 only adds cross-target Clippy.
- CI design: reuse
_lint.ymland remove the platform Dylint gating that makes ordinary PRs omit it. Keep any unrelatedci-fullpolicy intact.
Related issues
- cross platform dylint checks for ci.yml and local repo ./lint fbuild#1501 — cross-repository Dylint audit.
- feat(lint): run cross-target Clippy for declared soldr targets (#3378) forge-ci/soldr#3392 — cross-target Clippy, Dylint host-only.
- meta: burndown of remaining fastled-wasm work #262 — prior local-lint request explicitly required a nonzero exit when Dylint is skipped; current
./lintreturns 0.
Activity
test: treat all platform lint workflows as always-run (#274) (#278)