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.
This commit is contained in:
DanConwayDev
2026-01-11 15:59:00 +00:00
parent a1d649f643
commit 59f429cb18
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -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::"
];
};
})) // {
+5
View File
@@ -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::"
];
};