You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rust pack: CI Tests and Lint lanes run no Rust and report green #1811
In a repo scaffolded with the Rust language pack (devkit 1.17.0, DEVKIT_LANGUAGES=rust), CI's Tests and Lint & Format lanes run no Rust at all and report green.
Seen in vig-os/stepv (PR #15, run 37210657329). The Tests job log says, verbatim:
just sync: no pyproject.toml — skipping
just test: no pyproject.toml — skipping
Why
ci.yml's test job runs just test, and the scaffolded justfile.projecttest recipe is pytest-only: with no pyproject.toml it prints a skip line and exits 0.
ci.yml never runs nix flake check, so the checks that mkRustProject builds (fmt, clippy,
nextest, doctest, doc) are never run in CI.
The Lint lane runs just precommit, and the flake-generated hook set has no rustfmt or clippy
hook either.
The language gate (DEVKIT_LANGUAGES marker-file check) only proves Cargo.tomlexists. It
doesn't prove anything ran. That is the "green check over nothing" the gate was meant to
prevent (#1478 / #1281 lineage).
Proposed solution
Either:
have the Rust pack render a Cargo-aware test/lint (cargo nextest + clippy -D warnings + fmt --check); or
have ci.yml run nix flake check (or nix build .#checks.<system>.*) when the Rust pack is on.
Then make a skip line an error when DEVKIT_LANGUAGES declares a language the recipe didn't
run.
Workaround in stepv
justfile.project's test/lint now run the Rust suite when Cargo.toml exists (vig-os/stepv#17).
Activity
ci(kernel): build, flake-check and gate the kernel on both platforms
feat(linux,ci): Linux front-ends, and CI that actually runs the Rust …
docs: consumer-facing docs and package metadata for v0.1.0 (#154)