1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-10 18:12:34 +09:00
nixpkgs/lib/tests
Wolfgang Walther e506dfcf53 lib/tests: avoid full rebuild when only maintainers change
The vast majority of CI jobs to build the lib tests are caused by
changes in the maintainer list. In this case, we currently run the full
test-suite which takes 3-4 minutes. By moving the maintainers and teams
tests out of the test-with-nix file, we save almost all of that.
Building only those two tests on a change is almost instant. This only
works, because we previously enabled cachix for the workflow.

Note, that these tests are not actually run with both nix versions, even
though they were listed in the "test with specific nix version" file.
That's because we only differ in the nix version run *inside* the
sandbox, but not doing the outer build.

Since this file seems to be re-used by NixOS/nix' CI, this is
technically a small loss in coverage for that repo, but nixpkgs CI
considerations outweigh that. But because of this, I left the other
non-nix-version-specific tests in that file.

(cherry picked from commit a7f4e0f9ae)
(cherry picked from commit af25d1ce8c)
2025-06-02 07:45:16 +00:00
..
modules lib/modules: add class to specialArgs 2025-04-15 16:46:58 +02:00
packages-from-directory treewide: format all inactive Nix files 2024-12-10 20:29:24 +01:00
.editorconfig .editorconfig: move subfolder config into separate .editorconfig files 2025-05-08 09:06:29 +02:00
check-eval.nix treewide: format all inactive Nix files 2024-12-10 20:29:24 +01:00
fetchers.nix lib.fetchers: add tests 2024-09-17 10:51:48 +00:00
filesystem.sh lib.filesystem: Don't test Nix-specific error messages 2023-11-01 18:56:03 +01:00
maintainer-module.nix treewide: format all inactive Nix files 2024-12-10 20:29:24 +01:00
maintainers.nix lib/tests: avoid full rebuild when only maintainers change 2025-06-02 07:45:16 +00:00
misc.nix treewide: Format all Nix files 2025-04-01 20:11:51 +02:00
modules.sh lib/modules: add class to specialArgs 2025-04-15 16:46:58 +02:00
network.sh lib.network: ipv6 parser from string 2024-06-29 10:02:00 +03:00
nix-for-tests.nix nixVersions.{nix_2_28,nix_2_26}: switch simplified meson build 2025-04-08 16:50:43 -04:00
release.nix lib/tests: avoid full rebuild when only maintainers change 2025-06-02 07:45:16 +00:00
sources.sh lib/tests: Unify documentation of individual testable files 2023-07-18 17:22:45 +02:00
systems.nix treewide: Format all Nix files 2025-04-01 20:11:51 +02:00
teams.nix treewide: format all inactive Nix files 2024-12-10 20:29:24 +01:00
test-to-plist-expected.plist lib.toPlist: keep test output in external files for their tab indents 2023-03-27 19:25:52 +02:00
test-with-nix.nix lib/tests: avoid full rebuild when only maintainers change 2025-06-02 07:45:16 +00:00