From c65b4ec1cf552b03aa425e386e4c6b4b57579845 Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Fri, 5 May 2023 08:48:26 -0400 Subject: [PATCH] python310Packages.debugpy: increase timeouts on tests --- pkgs/development/python-modules/debugpy/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/debugpy/default.nix b/pkgs/development/python-modules/debugpy/default.nix index 583b8a5d5fd5..58bdec7ebc61 100644 --- a/pkgs/development/python-modules/debugpy/default.nix +++ b/pkgs/development/python-modules/debugpy/default.nix @@ -90,7 +90,13 @@ buildPythonPackage rec { requests ]; - preCheck = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) '' + preCheck = '' + # Scale default timeouts by a factor of 4 to avoid flaky builds + # https://github.com/microsoft/debugpy/pull/1286 if merged would + # allow us to disable the timeouts altogether + export DEBUGPY_PROCESS_SPAWN_TIMEOUT=60 + export DEBUGPY_PROCESS_EXIT_TIMEOUT=20 + '' + lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) '' # https://github.com/python/cpython/issues/74570#issuecomment-1093748531 export no_proxy='*'; '';