Skip to content

Commit 9690057

Browse files
committed
move tls scenarios to separate conf
1 parent 0f1cd4a commit 9690057

File tree

3 files changed

+89
-8
lines changed

3 files changed

+89
-8
lines changed

build/benchmarks-ci-azure.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ jobs:
188188
dependsOn: [Containers_Azure_Intel_Linux, Containers_Azure_Arm64_Linux]
189189
condition: succeededOrFailed()
190190
steps:
191-
- template: trend-scenarios.yml
191+
- template: tls-scenarios.yml
192192
parameters:
193193
connection: ASPNET Benchmarks Service Bus
194194
serviceBusQueueName: azure
@@ -204,7 +204,7 @@ jobs:
204204
dependsOn: [IDNA_Azure_Amd_Linux]
205205
condition: succeededOrFailed()
206206
steps:
207-
- template: trend-scenarios.yml
207+
- template: tls-scenarios.yml
208208
parameters:
209209
connection: ASPNET Benchmarks Service Bus
210210
serviceBusQueueName: azure
@@ -220,7 +220,7 @@ jobs:
220220
dependsOn: [IDNA_Azure_Intel_Linux]
221221
condition: succeededOrFailed()
222222
steps:
223-
- template: trend-scenarios.yml
223+
- template: tls-scenarios.yml
224224
parameters:
225225
connection: ASPNET Benchmarks Service Bus
226226
serviceBusQueueName: azure
@@ -234,7 +234,7 @@ jobs:
234234
dependsOn: [IDNA_Azure_Intel_Linux]
235235
condition: succeededOrFailed()
236236
steps:
237-
- template: trend-scenarios.yml
237+
- template: tls-scenarios.yml
238238
parameters:
239239
connection: ASPNET Benchmarks Service Bus
240240
serviceBusQueueName: azurearm64

build/benchmarks.matrix.azure.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,25 +72,25 @@ groups:
7272
- jobs:
7373

7474
- name: IDNA Azure Amd Linux
75-
template: trend-scenarios.yml
75+
template: tls-scenarios.yml
7676
profiles:
7777
- idna-amd-lin
7878

7979
- jobs:
8080

8181
- name: IDNA Azure Intel Linux
82-
template: trend-scenarios.yml
82+
template: tls-scenarios.yml
8383
profiles:
8484
- idna-intel-lin
8585

8686
- jobs:
8787

8888
- name: IDNA Azure Amd Windows
89-
template: trend-scenarios.yml
89+
template: tls-scenarios.yml
9090
profiles:
9191
- idna-amd-win
9292

9393
- name: IDNA Azure Intel Windows
94-
template: trend-scenarios.yml
94+
template: tls-scenarios.yml
9595
profiles:
9696
- idna-intel-win

build/tls-scenarios.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
parameters:
2+
- name: arguments
3+
type: string
4+
default: ''
5+
- name: connection
6+
type: string
7+
default: ''
8+
- name: serviceBusQueueName
9+
type: string
10+
default: ''
11+
- name: serviceBusNamespace
12+
type: string
13+
default: ''
14+
- name: condition
15+
type: string
16+
default: 'true'
17+
18+
# Scenarios
19+
- name: scenarios
20+
type: object
21+
default:
22+
23+
# TLS
24+
25+
- displayName: "HttpSys Windows: TLS Handshakes"
26+
arguments: --scenario tls-handshakes-httpsys $(tlsJobs) --property scenario=HttpSysTLSHandshakes --application.options.requiredOperatingSystem windows
27+
28+
- displayName: "HttpSys Windows: mTLS Handshakes"
29+
arguments: --scenario mTls-handshakes-httpsys $(tlsJobs) --property scenario=HttpSysMutualTLSHandshakes --application.options.requiredOperatingSystem windows
30+
31+
- displayName: "HttpSys Windows: TLS Renegotiation"
32+
arguments: --scenario tls-renegotiation-httpsys $(tlsJobs) --property scenario=HttpSysTLSRenegotiation --application.options.requiredOperatingSystem windows
33+
34+
- displayName: "Kestrel Linux: TLS Handshakes"
35+
arguments: --scenario tls-handshakes-kestrel $(tlsJobs) --property scenario=KestrelTLSHandshakes --application.options.requiredOperatingSystem linux
36+
37+
- displayName: "Kestrel Linux: mTLS Handshakes"
38+
arguments: --scenario mTls-handshakes-kestrel $(tlsJobs) --property scenario=KestrelMutualTLSHandshakes --application.options.requiredOperatingSystem linux
39+
40+
- displayName: "Kestrel Linux: TLS Renegotiation"
41+
arguments: --scenario tls-renegotiation-kestrel $(tlsJobs) --property scenario=KestrelTLSRenegotiation --application.options.requiredOperatingSystem linux
42+
43+
# Rejection
44+
45+
- displayName: "HttpSys Windows: Encoded URL symbols"
46+
arguments: --scenario httpsys-encoded-url $(rejectionJobs) --property scenario=RejectionEncodedUrlHttpSys --application.options.requiredOperatingSystem windows
47+
48+
- displayName: "HttpSys Windows: Invalid Header"
49+
arguments: --scenario httpsys-header-symbols $(rejectionJobs) --property scenario=RejectionInvalidHeaderHttpSys --application.options.requiredOperatingSystem windows
50+
51+
- displayName: "HttpSys Windows: Host Header Mismatch"
52+
arguments: --scenario httpsys-hostheader-mismatch $(rejectionJobs) --property scenario=RejectionHostHeaderMismatchHttpSys --application.options.requiredOperatingSystem windows
53+
54+
- displayName: "Kestrel Linux: Encoded URL symbols"
55+
arguments: --scenario kestrel-encoded-url $(rejectionJobs) --property scenario=RejectionEncodedUrlKestrel --application.options.requiredOperatingSystem linux
56+
57+
- displayName: "Kestrel Linux: Invalid Header"
58+
arguments: --scenario kestrel-header-symbols $(rejectionJobs) --property scenario=RejectionInvalidHeaderKestrel --application.options.requiredOperatingSystem linux
59+
60+
- displayName: "Kestrel Linux: Host Header Mismatch"
61+
arguments: --scenario kestrel-hostheader-mismatch $(rejectionJobs) --property scenario=RejectionHostHeaderMismatchKestrel --application.options.requiredOperatingSystem linux
62+
63+
steps:
64+
- ${{ each s in parameters.scenarios }}:
65+
- task: PublishToAzureServiceBus@2
66+
displayName: "${{ s.displayName }}"
67+
condition: succeededOrFailed()
68+
timeoutInMinutes: 10
69+
inputs:
70+
connectedServiceName: ${{ parameters.connection }}
71+
serviceBusQueueName: ${{ parameters.serviceBusQueueName }}
72+
serviceBusNamespace: ${{ parameters.serviceBusNamespace }}
73+
waitForCompletion: true
74+
useDataContractSerializer: "false"
75+
messageBody: |
76+
{
77+
"name": "crank",
78+
"condition": "(${{ parameters.condition }})",
79+
"retries": 1,
80+
"args": [ "${{ s.arguments }} $(azureProfile) --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/steadystate.profile.yml --application.framework net10.0 --application.collectDependencies true ${{ parameters.arguments }} --application.options.collectCounters true --no-metadata --no-measurements --load.options.reuseBuild true --session $(session) --description \"${{ s.displayName }} $(System.JobDisplayName)\" --property buildId=\"$(buildId)\" --property buildNumber=\"$(buildNumber)\" --command-line-property --table TrendBenchmarks --sql SQL_CONNECTION_STRING --cert-tenant-id SQL_SERVER_TENANTID --cert-client-id SQL_SERVER_CLIENTID --cert-path SQL_SERVER_CERT_PATH --cert-sni --chart" ]
81+
}

0 commit comments

Comments
 (0)