-
-
Notifications
You must be signed in to change notification settings - Fork 432
81 lines (75 loc) · 2.68 KB
/
benchmark.yml
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
78
79
80
81
name: Benchmark
on:
issue_comment:
types: [created]
schedule:
- cron: "0 23 * * *"
workflow_dispatch:
inputs:
reuse:
description: "reuse: Reuse existing benchmark server if possible"
required: false
default: true
type: boolean
reuse_runid:
description: "reuse_runid: Use this run id for benchmark name for reuse"
required: false
type: string
default: "wf"
benchmark-config-name:
description: "benchmark-config-name: Select benchmark config name"
required: false
default: workflow_dispatch_messagepack_h2c
type: choice
options:
- workflow_dispatch_memorypack_h2
- workflow_dispatch_memorypack_h2c
- workflow_dispatch_memorypack_h3
- workflow_dispatch_messagepack_h2
- workflow_dispatch_messagepack_h2c
- workflow_dispatch_messagepack_h3
- workflow_dispatch_messagepack_h2c_eastus
- workflow_dispatch_messagepack_h2_nugetclient
- workflow_dispatch_messagepack_h2_nugetserver
- workflow_dispatch_messagepack_h2c_nugetclient
- workflow_dispatch_messagepack_h2c_nugetserver
- workflow_dispatch_messagepack_h3_nugetclient
- workflow_dispatch_messagepack_h3_nugetserver
- workflow_dispatch_messagepack_h2c_serverstreaming
- issue
- schedule
permissions:
actions: read
contents: read
id-token: write
issues: write
pull-requests: write
jobs:
loader:
uses: Cysharp/Actions/.github/workflows/benchmark-loader.yaml@main
with:
benchmark-name-prefix: "magiconion-${{ github.event.issue.number || (inputs.reuse && inputs.reuse_runid || github.run_number) }}"
benchmark-config-path: "perf/BenchmarkApp/configs/${{ inputs.benchmark-config-name || github.event_name }}.yaml"
secrets: inherit
benchmark:
needs: [loader]
if: ${{ needs.loader.outputs.is-benchmarkable }}
strategy:
max-parallel: 3 # 3 parallel max
fail-fast: false # no care about other benchmark
matrix: ${{ fromJson(needs.loader.outputs.matrix) }}
uses: Cysharp/Actions/.github/workflows/benchmark-execute.yaml@main
with:
benchmark-name: "${{ matrix.benchmarkName }}"
benchmark-config-path: "${{ matrix.config }}"
branch: "${{ matrix.branch }}"
secrets: inherit
cleanup-failed:
if: ${{ failure() || success() }}
needs: [benchmark]
uses: Cysharp/Actions/.github/workflows/benchmark-cleanup.yaml@main
secrets: inherit
actions-timeline:
needs: [loader, benchmark, cleanup-failed]
uses: Cysharp/Actions/.github/workflows/actions-timeline.yaml@main
secrets: inherit