| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
lib/default.nix is for backwards compatibility only, so the examples in
the README and ci.nix use lib/with.nix, as klib, with nixpkgs' lib from
pkgs. pkgs.populate and its checks name what they use from nixpkgs'
lib, builtins, and klib, instead of bringing them into scope with with,
and the scenarios inherit what they use from the builder and nixpkgs'
lib, which the builder doesn't pass on anymore. Nix tells undefined
names when parsing then, and a name means the same wherever it's used.
The derivations and the scenarios stay the same.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Looking at a flake with inputs drawn from sources, populate overrides
those inputs with an empty flake, which makes Nix warn that it doesn't
write the lock file it changed, listing the overrides, on every run,
locally for archiving a flake or flake-input source, and on the target
for checking the inputs drawn. nix_looking leaves that warning out of
what Nix prints.
A generated flake gets locked anew on every run, so it pins what the
inputs are now, which made Nix print that it creates the lock file,
listing all inputs, on every run. That only gets printed if the lock
file differs from the one there was.
No phase is expected to print Nix's warning, and relock's second phase,
which changes nothing, isn't expected to print anything about the
generated flake's lock file.
|
|
|
populate's tests are in pkgs/populate/tests, independent of krops.
They run the program, with the sources as JSON from populate's Nix
library, and target strings for the remote targets, leaving the user
and whether the target is local to populate, so they cover its command
line too. Phases expecting populate to refuse its arguments, e.g. a
source name or a target path that can't be used, expect the program's
refusal, with refused, the message, since nothing checks them during
evaluation there.
builder.nix is what builds the scenarios, which krops' tests use as
well, with a function running the phases, and whether that checks the
arguments during evaluation. vm.nix takes a module for both machines,
for what else the scenarios run, and fixtures.nix and smoke.nix are
what both use of the fixtures and the smoke test.
krops' tests are deploy, writeDeploy's arguments to nixos-rebuild, with
the stand-in for nixos-rebuild in the module, and populate, populate's
scenarios that expect refusals, which pkgs.populate makes evaluation
fail with, and those of populate's smoke test, all through
pkgs.populate with target attribute sets as mkTarget returns them.
-A only selects from all of populate's scenarios and krops' own.
|