From 3533884ef2239c5cbd640824dc198e2da4ae813d Mon Sep 17 00:00:00 2001 From: FliegendeWurst Date: Wed, 21 May 2025 21:39:21 +0200 Subject: [PATCH] rustup: disable parallel testing Caused issues in: - download::tests::reqwest::socks_proxy_request - download::tests::curl::callback_gets_all_data_as_if_the_download_happened_all_at_once - download::tests::reqwest::callback_gets_all_data_as_if_the_download_happened_all_at_once --- pkgs/development/tools/rust/rustup/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/tools/rust/rustup/default.nix b/pkgs/development/tools/rust/rustup/default.nix index f683e5021415..911a956b9c44 100644 --- a/pkgs/development/tools/rust/rustup/default.nix +++ b/pkgs/development/tools/rust/rustup/default.nix @@ -79,6 +79,10 @@ rustPlatform.buildRustPackage (finalAttrs: { # Random tests fail nondeterministically on macOS. # TODO: Investigate this. doCheck = !stdenv.hostPlatform.isDarwin; + # Random failures when running tests in parallel. + preCheck = '' + export NIX_BUILD_CORES=1 + ''; # skip failing tests checkFlags = [