From ede1b6cb692d8a9167feedeae207c0a186509a03 Mon Sep 17 00:00:00 2001 From: Elinor Fung Date: Tue, 15 Feb 2022 14:20:07 -0800 Subject: [PATCH] Disable core dumps when running libraries tests on macOS --- eng/testing/RunnerTemplate.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/eng/testing/RunnerTemplate.sh b/eng/testing/RunnerTemplate.sh index bfaa743ef6f414..c0f2362601fe3b 100644 --- a/eng/testing/RunnerTemplate.sh +++ b/eng/testing/RunnerTemplate.sh @@ -132,7 +132,13 @@ if [[ "$(uname -s)" == "Darwin" ]]; then # files already in /cores/ at this point. This is being done to prevent # inadvertently flooding the CI machines with dumps. if [[ ! -d "/cores" || ! "$(ls -A /cores)" ]]; then - ulimit -c unlimited + # Disabling core dumps on macOS. System dumps are large (even for very small + # programs) and not configurable. As a result, if a single PR build causes a + # lot of tests to crash, we can take out the entire queue. + # See discussions in: + # https://github.com/dotnet/core-eng/issues/15333 + # https://github.com/dotnet/core-eng/issues/15597 + ulimit -c 0 fi elif [[ "$(uname -s)" == "Linux" ]]; then