nixosTests.pdfding: fix on aarch64-linux

Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
This commit is contained in:
phanirithvij
2026-07-10 11:26:51 +05:30
parent 656f072b88
commit 543ba03fed
3 changed files with 26 additions and 0 deletions
+6
View File
@@ -17,6 +17,11 @@
secretKeyFile = pkgs.writeText "secretKeyFile" "test123";
};
# NOTE: on aarch64-linux github actions runer due to lack of kvm, we need to delay pdfding start and give it more time to finish
systemd.services.pdfding.wantedBy = lib.mkIf pkgs.stdenv.hostPlatform.isAarch64 (lib.mkForce [ ]);
systemd.services.pdfding.serviceConfig.TimeoutStartSec =
lib.mkIf pkgs.stdenv.hostPlatform.isAarch64 "900";
environment.systemPackages = with pkgs; [
sqlite
];
@@ -60,6 +65,7 @@
# create admin
machine.wait_for_unit("multi-user.target")
machine.succeed("systemctl start pdfding.service")
machine.wait_for_open_port(${toString port})
machine.succeed("DJANGO_SUPERUSER_PASSWORD=admin pdfding-manage createsuperuser --no-input --username admin --email admin@localhost")
+10
View File
@@ -22,6 +22,14 @@
installTestHelpers = true;
};
# NOTE: on aarch64-linux github actions runer due to lack of kvm, we need to delay pdfding start and give it more time to finish
systemd.services.pdfding.wantedBy = lib.mkIf pkgs.stdenv.hostPlatform.isAarch64 (lib.mkForce [ ]);
systemd.services.pdfding.serviceConfig.TimeoutStartSec =
lib.mkIf pkgs.stdenv.hostPlatform.isAarch64 "900";
systemd.services.pdfding-background.wantedBy = lib.mkIf pkgs.stdenv.hostPlatform.isAarch64 (
lib.mkForce [ ]
);
environment.systemPackages = [
config.services.postgresql.finalPackage
];
@@ -46,6 +54,8 @@
# create admin
machine.wait_for_unit("multi-user.target")
machine.succeed("systemctl start pdfding.service")
machine.succeed("systemctl start pdfding-background.service")
machine.wait_for_open_port(${toString port})
machine.succeed("DJANGO_SUPERUSER_PASSWORD=admin pdfding-manage createsuperuser --no-input --username admin --email admin@localhost")
@@ -37,6 +37,14 @@ in
installTestHelpers = true;
};
# NOTE: on aarch64-linux github actions runer due to lack of kvm, we need to delay pdfding start and give it more time to finish
systemd.services.pdfding.wantedBy = lib.mkIf pkgs.stdenv.hostPlatform.isAarch64 (lib.mkForce [ ]);
systemd.services.pdfding.serviceConfig.TimeoutStartSec =
lib.mkIf pkgs.stdenv.hostPlatform.isAarch64 "900";
systemd.services.pdfding-background.wantedBy = lib.mkIf pkgs.stdenv.hostPlatform.isAarch64 (
lib.mkForce [ ]
);
# Setup a local garage service for the backup feature
# taken from garage nixosTest
services.garage = {
@@ -113,6 +121,8 @@ in
# create admin
machine.wait_for_unit("multi-user.target")
machine.succeed("systemctl start pdfding.service")
machine.succeed("systemctl start pdfding-background.service")
machine.wait_for_open_port(${toString port})
machine.succeed("DJANGO_SUPERUSER_PASSWORD=admin pdfding-manage createsuperuser --no-input --username admin --email admin@localhost")