CI: run clippy on all targets, warnings only #274

Closed
sombraSoft wants to merge 2 commits from upstream-pr/277 into main
sombraSoft commented 2026-11-23 22:17:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by sombraSoft on 2026-11-23T22:17:04Z.


Adds a clippy job to CI that only warns. It runs cargo clippy --workspace --all-targets on 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: a clippy job on windows-2025 (stable + clippy, Swatinem/rust-cache@v2 saving only on main) running cargo 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

  • The new job runs in parallel with the build and takes 72 s on a cold cache, shorter than the build (~1.5–2.5 min), so wall time is unchanged. It adds about 70 s of Windows runner time per run.

Tested

  • Full suite on 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.
  • Fork run on this commit (rustc 1.100.0): Clippy (Windows) passed in 72 s and listed the warnings (xcl lib: 417, lib test: 620 incl. duplicates); Build and test passed: https://github.com/sombraSoft/xcl/actions/runs/45282658244

Regression run

  • Not needed: no crates/xcl/src change.

Not tested

  • Warnings are only in the job log, not shown as PR annotations.

AI use

  • Claude Code (Claude Opus 5.5) wrote the change and this description; I read the diff.
<!-- greyfinch-sync:ivall/xcl:issue:5462182431 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/277). Originally posted by [sombraSoft](https://github.com/sombraSoft) on 2026-11-23T22:17:04Z. --- Adds a clippy job to CI that only warns. It runs `cargo clippy --workspace --all-targets` on 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`: a `clippy` job on `windows-2025` (stable + clippy, `Swatinem/rust-cache@v2` saving only on `main`) running `cargo 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** - The new job runs in parallel with the build and takes 72 s on a cold cache, shorter than the build (~1.5–2.5 min), so wall time is unchanged. It adds about 70 s of Windows runner time per run. **Tested** - Full suite on `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. - Fork run on this commit (rustc 1.100.0): `Clippy (Windows)` passed in 72 s and listed the warnings (`xcl` lib: 417, lib test: 620 incl. duplicates); `Build and test` passed: https://github.com/sombraSoft/xcl/actions/runs/45282658244 **Regression run** - Not needed: no `crates/xcl/src` change. **Not tested** - Warnings are only in the job log, not shown as PR annotations. **AI use** - Claude Code (Claude Opus 5.5) wrote the change and this description; I read the diff.
DavidM1911 commented 2026-11-25 15:08:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T15:03:37Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7166239165 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/277#issuecomment-7166239165). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T15:03:37Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
github-actions[bot] commented 2026-11-29 20:42:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:42:33Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7262294940 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/277#issuecomment-7262294940). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T20:42:33Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 03:03:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:03:32Z.


Triage (#1607) – head 86790b2

No open or merged PR adds clippy to CI. The lines shared with #783 are the usual rustup toolchain setup; #783 cross-builds the Wine target, a different job.
No problems found in the diff: the job never fails on warnings (no -D warnings), so it adds runner time but cannot block. The AGENTS.md rule (fix clippy warnings only in lines you changed) is a policy addition the maintainer has to want. Conflicts with main's ci.yml.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7299276486 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/277#issuecomment-7299276486). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T03:03:32Z. --- **Triage (#1607)** – head 86790b2 No open or merged PR adds clippy to CI. The lines shared with #783 are the usual rustup toolchain setup; #783 cross-builds the Wine target, a different job. No problems found in the diff: the job never fails on warnings (no `-D warnings`), so it adds runner time but cannot block. The `AGENTS.md` rule (fix clippy warnings only in lines you changed) is a policy addition the maintainer has to want. Conflicts with main's `ci.yml`. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!274
No description provided.