This commit is contained in:
Nick Banks 2020-10-14 17:52:43 -07:00 коммит произвёл GitHub
Родитель b1d4ecdb53
Коммит 1cca197c1d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 31 добавлений и 13 удалений

Просмотреть файл

@ -9,10 +9,6 @@ pr: none
name: 0.$(Date:yyyy).$(Date:MM).$(DayOfMonth).$(Rev:rr).0
parameters:
- name: kernelmode
type: boolean
displayName: Kernel Mode
default: false
- name: mode
type: string
displayName: Mode
@ -22,24 +18,43 @@ parameters:
- PGO
- Record
- RecordQUICTrace
- name: testTypes
type: string
displayName: Test Types
default: Remote,Loopback
- name: arch
type: string
displayName: Architecture
displayName: Server Architecture
default: x64
values:
- x64
- x86
- name: kernelmode
type: boolean
displayName: Server Kernel Mode
default: false
- name: tls
type: string
displayName: TLS
displayName: Server TLS
default: schannel
values:
- schannel
- openssl
- mitls
- name: testToRun
type: string
displayName: Run Specific Test
default: all
values:
- all
- ThroughputUp
- ThroughputDown
- RPS
- HPS
- name: testTypes
type: string
displayName: Test Types
default: Remote,Loopback
values:
- Remote,Loopback
- Remote
- Loopback
stages:
@ -54,7 +69,7 @@ stages:
runCodesignValidationInjection: false
jobs:
# Officially supported configurations.
- ${{ if eq(parameters.kernelmode, false) }}:
- ${{ if and(eq(parameters.kernelmode, false), ne(parameters.tls, 'schannel')) }}:
- template: ./templates/build-config-user.yml
parameters:
image: windows-latest
@ -99,6 +114,8 @@ stages:
localTls: schannel
remoteTls: ${{ parameters.tls }}
arch: ${{ parameters.arch }}
${{ if ne(parameters.testToRun, 'all') }}:
testToRun: ${{ parameters.testToRun }}
${{ if eq(parameters.kernelmode, true) }}:
kernelMode: -Kernel
extraName: 'Kernel'

Просмотреть файл

@ -12,6 +12,7 @@ parameters:
extraArgs: '-Publish'
kernelMode: ''
testTypes: 'Remote,Loopback'
testToRun: ''
jobs:
- job: performance_${{ parameters.platform }}_${{ parameters.arch }}_${{ parameters.localTls }}_${{ parameters.remoteTls }}_${{ parameters.extraName }}
@ -61,7 +62,7 @@ jobs:
inputs:
pwsh: true
filePath: scripts/performance.ps1
arguments: -Config ${{ parameters.config }} -LocalTls ${{ parameters.localTls }} -RemoteTls ${{ parameters.remoteTls }} -LocalArch ${{ parameters.arch }} -RemoteArch ${{ parameters.arch }} ${{ parameters.kernelMode }} ${{ parameters.extraArgs }}
arguments: -Config ${{ parameters.config }} -LocalTls ${{ parameters.localTls }} -RemoteTls ${{ parameters.remoteTls }} -LocalArch ${{ parameters.arch }} -RemoteArch ${{ parameters.arch }} ${{ parameters.kernelMode }} ${{ parameters.extraArgs }} -TestToRun '${{ parameters.testToRun }}'
- task: PowerShell@2
condition: contains('${{ parameters.testTypes }}', 'Loopback')
@ -70,7 +71,7 @@ jobs:
inputs:
pwsh: true
filePath: scripts/performance.ps1
arguments: -Config ${{ parameters.config }} -LocalTls ${{ parameters.localTls }} -RemoteTls ${{ parameters.remoteTls }} -LocalArch ${{ parameters.arch }} -RemoteArch ${{ parameters.arch }} ${{ parameters.kernelMode }} ${{ parameters.extraArgs }} -Local
arguments: -Config ${{ parameters.config }} -LocalTls ${{ parameters.localTls }} -RemoteTls ${{ parameters.remoteTls }} -LocalArch ${{ parameters.arch }} -RemoteArch ${{ parameters.arch }} ${{ parameters.kernelMode }} ${{ parameters.extraArgs }} -Local -TestToRun '${{ parameters.testToRun }}'
- task: CopyFiles@2
displayName: Move Performance Results