From 88c80d1c7b3e21b9a66f4aeca0e60d5d6ebe1cd2 Mon Sep 17 00:00:00 2001 From: ManickaP Date: Mon, 28 Mar 2022 14:07:53 +0200 Subject: [PATCH] Fixed dump path in HTTP stress test --- eng/pipelines/libraries/stress/http.yml | 5 +++++ .../System.Net.Http/tests/StressTests/HttpStress/Dockerfile | 2 +- .../tests/StressTests/HttpStress/HttpStress.csproj | 1 - .../tests/StressTests/HttpStress/windows.Dockerfile | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/eng/pipelines/libraries/stress/http.yml b/eng/pipelines/libraries/stress/http.yml index 3561011fa6292a..0d76b4e09ec8b0 100644 --- a/eng/pipelines/libraries/stress/http.yml +++ b/eng/pipelines/libraries/stress/http.yml @@ -81,6 +81,11 @@ jobs: displayName: Run HttpStress - HTTP 1.1 condition: and(eq(variables['buildRuntime.succeeded'], 'true'), eq(variables['buildStress.succeeded'], 'true')) + - bash: | + sudo chown -R $(id -u):$(id -g) $(Build.ArtifactStagingDirectory)/dumps + displayName: Own shared dumps and files + condition: failed() + - publish: $(Build.ArtifactStagingDirectory)/dumps artifact: DumpsLinux condition: failed() diff --git a/src/libraries/System.Net.Http/tests/StressTests/HttpStress/Dockerfile b/src/libraries/System.Net.Http/tests/StressTests/HttpStress/Dockerfile index 55170877a1c025..5a929e376485f4 100644 --- a/src/libraries/System.Net.Http/tests/StressTests/HttpStress/Dockerfile +++ b/src/libraries/System.Net.Http/tests/StressTests/HttpStress/Dockerfile @@ -24,7 +24,7 @@ RUN dotnet build -c $CONFIGURATION \ # Enable dump collection ENV COMPlus_DbgEnableMiniDump=1 ENV COMPlus_DbgMiniDumpType=MiniDumpWithFullMemory -ENV COMPlus_DbgMiniDumpName="/share/coredump.%p" +ENV COMPlus_DbgMiniDumpName="/dumps-share/coredump.%p" EXPOSE 5001 diff --git a/src/libraries/System.Net.Http/tests/StressTests/HttpStress/HttpStress.csproj b/src/libraries/System.Net.Http/tests/StressTests/HttpStress/HttpStress.csproj index 954019ae5b3a78..24d9a7d29c1cfa 100644 --- a/src/libraries/System.Net.Http/tests/StressTests/HttpStress/HttpStress.csproj +++ b/src/libraries/System.Net.Http/tests/StressTests/HttpStress/HttpStress.csproj @@ -18,7 +18,6 @@ - diff --git a/src/libraries/System.Net.Http/tests/StressTests/HttpStress/windows.Dockerfile b/src/libraries/System.Net.Http/tests/StressTests/HttpStress/windows.Dockerfile index 2876854606fda9..946baf32b80be7 100644 --- a/src/libraries/System.Net.Http/tests/StressTests/HttpStress/windows.Dockerfile +++ b/src/libraries/System.Net.Http/tests/StressTests/HttpStress/windows.Dockerfile @@ -19,7 +19,7 @@ RUN dotnet build -c $env:CONFIGURATION ` # Enable dump collection ENV COMPlus_DbgEnableMiniDump=1 ENV COMPlus_DbgMiniDumpType=MiniDumpWithFullMemory -ENV COMPlus_DbgMiniDumpName="C:/share/coredump.%p" +ENV COMPlus_DbgMiniDumpName="C:/dumps-share/coredump.%p" EXPOSE 5001