ncps: disable integration tests

The integration tests, albeit quite useful, can be flaky on slow and/or
busy systems (since they rely on wall clock to pass). For that reason, I
will disable them in nixpkgs and leave upstream to deal with testing it.
This commit is contained in:
Wael Nasreddine
2026-03-02 19:42:42 -08:00
parent 17cf14df82
commit 51666aeec3
-31
View File
@@ -6,14 +6,9 @@
jq,
lib,
makeWrapper,
mariadb,
minio,
minio-client,
nix-update-script,
nixosTests,
postgresql,
python3,
redis,
writeShellScriptBin,
xz,
}:
@@ -44,16 +39,7 @@ buildGoModule (finalAttrs: {
nativeBuildInputs = [
makeWrapper # used for wrapping the binary so it can always find the xz binary
curl # used for checking MinIO health check
dbmate # used for testing
jq # used for testing by the init-minio
mariadb # MySQL/MariaDB for integration tests
minio # S3-compatible storage for integration tests
minio-client # mc CLI for MinIO setup
postgresql # PostgreSQL for integration tests
python3 # used for generating the ports
redis # Redis for distributed locking integration tests
];
postInstall = ''
@@ -78,23 +64,6 @@ buildGoModule (finalAttrs: {
checkFlags = [ "-race" ];
# pre and post checks
preCheck = ''
# Set up cleanup trap to ensure background processes are killed even if tests fail
cleanup() {
source $src/nix/packages/ncps/post-check-minio.sh
source $src/nix/packages/ncps/post-check-mysql.sh
source $src/nix/packages/ncps/post-check-postgres.sh
source $src/nix/packages/ncps/post-check-redis.sh
}
trap cleanup EXIT
source $src/nix/packages/ncps/pre-check-minio.sh
source $src/nix/packages/ncps/pre-check-mysql.sh
source $src/nix/packages/ncps/pre-check-postgres.sh
source $src/nix/packages/ncps/pre-check-redis.sh
'';
passthru = {
dbmate-wrapper = buildGoModule {
pname = "ncps-dbmate-wrapper";