Repository navigation
[26.05] Lix lib tests - #577291
[26.05] Lix lib tests#577291RaitoBezarius merged 2 commits into
Conversation
The lib tests exercise things like `nix-instantiate` and their error messages. Therefore, they can regress when the wording is too coupled to a specific version or implementation. Given that Lix is already easy to reach out in nixpkgs and `lib/tests/test-with-nix.nix` is consumed by Lix's own CI, we propose to run the suite under `pkgs.lix` too. The default `lib-tests` output stays Nix-only because it is part of the release tarball closure; `lib-tests-lix` is a separate CI job and not part of the release tarball closure. As far as I can tell: - that extra test takes ~55s on my system under Lix in the sandbox. Over a faster builder, it takes ~20s. - this is a new *step* in an existing job, no new checkout, no new install or whatever, so no extra setup cost. - the symlink join do not cause rebuild of the nix-unit things and so on. pkgs.lix is substituted and not rebuilt. - the existing lib-tests are already doing 2 runs of testWithNix, Lix is a 3rd. If this proves to be a problem for CI performance, we can always revert the long part (fileset) and decrease even further the cost of this additional minute check. (cherry picked from commit db99680)
|
Merging to stop failures. |
The lib-test harness and the tests that assert on the Nix implementation have consequences on Lix's own CI. Make the Lix maintainers code owners of them so that they are notified of changes, and add @xokdvium, who asked to be notified as well. This does not claim any "technical" ownership of these changes, it's just a manner to be notified of these changes. (cherry picked from commit 355f7e1)
e5cff89 to
189230e
Compare
There was a problem hiding this comment.
This report is automatically generated by the PR / Check / cherry-pick CI workflow.
Some of the commits in this PR require the author's and reviewer's attention.
Sometimes it is not possible to cherry-pick exactly the same patch.
This most frequently happens when resolving merge conflicts.
The range-diff will help to review the resolution of conflicts.
If you need to merge this PR despite the warnings, please dismiss this review shortly before merging.
Warning
Difference between 189230e and original 355f7e1 may warrant inspection.
Show diff
@@ Commit message
This does not claim any "technical" ownership of these changes, it's
just a manner to be notified of these changes.
+ (cherry picked from commit 355f7e1e06e3e6bb25398a0a1e7f4155d9d600ea)
+
## ci/OWNERS ##
@@
- /lib/options.nix @infinisil @roberth @hsjobeki @llakala
+ /lib/options.nix @infinisil @roberth @hsjobeki
/lib/tests/modules.sh @infinisil @roberth @hsjobeki
/lib/tests/modules @infinisil @roberth @hsjobeki
+## Libraries / Nix-implementation-dependent tests
+/lib/tests/release.nix @NixOS/lix-maintainers @xokdvium
+/lib/tests/test-with-nix.nix @NixOS/lix-maintainers @xokdvium
-+/lib/tests/strings.sh @NixOS/lix-maintainers @xokdvium
# Nixpkgs Internals
/default.nix @Ericson2314
Hint: The full diffs are also available in the runner logs with slightly better highlighting.
The diff doesn't match what I wrote in the original PR AFAIK, namely, I didn't drop @llakala from |
analyzed the comment; wrote a rationale for dismissing it
Backports as required per https://matrix.to/#/!EoslJfrUGMtQOAfnht:lassul.us/$X5LTaIyMX61SwGG_ICHV01krxRB8QX2yPaiEdtJrf9I?via=nixos.org&via=matrix.org&via=catgirl.cloud.
Should solve https://github.com/NixOS/nixpkgs/actions/runs/39739430058/job/119726172048?pr=577211.
Backport of #574183.
Things done