diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-11 15:59:00 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-11 15:59:00 +0000 |
| commit | 59f429cb18f218993a5052e4c36199fa96a82d2d (patch) | |
| tree | e0e96333b9990d365d8a1c316a6adbd98653f649 /nix | |
| parent | a1d649f643a10c653c8b20dd1cc53df89b4335be (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 'nix')
| -rw-r--r-- | nix/module.nix | 5 |
1 files changed, 5 insertions, 0 deletions
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 | ||