From 72bd24702bd495a7c5ed4bfeb4a8d33c2a28dde4 Mon Sep 17 00:00:00 2001 From: ckie Date: Wed, 25 Jan 2023 16:45:34 +0200 Subject: [PATCH] step-ca: fix flaky test parallelism step-ca seems to run some tests using the global `localhost` interface inside the build sandbox, and on big x86_64-linux machines we've observed they occasionally fail. This restricts the tests to one core. https://hydra.nixos.org/build/206729862 --- pkgs/tools/security/step-ca/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/security/step-ca/default.nix b/pkgs/tools/security/step-ca/default.nix index d5d84909f772..8a6cc97ff15d 100644 --- a/pkgs/tools/security/step-ca/default.nix +++ b/pkgs/tools/security/step-ca/default.nix @@ -46,6 +46,9 @@ buildGoModule rec { # Tests start http servers which need to bind to local addresses: # panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: operation not permitted __darwinAllowLocalNetworking = true; + # Tests need to run in a reproducible order, otherwise they run unreliably on + # (at least) x86_64-linux. + checkFlags = [ "-p 1" ]; passthru.tests.step-ca = nixosTests.step-ca;