1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00
Commit graph

34 commits

Author SHA1 Message Date
Andrew Marshall 929fcf9335 zfs_unstable: Rename from zfsUnstable
This matches the naming of other zfs_* pkgs.
2024-02-27 18:45:55 -05:00
Andrew Marshall 1c84667539 nixos/tests/zfs: Get test name from pkg under test
The previous names are already this.
2024-02-27 18:45:47 -05:00
Andrew Marshall dcff4f8318 zfs_2_2: Rename from zfsStable
The `zfs` alias already has equivalent semantics. Instead, make this
like zfs_2_1 so folks who want to pin a specific release series can do
so easily and clearly to have more control over when more substantial
updates occur.

Rename all tests to match the pkg attr they are testing.
2024-02-27 18:45:43 -05:00
Andrew Marshall 5d798a0657 nixos/tests/zfs: decouple makeZfsTest params from unstable vs. stable
enableUnstable was trying to do too much, it’s more obvious to remove
the indirection to set zfsPackage and push the semantics up to the
caller.
2024-01-28 09:20:31 -05:00
Andrew Marshall 39ba1b4145 nixos/tests/zfs: improve naming
It is not one package, but the package set, and so is plural.
2024-01-28 09:19:21 -05:00
Andrew Marshall fb346a8791 nixos/tests/zfs: fix using wrong package 2024-01-27 09:33:35 -05:00
Lassulus 14912a23d1
Merge pull request #223412 from Luflosi/test-boot-from-zfs
nixos/tests/installer: test /boot on ZFS
2023-12-28 16:25:16 +01:00
adisbladis c24958f4c7 maintainers: Remove adisbladis as maintainer from various packages
These are a handful of packages I no longer use or/and have lost interest in.
2023-12-27 23:13:50 +13:00
Luflosi c351a84eec
nixos/tests/installer: test /boot on ZFS
Let's test / on ZFS and /boot on ZFS in separate tests since the GRUB integration for ZFS seems to be not very well maintained.
If the test breaks in the future it's easier to figure out that ZFS on /boot is at fault and either fix the issue or disable the test.
The new test creates a ZFS pool where all features not compatible with GRUB2 are disabled. The dataset is then mounted on /boot and we check that the installer correctly generates a bootable configuration.
Try to use as many ZFS features as possible to verify that GRUB can handle them.
2023-12-07 13:17:49 +01:00
Raito Bezarius e04c0b0d99 zfs_2_1: init at 2.1.13
This re-introduces the old stable ZFS version we had in the past following
the many predicted issues of ZFS 2.2.x series, that is much more stable
than any further ZFS version at the moment.

I am also removing myself from maintenance of any further ZFS versions as I am
planning to quit ZFS maintenance at some point.

In the meantime, for users like me who depend on ZFS for critical operations, here is a ZFS version
that is known to work for LTS kernels.
2023-11-24 15:47:21 +01:00
Adam Stephens 1a81fe0cc8
zfs: 2.1.13 -> 2.2.0 2023-10-21 12:16:31 -04:00
Jörg Thalheim fd264ba8a2 nixos/zfs: fix tests on zfsUnstable 2023-09-17 05:58:38 +02:00
Ryan Lahfa 4b4e4c3ef9
Merge pull request #207039 from NixOS/qemu-boot-disk-using-make-disk-image
nixos/qemu-vm: refactor bootDisk using make-disk-image
2023-04-21 13:47:17 +02:00
Raito Bezarius 58f4c3944d nixos/tests(treewide): vdb → vda, vdc → vdb, vdd → vdc, … / bootDevice → rootDevice 2023-04-21 13:00:19 +02:00
Albert Peschar 0f05321d78 zfs: enable keylocation=http://
When ZFS is built with cURL, it allows retrieving encryption keys from
URLs automatically.
2023-04-18 17:44:25 +03:00
Raito Bezarius 56fa7ab066 nixos/tests/zfs: add zfsUnstable test for systemd-stage 1 2023-03-27 18:18:59 +02:00
Will Fancher 51809df302 nixos/tests/zfs: Test requestEncryptionCredentials as a list. 2022-12-28 22:45:28 -05:00
Will Fancher 22b6f785a7 nixos/tests/zfs: Represent real world usage better
It's better to utilize the boot process and systemd mechanisms to test
these zfs features, rather than manually simulating the same behavior
with testScript.
2022-12-28 22:42:37 -05:00
aszlig 373feb46cf
nixos: Only use compatible kernels for ZFS tests
Right now, the latest kernel is version 5.19, for which there is no
compatible upstream release for ZFS. However, our NixOS VM test always
uses linuxPackages_latest and thus will fail with an evaluation error
most of the time when a new mainline kernel is released.

Since we expose a latestCompatibleLinuxPackages attribute for the ZFS
packages, we already know what's the latest kernel version that is
supported so let's use that instead of linuxPackages_latest.

Signed-off-by: aszlig <aszlig@nix.build>
2022-09-16 14:58:31 +02:00
Graham Christensen 3f992e25f1 services.zfs.expandOnBoot: Test that it works 2022-04-07 13:06:57 -04:00
Robert Hensing aa0f27abb0 treewide: machine -> nodes.machine 2022-03-28 14:11:58 +02:00
Jörg Thalheim a4cb90bdbd
Update nixos/tests/zfs.nix
Co-authored-by: jnetod <49963580+jnetod@users.noreply.github.com>
2021-06-18 22:19:16 +02:00
Jörg Thalheim 86b1feefbd
nixos/zfs: add tests for samba 2021-06-11 08:24:56 +02:00
Maciej Krüger 59eb6d3ee3
nixosTests.*: update to use virtualisation.fileSystems 2021-02-14 12:23:50 +01:00
Kevin Cox ddad87f26a
Merge pull request #108940 from Atemu/zfs-test-with-stable-linuxPackages
tests/zfs: test stable with stable linuxPackages
2021-01-14 17:09:02 -05:00
Dominik Xaver Hörl 25bef2d8f9 treewide: simplify pkgs.stdenv.lib -> pkgs.lib
The library does not depend on stdenv, that `stdenv` exposes `lib` is
an artifact of the ancient origins of nixpkgs.
2021-01-10 20:12:06 +01:00
Atemu 61c0e8e657 tests/zfs: test stable with stable linuxPackages
Only unstable is supposed to be compatible with linuxPackages_latest
2021-01-10 13:24:53 +01:00
Sarah Brofeldt ffe4dbf32f nixos/tests/zfs: Test boot.zfs.forceImportAll 2020-11-11 18:45:14 +01:00
Sergey Lukjanov da4e029edf nixos/zfs: enable encryption test for stable zfs 2020-08-16 10:36:48 +00:00
Jacek Galowicz 3bb2941e73 nixosTests.zfs: Refactor 2020-02-07 13:24:16 +01:00
Julian Stecklina 40396a7e12 nixos/zfs: convert test to python 2019-11-04 23:51:10 +01:00
Léo Gaspard 6c68fbd4e1
tests: refactor to carry the package set as an argument
This way, the package set will be possible to pass without re-importing
all the time
2018-11-11 23:11:45 +09:00
volth 2e979e8ceb [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
adisbladis 59e4599723
Add basic ZFS tests 2017-11-14 14:34:19 +08:00