Repository navigation
ci: flake checks as CI Tier 0 via nix-fast-build (#779) - #797
Merged
Merged
Conversation
Build every checks.<system> derivation (treefmt formatting, deadnix/statix, dev-shell build, devShellTools, the git-hooks.nix pre-commit gate) in parallel with an eval cache via nix-fast-build, replacing the serial `nix flake check` step in project-checks. Expose nix-fast-build as packages.<system>.nix-fast-build (pinned-nixpkgs passthrough) so CI runs it via `nix run .#nix-fast-build` without baking a CI-only tool into the dev-shell or image. Validate the flake output schema (formatter/checks/apps/modules) with test_flake_checks.py, preserving what the removed `nix flake check` covered. Document the pure/effectful tiering in docs/rfcs/ADR-flake-checks-tier0.md. Refs: #779
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Lands Wave C / roadmap thread C (#779): make the flake's
checks.<system>the Tier-0 CI gate, run bynix-fast-build(parallel + eval-cached) instead of a serialnix flake check, with effectful jobs staying GitHub-Actions-orchestrated.Changes
packages.<system>.nix-fast-build— a pinned-nixpkgs passthrough, so CI runsnix run .#nix-fast-buildreproducibly. Deliberately not indevTools(no image/dev-shell bloat; it has no--versionso it would trip the parity check).ci.ymlproject-checks— thenix flake checkbuild step becomesnix run .#nix-fast-build -- --skip-cached --no-nom --flake .#checks.x86_64-linux, building treefmt-formatting, deadnix/statix, devShell, devShellTools, and the git-hooks.nixpre-commitgate in parallel. A cheaptest_flake_checks.pystep validates the output schema (formatter/checks/apps/modules) that nix-fast-build doesn't build — preserving whatnix flake checkcovered.docs/rfcs/ADR-flake-checks-tier0.md— records the pure→Tier-0 / effectful→GH-orchestrated tiering, why the repo/git-dependent pytest units and impure hooks stay GH jobs, and the driver decision (nix-fast-build now; garnix documented as a future option; Tier-1 self-hosting deferred).test_flake_checks.py— guard test that thenix-fast-builddriver package stays exposed.Verification
nix run .#nix-fast-build -- --flake .#checks.x86_64-linux→ builds all checks, exit 0.tests/test_flake_checks.py -k "not flake_check_succeeds"→ 5 passed (schema + driver guard).Refs: #779