Repository navigation
CI: run clippy on all targets, warnings only - #277
Open
sombraSoft wants to merge 2 commits into
Open
sombraSoft wants to merge 2 commits into
sombraSoft wants to merge 2 commits into
Conversation
8 tasks
sombraSoft
marked this pull request as ready for review
November 23, 2026 22:18
sombraSoft
force-pushed
the
ci/clippy
branch
from
November 23, 2026 22:45
d392fcd to
da0ead4
Compare
A separate Windows job runs `cargo clippy --workspace --all-targets` on every push and pull request. The tree is not lint-clean (clippy 0.1.100 reports about 630 warnings), so the warnings are listed in the job's log and do not fail it; a failing lint must not block merges. The job runs in parallel with the build and takes about 70 s on a cold cache, so it does not lengthen CI.
CI's clippy job only warns, so nothing stops a PR that adds new warnings. AGENTS.md now lists the clippy command next to the build and test commands and asks agents to fix the warnings in the lines they write or change, and to leave the existing ones alone (Scope: no drive-by fixes).
sombraSoft
force-pushed
the
ci/clippy
branch
from
November 23, 2026 23:12
1b6f0a4 to
86790b2
Compare
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.
Adds a clippy job to CI that only warns. It runs
cargo clippy --workspace --all-targetson every push and pull request. Its warnings are listed in the job's log and never fail it, because the tree is not lint-clean (clippy 0.1.100 reports about 630 warnings) and a failing lint must not block merges.Part of #265
What is in it
.github/workflows/ci.yml: aclippyjob onwindows-2025(stable + clippy,Swatinem/rust-cache@v2saving only onmain) runningcargo clippy --workspace --all-targets. The header comment lists it. No lint config and no source change.AGENTS.md: the clippy command is listed next to the build and test commands, with one rule: fix the warnings clippy reports in the lines you wrote or changed, and leave the existing ones alone (Scope: no drive-by fixes). Since the CI job only warns, this is what keeps new warnings out.CI time
Tested
main(9ab7d76), RTX 3060 Ti (driver 621.24), Ryzen 9 5900X, Windows 11, rustc 1.97.1, debug:scripts/test.ps1→ 651 passed, 0 failed, 40 ignored; SKIPPED: 2 (no wave64). This PR changes only CI config, so the compiled code is the same.Clippy (Windows)passed in 72 s and listed the warnings (xcllib: 417, lib test: 620 incl. duplicates);Build and testpassed: https://github.com/sombraSoft/xcl/actions/runs/45282658244Regression run
crates/xcl/srcchange.Not tested
AI use