diff options
Diffstat (limited to 'eng/pipelines')
-rw-r--r-- | eng/pipelines/libraries/stress/http-linux.yml | 47 | ||||
-rw-r--r-- | eng/pipelines/libraries/stress/http-windows.yml | 62 | ||||
-rw-r--r-- | eng/pipelines/libraries/stress/http.yml | 72 | ||||
-rw-r--r-- | eng/pipelines/libraries/stress/ssl-linux.yml | 51 | ||||
-rw-r--r-- | eng/pipelines/libraries/stress/ssl-windows.yml | 66 | ||||
-rw-r--r-- | eng/pipelines/libraries/stress/ssl.yml | 72 |
6 files changed, 144 insertions, 226 deletions
diff --git a/eng/pipelines/libraries/stress/http-linux.yml b/eng/pipelines/libraries/stress/http-linux.yml deleted file mode 100644 index fc55c8fb8af..00000000000 --- a/eng/pipelines/libraries/stress/http-linux.yml +++ /dev/null @@ -1,47 +0,0 @@ -trigger: none - -pr: - branches: - include: - - "*" - -schedules: -- cron: "0 13 * * *" # 1PM UTC => 5 AM PST - displayName: HttpStress nightly run - branches: - include: - - master - -pool: - name: Hosted Ubuntu 1604 - -variables: - - template: ../variables.yml - - name: httpStressProject - value: $(sourcesRoot)/System.Net.Http/tests/StressTests/HttpStress/ - - name: sdkBaseImage - value: sdk-corefx-current - - name: httpStressImage - value: httpstress - -steps: -- checkout: self - clean: true - fetchDepth: 1 - lfs: false - -- bash: | - docker build -t $(sdkBaseImage) --build-arg CONFIGURATION=$(BUILD_CONFIGURATION) --build-arg BUILD_SCRIPT_NAME=$(buildScriptFileName) -f $(HttpStressProject)corefx.Dockerfile . - displayName: Build Libraries - -- bash: | - cd '$(HttpStressProject)' - docker build -t $(httpStressImage) --build-arg SDK_BASE_IMAGE=$(sdkBaseImage) --build-arg CONFIGURATION=$(BUILD_CONFIGURATION) . - displayName: Build HttpStress - -- bash: | - cd '$(HttpStressProject)' - docker-compose up --abort-on-container-exit --no-color - displayName: Run HttpStress - env: - HTTPSTRESS_IMAGE: $(httpStressImage) diff --git a/eng/pipelines/libraries/stress/http-windows.yml b/eng/pipelines/libraries/stress/http-windows.yml deleted file mode 100644 index 41a55137cb6..00000000000 --- a/eng/pipelines/libraries/stress/http-windows.yml +++ /dev/null @@ -1,62 +0,0 @@ -trigger: none - -pr: - branches: - include: - - "*" - -schedules: -- cron: "0 13 * * *" # 1PM UTC => 5 AM PST - displayName: HttpStress nightly run - branches: - include: - - master - -pool: - vmImage: 'windows-latest' - -variables: - - template: ../variables.yml - - name: httpStressProject - value: $(sourcesRoot)/System.Net.Http/tests/StressTests/HttpStress/ - - name: sdkBaseImage - value: sdk-corefx-current - - name: httpStressImage - value: httpstress - -steps: -- checkout: self - clean: true - fetchDepth: 1 - lfs: false - -- powershell: | - .\libraries.cmd -ci -c $(BUILD_CONFIGURATION) - docker build -t $(sdkBaseImage) ` - --build-arg CONFIGURATION=$(BUILD_CONFIGURATION) ` - --build-arg TESTHOST_LOCATION=. ` - -f src/libraries/System.Net.Http/tests/StressTests/HttpStress/corefx.windows.Dockerfile ` - artifacts/bin/testhost - - displayName: Build Libraries - -- powershell: | - cd '$(HttpStressProject)' - docker build -t $(httpStressImage) --build-arg SDK_BASE_IMAGE=$(sdkBaseImage) --build-arg CONFIGURATION=$(BUILD_CONFIGURATION) -f windows.Dockerfile . - displayName: Build HttpStress - -- powershell: | - cd '$(HttpStressProject)' - docker-compose up --abort-on-container-exit --no-color - displayName: Run HttpStress - env: - HTTPSTRESS_IMAGE: $(httpStressImage) - -- task: PublishBuildArtifacts@1 - displayName: Publish Logs - inputs: - PathtoPublish: '$(Build.SourcesDirectory)/artifacts/log/$(BUILD_CONFIGURATION)' - PublishLocation: Container - ArtifactName: 'httpstress_$(Agent.Os)_$(Agent.JobName)' - continueOnError: true - condition: always() diff --git a/eng/pipelines/libraries/stress/http.yml b/eng/pipelines/libraries/stress/http.yml new file mode 100644 index 00000000000..c4916c5beec --- /dev/null +++ b/eng/pipelines/libraries/stress/http.yml @@ -0,0 +1,72 @@ +trigger: none + +pr: + branches: + include: + - "*" + +schedules: +- cron: "0 13 * * *" # 1PM UTC => 5 AM PST + displayName: HttpStress nightly run + branches: + include: + - master + +variables: + - template: ../variables.yml + - name: dockerfilesFolder + value: $(Build.SourcesDirectory)/eng/docker + - name: httpStressProject + value: $(sourcesRoot)/System.Net.Http/tests/StressTests/HttpStress + - name: sdkBaseImage + value: dotnet-sdk-libraries-current + + +jobs: + +- job: linux + displayName: Docker Linux + pool: + name: Hosted Ubuntu 1604 + + steps: + - checkout: self + clean: true + fetchDepth: 5 + + - bash: | + $(dockerfilesFolder)/build-docker-sdk.ps1 -t $(sdkBaseImage) -c $(BUILD_CONFIGURATION) + displayName: Build Libraries + + - bash: | + $(httpStressProject)/run-docker-compose.ps1 -o -c $(BUILD_CONFIGURATION) -t $(sdkBaseImage) + displayName: Build HttpStress + + - bash: | + cd '$(httpStressProject)' + docker-compose up --abort-on-container-exit --no-color + displayName: Run HttpStress + +- job: windows + displayName: Docker Nano Server + pool: + vmImage: 'windows-latest' + + steps: + - checkout: self + clean: true + fetchDepth: 1 + lfs: false + + - pwsh: | + $(dockerfilesFolder)/build-docker-sdk.ps1 -w -t $(sdkBaseImage) -c $(BUILD_CONFIGURATION) + displayName: Build Libraries + + - pwsh: | + $(httpStressProject)/run-docker-compose.ps1 -w -o -c $(BUILD_CONFIGURATION) -t $(sdkBaseImage) + displayName: Build HttpStress + + - pwsh: | + cd '$(httpStressProject)' + docker-compose up --abort-on-container-exit --no-color + displayName: Run HttpStress diff --git a/eng/pipelines/libraries/stress/ssl-linux.yml b/eng/pipelines/libraries/stress/ssl-linux.yml deleted file mode 100644 index a06e6fcb661..00000000000 --- a/eng/pipelines/libraries/stress/ssl-linux.yml +++ /dev/null @@ -1,51 +0,0 @@ -trigger: none - -pr: - branches: - include: - - "*" - -schedules: -- cron: "0 13 * * *" # 1PM UTC => 5 AM PST - displayName: SslStress nightly run - branches: - include: - - master - -pool: - name: Hosted Ubuntu 1604 - -variables: - - template: ../variables.yml - - name: sslStressProject - value: $(sourcesRoot)/System.Net.Security/tests/StressTests/SslStress/ - # Avoid duplication by referencing corefx build infrastructure hosted in HttpStress - # TODO move to eng/ folder. - - name: httpStressProject - value: $(sourcesRoot)/System.Net.Http/tests/StressTests/HttpStress/ - - name: sdkBaseImage - value: sdk-corefx-current - - name: sslStressImage - value: sslstress - -steps: -- checkout: self - clean: true - fetchDepth: 1 - lfs: false - -- bash: | - docker build -t $(sdkBaseImage) --build-arg CONFIGURATION=$(BUILD_CONFIGURATION) --build-arg BUILD_SCRIPT_NAME=$(buildScriptFileName) -f $(httpStressProject)corefx.Dockerfile . - displayName: Build Libraries - -- bash: | - # we need to include the entire src/libraries folder in the build context due to Common/ dependencies - docker build -t $(sslStressImage) --build-arg SDK_BASE_IMAGE=$(sdkBaseImage) --build-arg CONFIGURATION=$(BUILD_CONFIGURATION) -f $(sslStressProject)/Dockerfile src/libraries - displayName: Build SslStress - -- bash: | - cd '$(sslStressProject)' - docker-compose up --abort-on-container-exit --no-color - displayName: Run SslStress - env: - HTTPSTRESS_IMAGE: $(sslStressImage) diff --git a/eng/pipelines/libraries/stress/ssl-windows.yml b/eng/pipelines/libraries/stress/ssl-windows.yml deleted file mode 100644 index a97d99b0bca..00000000000 --- a/eng/pipelines/libraries/stress/ssl-windows.yml +++ /dev/null @@ -1,66 +0,0 @@ -trigger: none - -pr: - branches: - include: - - "*" - -schedules: -- cron: "0 13 * * *" # 1PM UTC => 5 AM PST - displayName: SslStress nightly run - branches: - include: - - master - -pool: - vmImage: 'windows-latest' - -variables: - - template: ../variables.yml - - name: sslStressProject - value: $(sourcesRoot)/System.Net.Security/tests/StressTests/SslStress/ - # Avoid duplication by referencing corefx build infrastructure hosted in HttpStress - # TODO move to eng/ folder. - - name: httpStressProject - value: $(sourcesRoot)/System.Net.Http/tests/StressTests/HttpStress/ - - name: sdkBaseImage - value: sdk-corefx-current - - name: sslStressImage - value: sslstress - -steps: -- checkout: self - clean: true - fetchDepth: 1 - lfs: false - -- powershell: | - .\libraries.cmd -ci -c $(BUILD_CONFIGURATION) - docker build -t $(sdkBaseImage) ` - --build-arg CONFIGURATION=$(BUILD_CONFIGURATION) ` - --build-arg TESTHOST_LOCATION=. ` - -f src/libraries/System.Net.Http/tests/StressTests/HttpStress/corefx.windows.Dockerfile ` - artifacts/bin/testhost - - displayName: Build Libraries - -- powershell: | - # we need to include the entire src/libraries folder in the build context due to Common/ dependencies - docker build -t $(sslStressImage) --build-arg SDK_BASE_IMAGE=$(sdkBaseImage) --build-arg CONFIGURATION=$(BUILD_CONFIGURATION) -f $(sslStressProject)/windows.Dockerfile src/libraries - displayName: Build SslStress - -- powershell: | - cd '$(sslStressProject)' - docker-compose up --abort-on-container-exit --no-color - displayName: Run SslStress - env: - SSLTRESS_IMAGE: $(sslStressImage) - -- task: PublishBuildArtifacts@1 - displayName: Publish Logs - inputs: - PathtoPublish: '$(Build.SourcesDirectory)/artifacts/log/$(BUILD_CONFIGURATION)' - PublishLocation: Container - ArtifactName: 'sslstress_$(Agent.Os)_$(Agent.JobName)' - continueOnError: true - condition: always() diff --git a/eng/pipelines/libraries/stress/ssl.yml b/eng/pipelines/libraries/stress/ssl.yml new file mode 100644 index 00000000000..2eac354a328 --- /dev/null +++ b/eng/pipelines/libraries/stress/ssl.yml @@ -0,0 +1,72 @@ +trigger: none + +pr: + branches: + include: + - "*" + +schedules: +- cron: "0 13 * * *" # 1PM UTC => 5 AM PST + displayName: SslStress nightly run + branches: + include: + - master + +variables: + - template: ../variables.yml + - name: dockerfilesFolder + value: $(Build.SourcesDirectory)/eng/docker + - name: sslStressProject + value: $(sourcesRoot)/System.Net.Security/tests/StressTests/SslStress + - name: sdkBaseImage + value: dotnet-sdk-libraries-current + + +jobs: + +- job: linux + displayName: Docker Linux + pool: + name: Hosted Ubuntu 1604 + + steps: + - checkout: self + clean: true + fetchDepth: 5 + + - bash: | + $(dockerfilesFolder)/build-docker-sdk.ps1 -t $(sdkBaseImage) -c $(BUILD_CONFIGURATION) + displayName: Build Libraries + + - bash: | + $(sslStressProject)/run-docker-compose.ps1 -o -c $(BUILD_CONFIGURATION) -t $(sdkBaseImage) + displayName: Build SslStress + + - bash: | + cd '$(sslStressProject)' + docker-compose up --abort-on-container-exit --no-color + displayName: Run SslStress + +- job: windows + displayName: Docker Nano Server + pool: + vmImage: 'windows-latest' + + steps: + - checkout: self + clean: true + fetchDepth: 1 + lfs: false + + - pwsh: | + $(dockerfilesFolder)/build-docker-sdk.ps1 -w -t $(sdkBaseImage) -c $(BUILD_CONFIGURATION) + displayName: Build Libraries + + - pwsh: | + $(sslStressProject)/run-docker-compose.ps1 -w -o -c $(BUILD_CONFIGURATION) -t $(sdkBaseImage) + displayName: Build SslStress + + - pwsh: | + cd '$(sslStressProject)' + docker-compose up --abort-on-container-exit --no-color + displayName: Run SslStress |