CI: lint, licence, cache and dependency-update checks #265
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#265
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@sombraSoft on GitHub · 2026-11-23 22:07 UTC · original
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 touchescrates/xcl/src.Measured on
main(9ab7d76), Rust 1.97.1:.github/dependabot.ymlgithub-actionsandcargo, weekly, minor/patch grouped, at most 5 open PRs.PR checksskips Dependabot's PRs, because they cannot fill in the description template.actions/cachekeyed onCargo.lock+Cargo.toml, not on the rustc version, so after each stable release every dependency is rebuilt on every run untilCargo.lockchanges. Every PR that changes aCargo.tomlstores its own ~280 MB cache.Swatinem/rust-cache@v2, which keys on the compiler. Onlymainsaves caches; PRs restore from them.cargo build --workspacehas 0 warnings, but nothing enforces itRUSTFLAGS=-D warningsin the CI job only. Local builds are unchanged.cargo-deny(licences, bans, sources) as a CI job on Ubuntu. Advisories run daily and whenCargo.lockchanges, so a new RUSTSEC entry does not turn unrelated PRs red.--all-targetson rustc 1.100 (310 of themmissing_safety_doc)scripts/test-native-stderr.tests.ps1is never run in CIpwshactions/checkout@v4andactions/cache@v4run on Node 20, which GitHub now flags as deprecatedchangesjob 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-levelpaths:filter would leave them stuck on "Expected"). Skipped jobs count as passing, and pushes tomainalways run everything.The new checks run as separate parallel jobs, so CI does not get slower.
PRs (filled in as they open):
AI use: the measurements and this write-up were made with Claude Code (Claude Opus 5.5); I checked the numbers.
github-bot referenced this issue2026-11-26 04:59:09 +00:00
@sombraSoft on GitHub · 2026-11-23 22:27 UTC · original
@ivall are these changes welcome? this will guarantee quality is maintained at main especially now with all the new contributors.
@ivall on GitHub · 2026-11-23 22:42 UTC · original
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 on GitHub · 2026-11-23 22:49 UTC · original
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 #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 on GitHub · 2026-11-23 23:34 UTC · original
@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 before0e946cfwill hit the same thing.)