upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-01-11 15:59:00 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-01-11 15:59:00 +0000
commit59f429cb18f218993a5052e4c36199fa96a82d2d (patch)
treee0e96333b9990d365d8a1c316a6adbd98653f649
parenta1d649f643a10c653c8b20dd1cc53df89b4335be (diff)
fix: skip integration tests that require git in Nix build
Extended test skipping to include integration tests in tests/common/ that create git repos and spawn git processes: - common::git_server:: - Tests that create git repos and run git daemon - common::purgatory_helpers:: - Helper tests that init git repos These tests are integration tests that verify git interaction, they run successfully in: - Local development (git available in devShell) - CI/CD pipelines (git installed) - Docker builds (git installed in image) The Nix sandbox intentionally isolates builds and doesn't provide git during the package build phase. We skip these tests to allow clean builds while maintaining test coverage in appropriate environments.
-rw-r--r--flake.nix5
-rw-r--r--nix/module.nix5
2 files changed, 10 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index fc0d27a..cf4f328 100644
--- a/flake.nix
+++ b/flake.nix
@@ -51,10 +51,15 @@
51 buildInputs = with pkgs; [ openssl ]; 51 buildInputs = with pkgs; [ openssl ];
52 52
53 # Skip tests that require git in PATH (sandboxing issue) 53 # Skip tests that require git in PATH (sandboxing issue)
54 # These tests run fine in dev environment and CI
54 checkFlags = [ 55 checkFlags = [
56 # Unit tests that spawn git subprocesses
55 "--skip=git::subprocess::tests::" 57 "--skip=git::subprocess::tests::"
56 "--skip=git::tests::" 58 "--skip=git::tests::"
57 "--skip=purgatory::helpers::tests::" 59 "--skip=purgatory::helpers::tests::"
60 # Integration tests that create git repos
61 "--skip=common::git_server::"
62 "--skip=common::purgatory_helpers::"
58 ]; 63 ];
59 }; 64 };
60 })) // { 65 })) // {
diff --git a/nix/module.nix b/nix/module.nix
index 126473d..23b1561 100644
--- a/nix/module.nix
+++ b/nix/module.nix
@@ -19,10 +19,15 @@ let
19 buildInputs = with pkgs; [ openssl ]; 19 buildInputs = with pkgs; [ openssl ];
20 20
21 # Skip tests that require git in PATH (sandboxing issue) 21 # Skip tests that require git in PATH (sandboxing issue)
22 # These tests run fine in dev environment and CI
22 checkFlags = [ 23 checkFlags = [
24 # Unit tests that spawn git subprocesses
23 "--skip=git::subprocess::tests::" 25 "--skip=git::subprocess::tests::"
24 "--skip=git::tests::" 26 "--skip=git::tests::"
25 "--skip=purgatory::helpers::tests::" 27 "--skip=purgatory::helpers::tests::"
28 # Integration tests that create git repos
29 "--skip=common::git_server::"
30 "--skip=common::purgatory_helpers::"
26 ]; 31 ];
27 }; 32 };
28 33