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

Open
github-bot wants to merge 2 commits from github-bot/gh-277 into main AGit
Owner

@⁠sombraSoft on GitHub · 2026-11-23 22:17 UTC · original
sombraSoft:ci/clippy → main · +31 −1 · 2 files · 2 commits · open

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.
**@⁠sombraSoft** on GitHub · 2026-11-23 22:17 UTC · [original](https://github.com/xcl-dev/xcl/pull/277) `sombraSoft:ci/clippy` → `main` · +31 −1 · 2 files · 2 commits · open 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.
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).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:18:29 +00:00
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 15:03 UTC · original

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!

**@⁠DavidM1911** on GitHub · 2026-11-25 15:03 UTC · [original](https://github.com/xcl-dev/xcl/pull/277#issuecomment-7166239165) 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!
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/277/head:github-bot/gh-277'
git switch 'github-bot/gh-277'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-277'
git switch 'github-bot/gh-277'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-277'
git switch 'github-bot/gh-277'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-277'
git switch 'main'
git merge --squash 'github-bot/gh-277'
git switch 'main'
git merge --ff-only 'github-bot/gh-277'
git switch 'main'
git merge 'github-bot/gh-277'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.