upleb.uk

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

summaryrefslogtreecommitdiff
path: root/flake.nix
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 /flake.nix
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.
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix5
1 files changed, 5 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 })) // {