Commit Graph

5 Commits

Author SHA1 Message Date
Wolfgang Walther
16321a259b ci/nixpkgs-vet: ignore .github/ and ci/ folders
nixpkgs-vet doesn't care about our CI infrastructure, so ignoring these
files will lead to more cache hits when iterating on CI related PRs.

(cherry picked from commit 4d996cfb2f)
2025-08-20 16:54:40 +00:00
Wolfgang Walther
053b8e38d6 ci/nixpkgs-vet: memoize filesets
Speeds up evaluation a bit, because `filtered head` doesn't need to be
evaluated 3x.

(cherry picked from commit c4fa63da49)
2025-08-20 16:54:39 +00:00
Wolfgang Walther
db0afbb469 ci/nixpkgs-vet: add badFiles and conflictingPaths checks
Those checks are part of top-level/nixpkgs-basic-release-checks.nix, but
can be run in CI already to prevent regressions. The idea is to upstream
them into nixpkgs-vet eventually, but we can just as well run them as-is
in the same derivation already.

(cherry picked from commit 247d562379)
2025-06-10 13:20:40 +00:00
Wolfgang Walther
b87b33e73f ci/nixpkgs-vet: fix random errors
Every now and then, the nixpkgs-vet CI job currently fails with one of:

  error: creating symlink
'/build/.local/share/nix/root/nix/var/nix/gcroots/profiles' ->
'/build/.local/share/nix/root/nix/var/nix/profiles': File exists

  error: SQLite database
'/build/.local/share/nix/root/nix/var/nix/db/db.sqlite' is busy

It's hard to reproduce for me, so just taking a guess with the required
changes.

(cherry picked from commit 3dd14d8a51)
2025-06-02 19:50:08 +00:00
Wolfgang Walther
8eef775407 workflows/nixpkgs-vet: use nixpkgs-vet from pinned nixpkgs
We have added nixpkgs-vet as a regular package to nixpkgs a while ago,
so we can now use it from pinned nixpkgs. This avoids pulling a
platform-specific binary version from upstream.

This change also allows to run the tool easily locally, the same way as
other tools:

  nix-build ci -A nixpkgs-vet

This will do a full check of the repo with the exception of
nixpkgs-vet's "ratchet" checks: Those depend on having two branches to
compare, but the default is to only look at the head branch. Those
ratchet checks will still be run in CI, though.

(cherry picked from commit 942c377476)
2025-05-25 15:10:33 +00:00