Skip to content

CI: lint, licence, cache and dependency-update checks #265

Backlog

Description

@sombraSoft

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):

AI use: the measurements and this write-up were made with Claude Code (Claude Opus 5.5); I checked the numbers.

Activity

  1. sombraSoft commented on Nov 23, 2026

    @sombraSoft
    Author

    @ivall are these changes welcome? this will guarantee quality is maintained at main especially now with all the new contributors.

  2. ivall commented on Nov 23, 2026

    @ivall
    Collaborator

    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 for github-actions and cargo weekly with grouped minor/patch updates is fine; PR checks exempting Dependabot's PRs is fine too. Each PR should say how much it adds to CI time.

  3. sombraSoft commented on Nov 23, 2026

    @sombraSoft
    Author

    Thanks! Updated to match:

    All eight PRs are independent, but they touch the same ci.yml header comment, so I'll rebase the rest as they land.

  4. sombraSoft commented on Nov 23, 2026

    @sombraSoft
    Author

    @ivall all eight PRs are rebased on current main and their PR checks pass. Their CI runs 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 description failures came from the switch to pull_request_target: the job reads scripts/pr_check.py at 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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions