From 59f429cb18f218993a5052e4c36199fa96a82d2d Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Sun, 11 Jan 2026 15:59:00 +0000 Subject: 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. --- flake.nix | 5 +++++ nix/module.nix | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/flake.nix b/flake.nix index fc0d27a..cf4f328 100644 --- a/flake.nix +++ b/flake.nix @@ -51,10 +51,15 @@ buildInputs = with pkgs; [ openssl ]; # Skip tests that require git in PATH (sandboxing issue) + # These tests run fine in dev environment and CI checkFlags = [ + # Unit tests that spawn git subprocesses "--skip=git::subprocess::tests::" "--skip=git::tests::" "--skip=purgatory::helpers::tests::" + # Integration tests that create git repos + "--skip=common::git_server::" + "--skip=common::purgatory_helpers::" ]; }; })) // { 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 buildInputs = with pkgs; [ openssl ]; # Skip tests that require git in PATH (sandboxing issue) + # These tests run fine in dev environment and CI checkFlags = [ + # Unit tests that spawn git subprocesses "--skip=git::subprocess::tests::" "--skip=git::tests::" "--skip=purgatory::helpers::tests::" + # Integration tests that create git repos + "--skip=common::git_server::" + "--skip=common::purgatory_helpers::" ]; }; -- cgit v1.2.3