forked from aspnet/Benchmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblazor-scenarios.yml
More file actions
77 lines (68 loc) · 2.91 KB
/
blazor-scenarios.yml
File metadata and controls
77 lines (68 loc) · 2.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Blazor scenarios
parameters:
- name: arguments
type: string
default: ''
- name: connection
type: string
default: ''
- name: serviceBusQueueName
type: string
default: ''
- name: serviceBusNamespace
type: string
default: ''
- name: condition
type: string
default: 'true' # Check https://github.com/dotnet/aspnetcore/issues/49713
# Scenarios
- name: scenarios
type: object
default:
- displayName: Blazor Wasm
arguments: --scenario blazorwasmbenchmark $(blazorWasmJobs) --application.options.requiredOperatingSystem Linux
- name: lighthouseScenarios
type: object
default:
- displayName: Blazor Web (Server)
arguments: --scenario blazorWebInteractiveServer $(blazorJobs) --property interactivity=Server --property template=Blazor
- displayName: Blazor Web (WebAssembly)
arguments: --scenario blazorWebInteractiveWebAssembly $(blazorJobs) --property interactivity=WebAssembly --property template=Blazor
- displayName: Blazor Web (Auto)
arguments: --scenario blazorWebInteractiveAuto $(blazorJobs) --property interactivity=Auto --property template=Blazor
steps:
- ${{ each s in parameters.scenarios }}:
- task: PublishToAzureServiceBus@2
condition: succeededOrFailed()
displayName: ${{ s.displayName }}
timeoutInMinutes: 20
inputs:
connectedServiceName: ${{ parameters.connection }}
serviceBusQueueName: ${{ parameters.serviceBusQueueName }}
serviceBusNamespace: ${{ parameters.serviceBusNamespace }}
waitForCompletion: true
useDataContractSerializer: "false"
messageBody: |
{
"name": "crank",
"condition": "(${{ parameters.condition }})",
"timeout": "00:20:00",
"args": [ "${{ parameters.arguments }} --session $(session) ${{ s.arguments }} --application.buildTimeout 00:20:00 --application.framework net11.0 --command-line-property --table BlazorWasm --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" ]
}
- ${{ each s in parameters.lighthouseScenarios }}:
- task: PublishToAzureServiceBus@2
condition: succeededOrFailed()
displayName: ${{ s.displayName }}
timeoutInMinutes: 10
inputs:
connectedServiceName: ${{ parameters.connection }}
serviceBusQueueName: ${{ parameters.serviceBusQueueName }}
serviceBusNamespace: ${{ parameters.serviceBusNamespace }}
waitForCompletion: true
useDataContractSerializer: "false"
messageBody: |
{
"name": "crank",
"condition": "(${{ parameters.condition }})",
"args": [ "${{ parameters.arguments }} --session $(session) ${{ s.arguments }} --application.framework net11.0 --command-line-property --table Lighthouse --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" ]
}