Repository navigation
Backlog
Description
CI today (.github/workflows/ci.yml) builds the workspace and runs the tests on a Windows runner. It does not check lints, licences or dependency updates, and its cache has a couple of gaps. I'd like to send a few small, independent PRs for this. Each one is a draft until its CI run on my fork is green, each can be merged or dropped on its own, and none of them touches crates/xcl/src.
Measured on main (9ab7d76), Rust 1.97.1:
| Today | Proposal | |
|---|---|---|
| Dependency updates | No .github/dependabot.yml |
Dependabot for github-actions and cargo, weekly, minor/patch grouped, at most 5 open PRs. PR checks skips Dependabot's PRs, because they cannot fill in the description template. |
| Cache | actions/cache keyed on Cargo.lock + Cargo.toml, not on the rustc version, so after each stable release every dependency is rebuilt on every run until Cargo.lock changes. Every PR that changes a Cargo.toml stores its own ~280 MB cache. |
Swatinem/rust-cache@v2, which keys on the compiler. Only main saves caches; PRs restore from them. |
| rustc warnings | cargo build --workspace has 0 warnings, but nothing enforces it |
RUSTFLAGS=-D warnings in the CI job only. Local builds are unchanged. |
| Licences | CONTRIBUTING requires GPL-2.0-compatible dependencies, but nothing checks it | cargo-deny (licences, bans, sources) as a CI job on Ubuntu. Advisories run daily and when Cargo.lock changes, so a new RUSTSEC entry does not turn unrelated PRs red. |
| Clippy | Not run. ~630 warnings with --all-targets on rustc 1.100 (310 of them missing_safety_doc) |
A clippy job that only warns: the warnings are listed in its log and never block a merge. |
| Script test | scripts/test-native-stderr.tests.ps1 is never run in CI |
A small job runs it under both Windows PowerShell 5.1 and pwsh |
| Action versions | actions/checkout@v4 and actions/cache@v4 run on Node 20, which GitHub now flags as deprecated |
Bump to the current majors (Dependabot keeps them current afterwards) |
| Path filters | Every PR runs the full Windows build and tests, including docs-only PRs | A small changes job decides which jobs a PR needs (for example, docs-only PRs skip the Rust build). The workflow itself always runs, so required checks still report (a workflow-level paths: filter would leave them stuck on "Expected"). Skipped jobs count as passing, and pushes to main always run everything. |
The new checks run as separate parallel jobs, so CI does not get slower.
PRs (filled in as they open):
- Dependabot: CI: Dependabot checks Actions and Cargo dependencies weekly #272
- rust-cache: CI: cache Cargo with rust-cache, saved from main only #274
- rustc warnings deny: CI: rustc warnings fail the build, except deprecations #275
- cargo-deny: CI: check dependency licences, bans and sources with cargo-deny #276
- clippy (warnings only): CI: run clippy on all targets, warnings only #277
- script test in CI: CI: run scripts/test-native-stderr.tests.ps1 under PowerShell 5.1 and 7 #279
- action version bump: CI: move to actions/checkout v7 and actions/cache v6 (Node 24) #286
- path filters: CI: skip the build on pull requests that change only documentation #287
AI use: the measurements and this write-up were made with Claude Code (Claude Opus 5.5); I checked the numbers.
Metadata
Metadata
Assignees
Labels
No labels
Activity
sombraSoft commentedon Nov 23, 2026
@ivall are these changes welcome? this will guarantee quality is maintained at main especially now with all the new contributors.
ivall commentedon Nov 23, 2026
Yes, please - small independent PRs as you describe. Two conditions: clippy only warns (the tree is not lint-clean, so a failing lint must not block merges until it is), and no
cargo fmt --check- the tree is not rustfmt-formatted and reformatting it is not wanted. Dependabot forgithub-actionsandcargoweekly with grouped minor/patch updates is fine;PR checksexempting Dependabot's PRs is fine too. Each PR should say how much it adds to CI time.sombraSoft commentedon Nov 23, 2026
Thanks! Updated to match:
cargo clippy --workspace --all-targetsand never fails; the warnings are in its log. The allow-list and the-D warningsare gone, and so are theCargo.tomlchanges.cargo fmt --check: the rustfmt proposal is removed from this issue; nothing formats or checks formatting.changesjob (which skips the whole build on docs-only PRs). The new jobs run in parallel and finish before the build: cargo-deny 19 s, scripts 16 s, clippy ~70 s.-D warnings) changesRUSTFLAGS, which invalidates the current cache. It is best merged after or together with CI: cache Cargo with rust-cache, saved from main only #274 (rust-cache), otherwise every run rebuilds the dependencies untilCargo.lockchanges.All eight PRs are independent, but they touch the same
ci.ymlheader comment, so I'll rebase the rest as they land.sombraSoft commentedon Nov 23, 2026
@ivall all eight PRs are rebased on current
mainand theirPR checkspass. TheirCIruns are waiting for approval, since this is my first contribution here (Actions shows "approval required" on each): #272, #274, #275, #276, #277, #279, #286, #287. Could you approve them when you have a moment?(The earlier
PR descriptionfailures came from the switch topull_request_target: the job readsscripts/pr_check.pyat the PR's recorded base commit, which was older than that file until the PRs got a new push. A rebase fixes it; other PRs opened before 0e946cf will hit the same thing.)