Skip to content

Commit

Permalink
incus-lts: 6.0.2 -> 6.0.3 (#367510)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcstephens authored Dec 23, 2024
2 parents 657edeb + 9e95bbb commit ae6dd82
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 19 deletions.
4 changes: 2 additions & 2 deletions nixos/tests/all-tests.nix
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,8 @@ in {
iftop = handleTest ./iftop.nix {};
immich = handleTest ./web-apps/immich.nix {};
incron = handleTest ./incron.nix {};
incus = pkgs.recurseIntoAttrs (handleTest ./incus { lts = false; });
incus-lts = pkgs.recurseIntoAttrs (handleTest ./incus { });
incus = pkgs.recurseIntoAttrs (handleTest ./incus { lts = false; inherit system pkgs; });
incus-lts = pkgs.recurseIntoAttrs (handleTest ./incus { inherit system pkgs; });
influxdb = handleTest ./influxdb.nix {};
influxdb2 = handleTest ./influxdb2.nix {};
initrd-network-openvpn = handleTestOn [ "x86_64-linux" "i686-linux" ] ./initrd-network-openvpn {};
Expand Down
23 changes: 15 additions & 8 deletions nixos/tests/incus/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
system ? builtins.currentSystem,
config ? { },
pkgs ? import ../../.. { inherit system config; },
lts ? true,
...
}:
Expand All @@ -7,36 +10,40 @@ let
in
{
all = incusTest {
inherit lts;
inherit lts pkgs system;
allTests = true;
};

container = incusTest {
inherit lts;
inherit lts pkgs system;
instanceContainer = true;
};

lvm = incusTest {
inherit lts;
inherit lts pkgs system;
storageLvm = true;
};

lxd-to-incus = import ./lxd-to-incus.nix { };
lxd-to-incus = import ./lxd-to-incus.nix {
inherit lts pkgs system;
};

openvswitch = incusTest {
inherit lts;
inherit lts pkgs system;
networkOvs = true;
};

ui = import ./ui.nix { };
ui = import ./ui.nix {
inherit lts pkgs system;
};

virtual-machine = incusTest {
inherit lts;
inherit lts pkgs system;
instanceVm = true;
};

zfs = incusTest {
inherit lts;
inherit lts pkgs system;
storageLvm = true;
};
}
2 changes: 1 addition & 1 deletion nixos/tests/incus/incus-tests.nix
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ import ../make-test-python.nix (
machine.succeed("incus storage volume show lvm_pool test_fs")
machine.succeed("incus storage volume show lvm_pool test_vol")
machine.succeed("incus create lvm1 --empty --storage zfs_pool")
machine.succeed("incus create lvm1 --empty --storage lvm_pool")
machine.succeed("incus list lvm1")
'';
}
Expand Down
6 changes: 3 additions & 3 deletions nixos/tests/incus/lxd-to-incus.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ../make-test-python.nix (
{
pkgs,
lib,
incus ? pkgs.incus-lts,
lts ? true,
...
}:

Expand All @@ -21,7 +21,7 @@ import ../make-test-python.nix (
};

nodes.machine =
{ lib, ... }:
{ ... }:
{
virtualisation = {
diskSize = 6144;
Expand Down Expand Up @@ -72,7 +72,7 @@ import ../make-test-python.nix (

incus = {
enable = true;
package = incus;
package = if lts then pkgs.incus-lts else pkgs.incus;
};
};
networking.nftables.enable = true;
Expand Down
4 changes: 2 additions & 2 deletions nixos/tests/incus/ui.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import ../make-test-python.nix (
{
pkgs,
lib,
incus ? pkgs.incus-lts,
lts ? true,
...
}:
{
Expand All @@ -18,7 +18,7 @@ import ../make-test-python.nix (
virtualisation = {
incus = {
enable = true;
package = incus;
package = if lts then pkgs.incus-lts else pkgs.incus;
};
incus.ui.enable = true;
};
Expand Down
6 changes: 3 additions & 3 deletions pkgs/by-name/in/incus/lts.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ./generic.nix {
hash = "sha256-roPBHqy5toYF0X9mATl6QYb5GGlgPoGZYOC9vKpca88=";
version = "6.0.2";
vendorHash = "sha256-TP1NaUpsHF54mWQDcHS4uabfRJWu3k51ANNPdA4k1Go=";
hash = "sha256-+W4imWem5iQ6nPVcoObc4COFxQVED0ppVd/YC+Nqtgw=";
version = "6.0.3";
vendorHash = "sha256-ZUtWzbAjHij95khYx8lWYEpA8ITlMtKpObG5Vl7aE90=";
patches = [
# qemu 9.1 compat, remove when added to LTS
./572afb06f66f83ca95efa1b9386fceeaa1c9e11b.patch
Expand Down

0 comments on commit ae6dd82

Please sign in to comment.