-
Notifications
You must be signed in to change notification settings - Fork 198
153 lines (133 loc) · 4.75 KB
/
Copy pathpr-bench-dispatch.yml
File metadata and controls
153 lines (133 loc) · 4.75 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# Dispatches benchmark workflows when benchmark labels are added to pull requests.
# This is a separate workflow so that non-benchmark label events don't create
# phantom check suites that obscure in-progress benchmark runs on the PR.
name: PR Benchmark Dispatch
run-name: >-
PR #${{ github.event.pull_request.number }} benchmark:
${{ github.event.label.name }}
on:
pull_request:
types: [labeled]
branches: ["develop"]
permissions:
actions: write
contents: read
pull-requests: write # for label removal and PR comments
id-token: write # enables AWS-GitHub OIDC
jobs:
remove-all-label:
runs-on: ubuntu-latest
timeout-minutes: 10
if: github.event.label.name == 'action/bench-all'
steps:
- uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1
if: github.event.pull_request.head.repo.full_name == 'vortex-data/vortex'
with:
labels: action/bench-all
fail_on_error: true
all-random-access-bench:
needs: remove-all-label
uses: ./.github/workflows/pr-bench-random-access.yml
secrets: inherit
all-compression-bench:
needs: remove-all-label
uses: ./.github/workflows/pr-bench-compress.yml
secrets: inherit
all-string-bench:
needs: remove-all-label
uses: ./.github/workflows/pr-bench-string.yml
secrets: inherit
all-sql-bench:
needs: remove-all-label
uses: ./.github/workflows/pr-bench-sql.yml
secrets: inherit
with:
matrix_preset: "pr-all"
remove-random-access-label:
runs-on: ubuntu-latest
timeout-minutes: 10
if: github.event.label.name == 'action/bench-random-access'
steps:
- uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1
if: github.event.pull_request.head.repo.full_name == 'vortex-data/vortex'
with:
labels: action/bench-random-access
fail_on_error: true
random-access-bench:
needs: remove-random-access-label
uses: ./.github/workflows/pr-bench-random-access.yml
secrets: inherit
remove-compress-label:
runs-on: ubuntu-latest
timeout-minutes: 10
if: github.event.label.name == 'action/bench-compress'
steps:
- uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1
if: github.event.pull_request.head.repo.full_name == 'vortex-data/vortex'
with:
labels: action/bench-compress
fail_on_error: true
compression-bench:
needs: remove-compress-label
uses: ./.github/workflows/pr-bench-compress.yml
secrets: inherit
remove-string-label:
runs-on: ubuntu-latest
timeout-minutes: 10
if: github.event.label.name == 'action/bench-string'
steps:
- uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1
if: github.event.pull_request.head.repo.full_name == 'vortex-data/vortex'
with:
labels: action/bench-string
fail_on_error: true
string-bench:
needs: remove-string-label
uses: ./.github/workflows/pr-bench-string.yml
secrets: inherit
remove-gpu-compress-label:
runs-on: ubuntu-latest
timeout-minutes: 10
if: github.event.label.name == 'action/bench-gpu-compress'
steps:
- uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1
if: github.event.pull_request.head.repo.full_name == 'vortex-data/vortex'
with:
labels: action/bench-gpu-compress
fail_on_error: true
gpu-compress-bench:
needs: remove-gpu-compress-label
uses: ./.github/workflows/pr-bench-gpu-compress.yml
secrets: inherit
remove-sql-label:
runs-on: ubuntu-latest
timeout-minutes: 10
if: github.event.label.name == 'action/bench-sql'
steps:
- uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1
if: github.event.pull_request.head.repo.full_name == 'vortex-data/vortex'
with:
labels: action/bench-sql
fail_on_error: true
sql-bench:
needs: remove-sql-label
uses: ./.github/workflows/pr-bench-sql.yml
secrets: inherit
with:
matrix_preset: "pr"
remove-sql-compact-label:
runs-on: ubuntu-latest
timeout-minutes: 10
if: github.event.label.name == 'action/bench-sql-compact'
steps:
- uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1
if: github.event.pull_request.head.repo.full_name == 'vortex-data/vortex'
with:
labels: action/bench-sql-compact
fail_on_error: true
sql-compact-bench:
needs: remove-sql-compact-label
uses: ./.github/workflows/pr-bench-sql.yml
secrets: inherit
with:
matrix_preset: "pr-compact"