2020-06-23 21:35:59 +03:00
|
|
|
#
|
|
|
|
# Continuous Integration (CI)
|
|
|
|
# This pipeline builds and runs MsQuic performance tests.
|
|
|
|
#
|
|
|
|
|
2022-03-10 21:35:36 +03:00
|
|
|
trigger:
|
|
|
|
batch: true
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- main
|
|
|
|
- release/*
|
|
|
|
paths:
|
|
|
|
include:
|
|
|
|
- .azure/azure-pipelines.perf.yml
|
|
|
|
- .azure/templates/run-performance.yml
|
|
|
|
- src/core/*
|
|
|
|
- src/platform/*
|
|
|
|
- src/perf/*
|
|
|
|
pr:
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- main
|
|
|
|
- release/*
|
|
|
|
paths:
|
|
|
|
include:
|
|
|
|
- .azure/azure-pipelines.perf.yml
|
|
|
|
- .azure/templates/run-performance.yml
|
|
|
|
- src/core/*
|
|
|
|
- src/platform/*
|
|
|
|
- src/perf/*
|
2020-06-23 21:35:59 +03:00
|
|
|
|
|
|
|
name: 0.$(Date:yyyy).$(Date:MM).$(DayOfMonth).$(Rev:rr).0
|
|
|
|
|
|
|
|
parameters:
|
2022-03-10 21:35:36 +03:00
|
|
|
- name: winkernel
|
|
|
|
type: boolean
|
|
|
|
displayName: Windows Kernel
|
|
|
|
default: true
|
|
|
|
- name: winuser_schannel
|
|
|
|
type: boolean
|
|
|
|
displayName: Windows (Schannel)
|
|
|
|
default: true
|
|
|
|
- name: winuser_openssl
|
|
|
|
type: boolean
|
|
|
|
displayName: Windows (OpenSSL)
|
|
|
|
default: true
|
|
|
|
- name: linux_openssl
|
|
|
|
type: boolean
|
|
|
|
displayName: Linux (OpenSSL)
|
|
|
|
default: true
|
|
|
|
- name: arch
|
2020-06-23 21:35:59 +03:00
|
|
|
type: string
|
2022-03-10 21:35:36 +03:00
|
|
|
displayName: Architecture
|
|
|
|
default: x64
|
2020-06-23 21:35:59 +03:00
|
|
|
values:
|
2022-03-10 21:35:36 +03:00
|
|
|
- x64
|
|
|
|
- x86
|
|
|
|
- name: pgo_mode
|
|
|
|
type: boolean
|
|
|
|
displayName: PGO Mode
|
|
|
|
default: false
|
2021-04-22 02:30:51 +03:00
|
|
|
- name: logging
|
|
|
|
type: string
|
|
|
|
displayName: Logging Type
|
|
|
|
default: None
|
|
|
|
values:
|
|
|
|
- None
|
|
|
|
- Basic.Light
|
|
|
|
- Datapath.Light
|
|
|
|
- Datapath.Verbose
|
|
|
|
- Stacks.Light
|
2021-12-20 21:19:44 +03:00
|
|
|
- RPS.Light
|
2021-04-22 02:30:51 +03:00
|
|
|
- Performance.Light
|
|
|
|
- Basic.Verbose
|
|
|
|
- Performance.Light
|
|
|
|
- Performance.Verbose
|
|
|
|
- Full.Light
|
|
|
|
- Full.Verbose
|
|
|
|
- SpinQuic.Light
|
2020-10-15 03:52:43 +03:00
|
|
|
- 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
|
2021-01-22 22:56:31 +03:00
|
|
|
- name: protocol
|
|
|
|
type: string
|
|
|
|
displayName: Protocol
|
|
|
|
default: QUIC
|
|
|
|
values:
|
|
|
|
- QUIC
|
|
|
|
- TCPTLS
|
2020-10-13 07:20:57 +03:00
|
|
|
|
|
|
|
stages:
|
2020-06-23 21:35:59 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Builds
|
|
|
|
#
|
|
|
|
|
2022-03-10 21:35:36 +03:00
|
|
|
- ${{ if eq(parameters.winkernel, true) }}:
|
|
|
|
- stage: build_winkernel
|
|
|
|
displayName: Build Windows Kernel
|
|
|
|
dependsOn: []
|
|
|
|
variables:
|
|
|
|
runCodesignValidationInjection: false
|
|
|
|
jobs:
|
|
|
|
- template: ./templates/build-config-winkernel.yml
|
|
|
|
parameters:
|
|
|
|
arch: ${{ parameters.arch }}
|
|
|
|
config: Release
|
|
|
|
|
|
|
|
- ${{ if eq(parameters.winuser_schannel, true) }}:
|
|
|
|
- stage: build_winuser_schannel
|
|
|
|
displayName: Build Windows (Schannel)
|
|
|
|
dependsOn: []
|
|
|
|
variables:
|
|
|
|
runCodesignValidationInjection: false
|
|
|
|
jobs:
|
2020-08-21 23:46:39 +03:00
|
|
|
- template: ./templates/build-config-user.yml
|
|
|
|
parameters:
|
2022-03-10 21:35:36 +03:00
|
|
|
image: windows-latest
|
2020-08-21 23:46:39 +03:00
|
|
|
platform: windows
|
2020-10-13 07:20:57 +03:00
|
|
|
arch: ${{ parameters.arch }}
|
2022-03-10 21:35:36 +03:00
|
|
|
tls: schannel
|
2020-08-21 23:46:39 +03:00
|
|
|
config: Release
|
2022-03-12 00:08:56 +03:00
|
|
|
extraPrepareArgs: -DisableTest
|
2022-03-10 21:35:36 +03:00
|
|
|
${{ if eq(parameters.pgo_mode, false) }}:
|
|
|
|
extraBuildArgs: -DisableTest -DisableTools
|
|
|
|
${{ if eq(parameters.pgo_mode, true) }}:
|
2020-08-21 23:46:39 +03:00
|
|
|
extraBuildArgs: -DisableTest -DisableTools -PGO
|
2022-03-10 21:35:36 +03:00
|
|
|
|
|
|
|
- ${{ if eq(parameters.winuser_openssl, true) }}:
|
|
|
|
- stage: build_winuser_openssl
|
|
|
|
displayName: Build Windows (OpenSSL)
|
|
|
|
dependsOn: []
|
|
|
|
variables:
|
|
|
|
runCodesignValidationInjection: false
|
|
|
|
jobs:
|
|
|
|
- template: ./templates/build-config-user.yml
|
|
|
|
parameters:
|
|
|
|
image: windows-latest
|
|
|
|
platform: windows
|
|
|
|
arch: ${{ parameters.arch }}
|
|
|
|
tls: openssl
|
|
|
|
config: Release
|
2022-03-12 00:08:56 +03:00
|
|
|
extraPrepareArgs: -DisableTest
|
2022-03-10 21:35:36 +03:00
|
|
|
${{ if eq(parameters.pgo_mode, false) }}:
|
2020-08-21 23:46:39 +03:00
|
|
|
extraBuildArgs: -DisableTest -DisableTools
|
2022-03-10 21:35:36 +03:00
|
|
|
${{ if eq(parameters.pgo_mode, true) }}:
|
|
|
|
extraBuildArgs: -DisableTest -DisableTools -PGO
|
|
|
|
|
|
|
|
- ${{ if eq(parameters.linux_openssl, true) }}:
|
|
|
|
- stage: build_linux_openssl
|
|
|
|
displayName: Build Linux (OpenSSL)
|
|
|
|
dependsOn: []
|
|
|
|
variables:
|
|
|
|
runCodesignValidationInjection: false
|
|
|
|
jobs:
|
|
|
|
- template: ./templates/build-config-user.yml
|
2020-08-21 23:46:39 +03:00
|
|
|
parameters:
|
2022-03-10 21:35:36 +03:00
|
|
|
image: ubuntu-latest
|
|
|
|
platform: linux
|
2020-10-13 07:20:57 +03:00
|
|
|
arch: ${{ parameters.arch }}
|
2022-03-10 21:35:36 +03:00
|
|
|
tls: openssl
|
2020-08-21 23:46:39 +03:00
|
|
|
config: Release
|
2022-03-12 00:08:56 +03:00
|
|
|
extraPrepareArgs: -DisableTest
|
2020-07-30 02:31:27 +03:00
|
|
|
extraBuildArgs: -DisableTest -DisableTools
|
2020-06-23 21:35:59 +03:00
|
|
|
|
|
|
|
#
|
2022-03-10 21:35:36 +03:00
|
|
|
# Tests
|
2020-06-23 21:35:59 +03:00
|
|
|
#
|
|
|
|
|
2022-03-10 21:35:36 +03:00
|
|
|
- ${{ if eq(parameters.winkernel, true) }}:
|
|
|
|
- stage: perf_winkernel
|
|
|
|
displayName: Performance Testing Windows Kernel
|
|
|
|
dependsOn:
|
|
|
|
- build_winkernel
|
|
|
|
jobs:
|
|
|
|
- template: ./templates/run-performance.yml
|
|
|
|
parameters:
|
|
|
|
pool: MsQuic-Win-Perf
|
|
|
|
platform: windows
|
|
|
|
localTls: schannel
|
|
|
|
remoteTls: schannel
|
|
|
|
arch: ${{ parameters.arch }}
|
|
|
|
protocol: ${{ parameters.protocol }}
|
|
|
|
logProfile: ${{ parameters.logging }}
|
|
|
|
${{ if ne(parameters.testToRun, 'all') }}:
|
|
|
|
testToRun: ${{ parameters.testToRun }}
|
2020-08-26 02:04:57 +03:00
|
|
|
kernelMode: -Kernel
|
|
|
|
extraName: 'Kernel'
|
|
|
|
testTypes: 'Remote'
|
2022-03-10 21:35:36 +03:00
|
|
|
${{ if eq(parameters.pgo_mode, true) }}:
|
|
|
|
extraArgs: -PGO
|
|
|
|
|
|
|
|
- ${{ if eq(parameters.winuser_schannel, true) }}:
|
|
|
|
- stage: perf_winuser_schannel
|
|
|
|
displayName: Performance Testing Windows (Schannel)
|
|
|
|
dependsOn:
|
|
|
|
- build_winuser_schannel
|
|
|
|
jobs:
|
|
|
|
- template: ./templates/run-performance.yml
|
|
|
|
parameters:
|
|
|
|
pool: MsQuic-Win-Perf
|
|
|
|
platform: windows
|
|
|
|
localTls: schannel
|
|
|
|
remoteTls: schannel
|
|
|
|
arch: ${{ parameters.arch }}
|
|
|
|
protocol: ${{ parameters.protocol }}
|
|
|
|
logProfile: ${{ parameters.logging }}
|
|
|
|
${{ if ne(parameters.testToRun, 'all') }}:
|
|
|
|
testToRun: ${{ parameters.testToRun }}
|
2020-08-27 20:42:14 +03:00
|
|
|
testTypes: ${{ parameters.testTypes }}
|
2022-03-10 21:35:36 +03:00
|
|
|
${{ if eq(parameters.pgo_mode, true) }}:
|
|
|
|
extraArgs: -PGO
|
|
|
|
|
|
|
|
- ${{ if eq(parameters.winuser_openssl, true) }}:
|
|
|
|
- stage: perf_winuser_openssl
|
|
|
|
displayName: Performance Testing Windows (OpenSSL)
|
|
|
|
dependsOn:
|
|
|
|
- build_winuser_openssl
|
|
|
|
jobs:
|
|
|
|
- template: ./templates/run-performance.yml
|
|
|
|
parameters:
|
|
|
|
pool: MsQuic-Win-Perf
|
|
|
|
platform: windows
|
|
|
|
localTls: openssl
|
|
|
|
remoteTls: openssl
|
|
|
|
arch: ${{ parameters.arch }}
|
|
|
|
protocol: ${{ parameters.protocol }}
|
|
|
|
logProfile: ${{ parameters.logging }}
|
|
|
|
${{ if ne(parameters.testToRun, 'all') }}:
|
|
|
|
testToRun: ${{ parameters.testToRun }}
|
|
|
|
testTypes: ${{ parameters.testTypes }}
|
|
|
|
${{ if eq(parameters.pgo_mode, true) }}:
|
|
|
|
extraArgs: -PGO
|
|
|
|
|
|
|
|
- ${{ if eq(parameters.linux_openssl, true) }}:
|
|
|
|
- stage: perf_linux_openssl
|
|
|
|
displayName: Performance Testing Linux (OpenSSL)
|
|
|
|
dependsOn:
|
|
|
|
- build_linux_openssl
|
|
|
|
jobs:
|
|
|
|
- template: ./templates/run-performance.yml
|
|
|
|
parameters:
|
|
|
|
pool: MsQuic-Linux-Perf
|
|
|
|
platform: linux
|
|
|
|
localTls: openssl
|
|
|
|
remoteTls: openssl
|
|
|
|
arch: ${{ parameters.arch }}
|
|
|
|
protocol: ${{ parameters.protocol }}
|
|
|
|
logProfile: ${{ parameters.logging }}
|
|
|
|
${{ if ne(parameters.testToRun, 'all') }}:
|
|
|
|
testToRun: ${{ parameters.testToRun }}
|
|
|
|
testTypes: ${{ parameters.testTypes }}
|
|
|
|
${{ if eq(parameters.pgo_mode, true) }}:
|
|
|
|
extraArgs: -PGO
|
|
|
|
|
|
|
|
- ${{ if eq(variables['Build.Reason'], 'BatchedCI') }}:
|
|
|
|
- stage: perf_post_process
|
|
|
|
displayName: Perf Post Processing
|
|
|
|
condition: succeededOrFailed()
|
|
|
|
dependsOn:
|
|
|
|
- perf_winkernel
|
|
|
|
- perf_winuser_schannel
|
|
|
|
- perf_winuser_openssl
|
|
|
|
- perf_linux_openssl
|
|
|
|
jobs:
|
|
|
|
- template: ./templates/post-process-performance.yml
|