forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Networking stress tests moved out of Hosted pool (dotnet#35011)
HttpStress and SslStress tests moved off hosted pool to different queues. Note: HttpStress runs are failing but it's actual test code or prod code issue which will be investigated. Infrastructure-wise everything looks good now. Fixes dotnet#34780
- Loading branch information
Showing
13 changed files
with
315 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,6 +61,7 @@ | |
**/*.obj | ||
**/*.pch | ||
**/*.pdb | ||
!**/_.pdb | ||
**/*.pgc | ||
**/*.pgd | ||
**/*.rsp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#!/usr/bin/env bash | ||
# Builds libraries and produces a dotnet sdk docker image | ||
# that contains the current bits in its shared framework folder. | ||
|
||
# Stop script if unbound variable found (use ${var:-} if intentional) | ||
set -u | ||
|
||
# Stop script if command returns non-zero exit code. | ||
# Prevents hidden errors caused by missing error code propagation. | ||
set -e | ||
|
||
source="${BASH_SOURCE[0]}" | ||
|
||
# resolve $source until the file is no longer a symlink | ||
while [[ -h "$source" ]]; do | ||
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )" | ||
source="$(readlink "$source")" | ||
# if $source was a relative symlink, we need to resolve it relative to the path where the | ||
# symlink file was located | ||
[[ $source != /* ]] && source="$scriptroot/$source" | ||
done | ||
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )" | ||
|
||
imagename="dotnet-sdk-libs-current" | ||
configuration="Release" | ||
privateaspnetcore=0 | ||
|
||
while [[ $# > 0 ]]; do | ||
opt="$(echo "${1/#--/-}" | awk '{print tolower($0)}')" | ||
case "$opt" in | ||
-imagename|-t) | ||
imagename=$2 | ||
shift 2 | ||
;; | ||
-configuration|-c) | ||
configuration=$2 | ||
shift 2 | ||
;; | ||
-privateaspnetcore|-pa) | ||
privateaspnetcore=1 | ||
shift 1 | ||
;; | ||
*) | ||
shift 1 | ||
;; | ||
esac | ||
done | ||
|
||
repo_root=$(git rev-parse --show-toplevel) | ||
docker_file="$scriptroot/libraries-sdk.linux.Dockerfile" | ||
|
||
if [[ $privateaspnetcore -eq 1 ]]; then | ||
docker_file="$scriptroot/libraries-sdk-aspnetcore.linux.Dockerfile" | ||
fi | ||
|
||
docker build --tag $imagename \ | ||
--build-arg CONFIGURATION=$configuration \ | ||
--file $docker_file \ | ||
$repo_root | ||
|
||
exit $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 101 additions & 0 deletions
101
src/libraries/System.Net.Http/tests/StressTests/HttpStress/run-docker-compose.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
#!/usr/bin/env bash | ||
# Runs the stress test using docker-compose | ||
|
||
# Stop script if unbound variable found (use ${var:-} if intentional) | ||
set -u | ||
|
||
# Stop script if command returns non-zero exit code. | ||
# Prevents hidden errors caused by missing error code propagation. | ||
set -e | ||
|
||
source="${BASH_SOURCE[0]}" | ||
|
||
# resolve $source until the file is no longer a symlink | ||
while [[ -h "$source" ]]; do | ||
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )" | ||
source="$(readlink "$source")" | ||
# if $source was a relative symlink, we need to resolve it relative to the path where the | ||
# symlink file was located | ||
[[ $source != /* ]] && source="$scriptroot/$source" | ||
done | ||
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )" | ||
|
||
imagename="dotnet-sdk-libs-current" | ||
configuration="Release" | ||
privateaspnetcore=0 | ||
buildcurrentlibraries=0 | ||
buildonly=0 | ||
clientstressargs="" | ||
serverstressargs="" | ||
|
||
while [[ $# > 0 ]]; do | ||
opt="$(echo "${1/#--/-}" | awk '{print tolower($0)}')" | ||
case "$opt" in | ||
-sdkimagename|-t) | ||
imagename=$2 | ||
shift 2 | ||
;; | ||
-configuration|-c) | ||
configuration=$2 | ||
shift 2 | ||
;; | ||
-privateaspnetcore|-pa) | ||
privateaspnetcore=1 | ||
shift 1 | ||
;; | ||
-buildcurrentlibraries|-b) | ||
buildcurrentlibraries=1 | ||
shift 1 | ||
;; | ||
-buildonly|-o) | ||
buildonly=1 | ||
shift 1 | ||
;; | ||
-clientstressargs) | ||
clientstressargs=$2 | ||
shift 2 | ||
;; | ||
-serverstressargs) | ||
serverstressargs=$2 | ||
shift 2 | ||
;; | ||
*) | ||
shift 1 | ||
;; | ||
esac | ||
done | ||
|
||
repo_root=$(git rev-parse --show-toplevel) | ||
|
||
if [[ buildcurrentlibraries -eq 1 ]]; then | ||
libraries_args=" -t $imagename -c $configuration" | ||
if [[ $privateaspnetcore -eq 1 ]]; then | ||
libraries_args="$libraries_args -pa" | ||
fi | ||
|
||
if ! $repo_root/eng/docker/build-docker-sdk.sh $libraries_args; then | ||
exit 1 | ||
fi | ||
|
||
elif [[ $privateaspnetcore -eq 1 ]]; then | ||
echo "Using a private Asp.Net Core package (-pa) requires using privately built libraries. Please, enable it with -b switch." | ||
exit 1 | ||
fi | ||
|
||
build_args="" | ||
if [[ "$imagename" != "" ]]; then | ||
build_args=" --build-arg SDK_BASE_IMAGE=$imagename" | ||
fi | ||
|
||
compose_file="$scriptroot/docker-compose.yml" | ||
|
||
if ! docker-compose --file "$compose_file" build $build_args; then | ||
exit $? | ||
fi | ||
|
||
if [[ $buildonly -eq 0 ]]; then | ||
export HTTPSTRESS_CLIENT_ARGS=$clientstressargs | ||
export HTTPSTRESS_SERVER_ARGS=$serverstressargs | ||
docker-compose --file "$compose_file" up --abort-on-container-exit | ||
exit $? | ||
fi |
Oops, something went wrong.