Build and cache every package through flake checks #93

Merged
mike merged 4 commits from mike-bot/template-split-03 into master 2026-11-07 14:17:20 -05:00 AGit
Collaborator

Make checks.<system>.all depend on every exported package so one aggregate target covers the complete build without shell-side target enumeration.

The build wrapper validates flake outputs with nix flake check --no-build, then builds the aggregate with nix build. flake check does not pass its evaluation store to the build store, so building checks directly fails when CrowCI evaluates locally and builds on nixbuild.net. The separate nix build invocation transfers the locally evaluated derivations to the remote build store.

After a successful build, dev-scripts/upload-to-nixbuild copies the aggregate closure to ssh-ng://eu.nixbuild.net. The wrapper forwards its Nix options to validation, building, and uploading so CI continues to use the remote store throughout.

Live remote-build and upload verification remains blocked in the sandbox: SSH host-key verification fails, and no nixbuild.net SSH key is available. CI configures the pinned host key and SSH credentials.

Make `checks.<system>.all` depend on every exported package so one aggregate target covers the complete build without shell-side target enumeration. The build wrapper validates flake outputs with `nix flake check --no-build`, then builds the aggregate with `nix build`. `flake check` does not pass its evaluation store to the build store, so building checks directly fails when CrowCI evaluates locally and builds on nixbuild.net. The separate `nix build` invocation transfers the locally evaluated derivations to the remote build store. After a successful build, `dev-scripts/upload-to-nixbuild` copies the aggregate closure to `ssh-ng://eu.nixbuild.net`. The wrapper forwards its Nix options to validation, building, and uploading so CI continues to use the remote store throughout. Live remote-build and upload verification remains blocked in the sandbox: SSH host-key verification fails, and no nixbuild.net SSH key is available. CI configures the pinned host key and SSH credentials.
Build and cache every package through flake checks
Some checks failed
ci/crow/pr/build Pipeline failed
30acea7b49
Make checks.all depend on every exported package so nix flake check covers
the complete build without shell-side target enumeration. Upload the
aggregate closure only after checks succeed, resolving its system from Nix.
Upload successful flake checks to nixbuild.net
Some checks failed
ci/crow/pr/build Pipeline failed
49945fe9e5
Previously, the post-check upload hook copied the aggregate closure to the
NixCI cache, even though CI builds use the nixbuild.net store.

Upload to ssh-ng://eu.nixbuild.net instead and pass the wrapper's Nix options
to the uploader so CI uses its remote source store rather than the local one.

Live upload verification is blocked by the sandbox's missing trusted SSH host
entry and nixbuild.net credentials; CI configures both.
Fix CrowCI builds with separate evaluation and build stores
Some checks failed
ci/crow/pr/build Pipeline was canceled
4bb4fbe6de
Previously, the wrapper built checks through nix flake check. With Nix
2.35.2 and CrowCI's --eval-store auto --store ssh-ng://eu.nixbuild.net,
the remote store could not find the locally evaluated aggregate .drv and
reported "The following paths are missing and could not be substituted".

Validate flake outputs without building, then use nix build for the
aggregate check so Nix transfers the locally evaluated derivations to the
remote build store. Keep forwarding the same options to the upload hook
and stop before uploading when validation or building fails.

Live remote-build and upload verification remains unavailable in the
sandbox, which lacks nixbuild.net SSH credentials and host-key setup.
Explain the remote-store failure without implying a version boundary
All checks were successful
ci/crow/pr/build Pipeline was successful
9742a0f6d3
The evaluation-store omission also exists beyond the Nix version pinned
in CrowCI. Describe the separate-store behavior directly rather than
suggesting that the workaround only applies to Nix 2.35.2.
mike merged commit cba52d037a into master 2026-11-07 14:17:20 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
oe/transcripts!93
No description provided.