Skip to content

Commit 00de1f7

Browse files
authored
[release/8.0] Use latest .NET version in HttpStress and SslStress runs (#104711)
* Use latest .NET version in HttpStress runs * Revert sdk image changes * Apply to sslstress as well
1 parent 3d0baeb commit 00de1f7

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

eng/docker/libraries-sdk.linux.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ FROM $SDK_BASE_IMAGE as target
1414

1515
ARG VERSION=8.0
1616
ARG CONFIGURATION=Release
17-
ENV _DOTNET_INSTALL_CHANNEL="$VERSION.1xx"
17+
ENV _DOTNET_INSTALL_CHANNEL=$VERSION
1818

1919
# Install latest daily SDK:
2020
RUN wget https://dot.net/v1/dotnet-install.sh
@@ -52,4 +52,4 @@ COPY --from=corefxbuild \
5252
ENV _ASPNETCORE_SOURCE="/usr/share/dotnet/shared/Microsoft.AspNetCore.App/$VERSION*"
5353
ENV _ASPNETCORE_DEST="/live-runtime-artifacts/testhost/net$VERSION-linux-$CONFIGURATION-x64/shared/Microsoft.AspNetCore.App"
5454
RUN mkdir -p $_ASPNETCORE_DEST
55-
RUN cp -r $_ASPNETCORE_SOURCE $_ASPNETCORE_DEST
55+
RUN cp -r $_ASPNETCORE_SOURCE $_ASPNETCORE_DEST

eng/docker/libraries-sdk.windows.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ FROM $SDK_BASE_IMAGE as target
66
SHELL ["pwsh", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
77

88
ARG VERSION=8.0
9-
ENV _DOTNET_INSTALL_CHANNEL="$VERSION.1xx"
9+
ENV _DOTNET_INSTALL_CHANNEL=$VERSION
1010
ARG CONFIGURATION=Release
1111

1212
USER ContainerAdministrator
@@ -22,4 +22,4 @@ COPY . /live-runtime-artifacts
2222
ENV _ASPNETCORE_SOURCE="C:/Program Files/dotnet/shared/Microsoft.AspNetCore.App/$VERSION*"
2323
ENV _ASPNETCORE_DEST="C:/live-runtime-artifacts/testhost/net$VERSION-windows-$CONFIGURATION-x64/shared/Microsoft.AspNetCore.App"
2424
RUN & New-Item -ItemType Directory -Path $env:_ASPNETCORE_DEST
25-
RUN Copy-Item -Recurse -Path $env:_ASPNETCORE_SOURCE -Destination $env:_ASPNETCORE_DEST
25+
RUN Copy-Item -Recurse -Path $env:_ASPNETCORE_SOURCE -Destination $env:_ASPNETCORE_DEST

src/libraries/System.Net.Http/tests/StressTests/HttpStress/build-local.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if (-not (Test-Path -Path $DailyDotnetRoot)) {
3434
Write-Host "Downloading daily SDK to: $DailyDotnetRoot"
3535
New-Item -ItemType Directory -Path $DailyDotnetRoot
3636
Invoke-WebRequest -Uri https://dot.net/v1/dotnet-install.ps1 -OutFile "$DailyDotnetRoot\dotnet-install.ps1"
37-
& "$DailyDotnetRoot\dotnet-install.ps1" -NoPath -Channel "$Version.1xx" -Quality daily -InstallDir $DailyDotnetRoot
37+
& "$DailyDotnetRoot\dotnet-install.ps1" -NoPath -Channel $Version -Quality daily -InstallDir $DailyDotnetRoot
3838
} else {
3939
Write-Host "Daily SDK found in $DailyDotnetRoot"
4040
}

src/libraries/System.Net.Http/tests/StressTests/HttpStress/build-local.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if [[ ! -d $daily_dotnet_root ]]; then
3737
echo "Downloading daily SDK to $daily_dotnet_root"
3838
mkdir $daily_dotnet_root
3939
wget https://dot.net/v1/dotnet-install.sh -O $daily_dotnet_root/dotnet-install.sh
40-
bash $daily_dotnet_root/dotnet-install.sh --no-path --channel $version.1xx --quality daily --install-dir $daily_dotnet_root
40+
bash $daily_dotnet_root/dotnet-install.sh --no-path --channel $version --quality daily --install-dir $daily_dotnet_root
4141
else
4242
echo "Daily SDK found in $daily_dotnet_root"
4343
fi
@@ -64,4 +64,4 @@ if [[ ! -f $runscript ]]; then
6464
fi
6565

6666
echo "To run tests type:"
67-
echo "$runscript [stress test args]"
67+
echo "$runscript [stress test args]"

src/libraries/System.Net.Security/tests/StressTests/SslStress/Build-Local.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ if (-not (Test-Path -Path $DailyDotnetRoot)) {
3838
Write-Host "Downloading daily SDK to: $DailyDotnetRoot"
3939
New-Item -ItemType Directory -Path $DailyDotnetRoot
4040
Invoke-WebRequest -Uri https://dot.net/v1/dotnet-install.ps1 -OutFile "$DailyDotnetRoot\dotnet-install.ps1"
41-
& "$DailyDotnetRoot\dotnet-install.ps1" -NoPath -Channel "$Version.1xx" -Quality daily -InstallDir $DailyDotnetRoot
41+
& "$DailyDotnetRoot\dotnet-install.ps1" -NoPath -Channel $Version -Quality daily -InstallDir $DailyDotnetRoot
4242
} else {
4343
Write-Host "Daily SDK found in $DailyDotnetRoot"
4444
}

src/libraries/System.Net.Security/tests/StressTests/SslStress/build-local.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ if [[ ! -d $daily_dotnet_root ]]; then
3939
echo "Downloading daily SDK to $daily_dotnet_root"
4040
mkdir $daily_dotnet_root
4141
wget https://dot.net/v1/dotnet-install.sh -O $daily_dotnet_root/dotnet-install.sh
42-
bash $daily_dotnet_root/dotnet-install.sh --no-path --channel $version.1xx --quality daily --install-dir $daily_dotnet_root
42+
bash $daily_dotnet_root/dotnet-install.sh --no-path --channel $version --quality daily --install-dir $daily_dotnet_root
4343
else
4444
echo "Daily SDK found in $daily_dotnet_root"
4545
fi
@@ -59,4 +59,4 @@ if [[ ! -f $runscript ]]; then
5959
fi
6060

6161
echo "To run tests type:"
62-
echo "$runscript [stress test args]"
62+
echo "$runscript [stress test args]"

0 commit comments

Comments
 (0)