Skip to content

[26.05] Lix lib tests - #577291

Merged
RaitoBezarius merged 2 commits into
NixOS:release-26.05from
RaitoBezarius:backport-574183-to-release-26.05
Oct 22, 2026
Merged

RaitoBezarius merged 2 commits into
NixOS:release-26.05from
RaitoBezarius:backport-574183-to-release-26.05

Conversation

@RaitoBezarius

Copy link
Copy Markdown
Member

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)
@RaitoBezarius

Copy link
Copy Markdown
Member Author

Merging to stop failures.

@nixpkgs-ci
nixpkgs-ci Bot requested review from a team, infinisil and philiptaron October 22, 2026 11:27
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 6.topic: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions 4.workflow: backport This targets a stable branch 6.topic: policy discussion Discuss policies to work in and around Nixpkgs labels Oct 22, 2026
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)
@RaitoBezarius
RaitoBezarius force-pushed the backport-574183-to-release-26.05 branch from e5cff89 to 189230e Compare October 22, 2026 11:28

@nixpkgs-commit-check nixpkgs-commit-check Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@RaitoBezarius

Copy link
Copy Markdown
Member Author

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 /lib/options.nix. Sounds like a prior divergence, the rest is correct.

@RaitoBezarius
RaitoBezarius dismissed nixpkgs-commit-check[bot]’s stale review October 22, 2026 11:40

analyzed the comment; wrote a rationale for dismissing it

@RaitoBezarius
RaitoBezarius added this pull request to the merge queue Oct 22, 2026
Merged via the queue into NixOS:release-26.05 with commit 9b41269 Oct 22, 2026
73 checks passed
@RaitoBezarius
RaitoBezarius deleted the backport-574183-to-release-26.05 branch October 22, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.workflow: backport This targets a stable branch 6.topic: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions 6.topic: policy discussion Discuss policies to work in and around Nixpkgs 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant