Skip to content

[Backport release-25.05] lib/tests/test-with-nix: run misc.nix and fetchers.nix tests in the derivation#434761

Merged
emilazy merged 5 commits intorelease-25.05from
backport-433729-to-release-25.05
Aug 19, 2025
Merged

[Backport release-25.05] lib/tests/test-with-nix: run misc.nix and fetchers.nix tests in the derivation#434761
emilazy merged 5 commits intorelease-25.05from
backport-433729-to-release-25.05

Conversation

@nixpkgs-ci
Copy link
Contributor

@nixpkgs-ci nixpkgs-ci bot commented Aug 18, 2025

Bot-based backport to release-25.05, triggered by a label in #433729.

  • Before merging, ensure that this backport is acceptable for the release.
    • Even as a non-committer, if you find that it is not acceptable, leave a comment.

This would have allowed us to catch to fromTOML regression in
[1] without waiting for the dogfooding on master, since previously
these tests [2] were not run for the Nix/Lix under test - only the host
nix.

[1]: NixOS/nix#13741
[2]: #433710

(cherry picked from commit 67ef265)
This doesn't do the right thing here, because it evaluates
the test with nix that is evaluating the `nixpkgs-lib-tests-nix-${nix.version}`
derivation, not the Nix/Lix under test. This was just really busted for a long
time.

(cherry picked from commit c269837)
This suffers from the same issue as misc.nix tests, because they
were evaluated by the host nix, not the one that is being tested.

(cherry picked from commit 609c879)
@nix-owners nix-owners bot requested review from hsjobeki and infinisil August 18, 2025 16:45
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 6.topic: lib The Nixpkgs function library 4.workflow: backport This targets a stable branch labels Aug 18, 2025
@emilazy emilazy merged commit d126664 into release-25.05 Aug 19, 2025
32 of 34 checks passed
@emilazy emilazy deleted the backport-433729-to-release-25.05 branch August 19, 2025 15:00
lf- pushed a commit to lix-project/lix that referenced this pull request Sep 10, 2025
Several nixpkgs bumps up to NixOS/nixpkgs#434761 will
be required to fix them. Disable the tests temporarily to avoid having to
squash all the backports, which would lose history.

Change-Id: I6a6a6964029a3442c4691e74a52923e3f59d6448
lf- pushed a commit to lix-project/lix that referenced this pull request Sep 10, 2025
Without NixOS/nixpkgs#434761 evaluation of the
`nixpkgsLibTests` will fail in CI with recent enough Lix, due to reliance on
the TOML integer saturation bug.

Reported-by: Sergei Zimmerman <sergei@zimmerman.foo>

Change-Id: I6a6a6964838009d2c525f67035f84072fdfad988
lf- pushed a commit to lix-project/lix that referenced this pull request Sep 10, 2025
Several nixpkgs bumps up to NixOS/nixpkgs#434761 will
be required to fix them. Disable the tests temporarily to avoid having to
squash all the backports, which would lose history.

Change-Id: I6a6a6964029a3442c4691e74a52923e3f59d6448
lf- pushed a commit to lix-project/lix that referenced this pull request Sep 10, 2025
Without NixOS/nixpkgs#434761 evaluation of the
`nixpkgsLibTests` will fail in CI with recent enough Lix, due to reliance on
the TOML integer saturation bug.

Reported-by: Sergei Zimmerman <sergei@zimmerman.foo>

Change-Id: I6a6a6964838009d2c525f67035f84072fdfad988
lf- pushed a commit to lix-project/lix that referenced this pull request Sep 10, 2025
Without NixOS/nixpkgs#434761 evaluation of the
`nixpkgsLibTests` will fail in CI with recent enough Lix, due to reliance on
the TOML integer saturation bug.

Reported-by: Sergei Zimmerman <sergei@zimmerman.foo>

Change-Id: I6a6a6964838009d2c525f67035f84072fdfad988
lf- pushed a commit to lix-project/lix that referenced this pull request Sep 10, 2025
Without NixOS/nixpkgs#434761 evaluation of the
`nixpkgsLibTests` will fail in CI with recent enough Lix, due to reliance on
the TOML integer saturation bug.

Reported-by: Sergei Zimmerman <sergei@zimmerman.foo>

Change-Id: I6a6a6964838009d2c525f67035f84072fdfad988
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: lib The Nixpkgs function library 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants