-
Notifications
You must be signed in to change notification settings - Fork 104
218 lines (215 loc) · 6.63 KB
/
all-post-commit-workflows.yaml
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
name: "All post-commit tests"
on:
workflow_call:
inputs:
build-type:
required: false
default: Release
type: string
workflow_dispatch:
inputs:
build-type:
required: false
default: Release
type: choice
options:
- Release
- Debug
- RelWithDebInfo
- CI
with-retries:
default: false
type: boolean
description: "Re-run failed jobs (max 3)"
push:
branches: ["main"]
permissions:
actions: read
contents: write
pull-requests: write
pages: write
id-token: write
packages: write
run-name: All post-commit tests${{ (github.event_name == 'workflow_dispatch' && inputs.with-retries) && ' (with retries)' || ''}}
jobs:
static-checks:
uses: ./.github/workflows/all-static-checks.yaml
secrets: inherit
build-artifact:
uses: ./.github/workflows/build-artifact.yaml
secrets: inherit
with:
build-type: ${{ inputs.build-type || 'Release' }}
build-wheel: true
build-artifact-profiler:
uses: ./.github/workflows/build-artifact.yaml
with:
build-type: ${{ inputs.build-type || 'Release' }}
tracy: true
secrets: inherit
test-wheels:
needs: build-artifact
uses: ./.github/workflows/_test-wheels-impl.yaml
with:
from-precompiled: true
secrets: inherit
# Slow Dispatch Unit Tests
sd-unit-tests:
needs: build-artifact
secrets: inherit
strategy:
fail-fast: false
matrix:
test-group: [
{ arch: grayskull, runner-label: E150 },
{ arch: wormhole_b0, runner-label: N150 },
{ arch: wormhole_b0, runner-label: N300 },
]
uses: ./.github/workflows/build-and-unit-tests.yaml
with:
arch: ${{ matrix.test-group.arch }}
runner-label: ${{ matrix.test-group.runner-label }}
# Fast Dispatch Unit Tests
fast-dispatch-unit-tests:
needs: build-artifact
secrets: inherit
strategy:
fail-fast: false
matrix:
test-group: [
{ arch: grayskull, runner-label: E150 },
{ arch: wormhole_b0, runner-label: N150 },
{ arch: wormhole_b0, runner-label: N300 },
]
uses: ./.github/workflows/fast-dispatch-build-and-unit-tests.yaml
with:
os: ubuntu-20.04
arch: ${{ matrix.test-group.arch }}
runner-label: ${{ matrix.test-group.runner-label }}
# TTNN FD Unit tests
ttnn-unit-tests:
needs: build-artifact
secrets: inherit
strategy:
fail-fast: false
matrix:
test-group: [
{ arch: grayskull, runner-label: E150 },
{ arch: wormhole_b0, runner-label: N150 },
{ arch: wormhole_b0, runner-label: N300 },
]
uses: ./.github/workflows/ttnn-post-commit.yaml
with:
arch: ${{ matrix.test-group.arch }}
runner-label: ${{ matrix.test-group.runner-label }}
# FD Model Tests
models-unit-tests:
needs: build-artifact
secrets: inherit
strategy:
fail-fast: false
matrix:
test-group: [
{ arch: grayskull, runner-label: E150 },
{ arch: wormhole_b0, runner-label: N150 },
{ arch: wormhole_b0, runner-label: N300 },
]
uses: ./.github/workflows/models-post-commit.yaml
with:
arch: ${{ matrix.test-group.arch }}
runner-label: ${{ matrix.test-group.runner-label }}
# FD C++ Unit Tests
cpp-unit-tests:
needs: build-artifact
secrets: inherit
strategy:
fail-fast: false
matrix:
test-group: [
{ arch: grayskull, runner-label: E150 },
{ arch: wormhole_b0, runner-label: N150 },
{ arch: wormhole_b0, runner-label: N300 },
]
uses: ./.github/workflows/cpp-post-commit.yaml
with:
arch: ${{ matrix.test-group.arch }}
runner-label: ${{ matrix.test-group.runner-label }}
code-analysis:
uses: ./.github/workflows/code-analysis.yaml
secrets: inherit
with:
version: 22.04
tt-train-cpp-unit-tests:
needs: build-artifact
secrets: inherit
strategy:
fail-fast: false
matrix:
test-group: [
{ arch: wormhole_b0, runner-label: N150 },
# Disabled due to https://github.com/tenstorrent/tt-metal/issues/16012
# { arch: wormhole_b0, runner-label: N300 },
]
uses: ./.github/workflows/tt-train-post-commit.yaml
with:
arch: ${{ matrix.test-group.arch }}
runner-label: ${{ matrix.test-group.runner-label }}
docker-image: ${{ needs.build-artifact.outputs.ci-build-docker-image }}
run-profiler-regression:
needs: build-artifact-profiler
strategy:
fail-fast: false
matrix:
test-group: [
{ arch: grayskull, runner-label: E150 },
{ arch: wormhole_b0, runner-label: N150 },
{ arch: wormhole_b0, runner-label: N300 },
]
uses: ./.github/workflows/run-profiler-regression.yaml
secrets: inherit
with:
arch: ${{ matrix.test-group.arch}}
runner-label: ${{ matrix.test-group.runner-label}}
build-docs:
needs: build-artifact
uses: ./.github/workflows/docs-latest-public.yaml
secrets: inherit
build:
uses: ./.github/workflows/build-artifact.yaml
needs: build-artifact
secrets: inherit
strategy:
matrix:
config:
- version: "20.04"
toolchain: "cmake/x86_64-linux-clang-17-libcpp-toolchain.cmake"
build-type: "Debug"
publish-artifact: false
- version: "20.04"
toolchain: "cmake/x86_64-linux-clang-17-libcpp-toolchain.cmake"
build-type: "RelWithDebInfo"
publish-artifact: false
- version: "22.04"
toolchain: "cmake/x86_64-linux-clang-17-libcpp-toolchain.cmake"
build-type: "Release"
publish-artifact: false
- version: "22.04"
toolchain: "cmake/x86_64-linux-clang-17-libstdcpp-toolchain.cmake"
build-type: "Release"
publish-artifact: false
skip-tt-train: true
- version: "22.04"
toolchain: "cmake/x86_64-linux-gcc-12-toolchain.cmake"
build-type: "Release"
publish-artifact: false
skip-tt-train: true
with:
version: ${{ matrix.config.version }}
toolchain: ${{ matrix.config.toolchain }}
build-type: ${{ matrix.config.build-type }}
publish-artifact: ${{ matrix.config.publish-artifact }}
skip-tt-train: ${{ matrix.config.skip-tt-train || false }}
# We used to use this for post-commit, but we didn't have enough runners
# to support the number of developers running this workflow
# build-and-test-measure-perf:
# build-and-test-measure-perf-device: