Skip to content

Commit 5935656

Browse files
committed
fix: use ulimit instead of DOTNET_DefaultStackSize on macOS CI to prevent stack overflow
1 parent 4087f78 commit 5935656

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

build.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export DOTNET_CLI_TELEMETRY_OPTOUT=1
2525
export DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER=0
2626
export DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX=2
2727

28-
DOTNET_INSTALLED_VERSION=$(dotnet --version 2>&1)
2928

3029
echo "DOTNET_DefaultStackSize: $DOTNET_DefaultStackSize"
3130

templates/build-template-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- script: bash scripts/install_protobuf.sh
2626
- script: bash scripts/download_binary.sh
2727
- script: |
28-
export DOTNET_DefaultStackSize=1572864
28+
ulimit -s 8192
2929
bash build.sh --target=Test-with-Codecov-N --parts=${{ parameters.parts }} --number=${{ parameters.n }} --codecoverage=${{ parameters.codecoverage }}
3030
displayName: 'Build and Test'
3131
- task: PublishTestResults@2

0 commit comments

Comments
 (0)