From b0469337bd8eb3d8e325e82640ac855731975000 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 12 Nov 2026 02:35:25 +0000 Subject: tests: deploy an older commit first in the git scenarios The git scenarios deployed only the commit a clone checks out anyway, so populate never fetched, reset, or updated submodules in a full clone, and fetchAlways made no observable difference. They deploy HEAD's parent first now. --- tests/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/default.nix') diff --git a/tests/default.nix b/tests/default.nix index 4d0e256..ca409b3 100644 --- a/tests/default.nix +++ b/tests/default.nix @@ -5,9 +5,10 @@ { pkgs ? import ../pkgs {} }: let - # HEAD of /fixtures/gitsrc, which fixtures.sh creates deterministically. - # fixtures.sh fails if it differs, naming the actual one. + # HEAD of /fixtures/gitsrc, which fixtures.sh creates deterministically, + # and its parent. fixtures.sh fails if HEAD differs, naming the actual one. gitHead = "e42d44ef9cdb76ba5a84dff4c89c38222703bf0c"; + gitFirst = "8d47013fa0888948cf0ffcc4e3c69a7b5f180562"; scenarios = import ./scenarios.nix { inherit (pkgs) lib; @@ -18,7 +19,7 @@ let gitUrl = "git://deployer/gitsrc.git"; remoteHost = "target"; agePath = "${pkgs.age}/bin/age"; - inherit gitHead; + inherit gitHead gitFirst; }; in builtins.mapAttrs -- cgit v1.3.1