-
Notifications
You must be signed in to change notification settings - Fork 10.4k
227 lines (199 loc) · 7.47 KB
/
Copy pathui-extended-main.yml
File metadata and controls
227 lines (199 loc) · 7.47 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
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
219
220
221
222
223
224
225
226
227
name: ui-extended-main
on:
push:
branches:
- main
schedule:
# 02:00 UTC = 10:00 Asia/Shanghai
- cron: "0 2 * * *"
workflow_dispatch:
inputs:
suite:
description: "UI suite to run"
required: true
default: p0
type: choice
options:
- p0
- p0p1
- full
permissions:
contents: read
concurrency:
group: ui-extended-main-${{ github.event_name }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
jobs:
ui_p0:
name: UI P0 (${{ matrix.name }})
if: ${{ github.repository == 'nexu-io/open-design' && (github.event_name == 'push' || github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.suite != 'full')) }}
runs-on: ubuntu-latest
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
include:
- name: entry-onboarding
smoke_command: >-
pnpm -C e2e exec playwright test -c playwright.config.ts
ui/critical-smoke.test.ts
--grep '\[P0\]'
command: >-
pnpm -C e2e exec playwright test -c playwright.config.ts
ui/critical-smoke.test.ts
ui/entry-chrome-flows.test.ts
ui/entry-configuration-flows.test.ts
ui/amr-onboarding.test.ts
ui/api-empty-response.test.ts
--grep '\[P0\]'
- name: project-workspace
smoke_command: >-
pnpm -C e2e exec playwright test -c playwright.config.ts
ui/critical-smoke.test.ts
--grep '\[P0\]'
command: >-
pnpm -C e2e exec playwright test -c playwright.config.ts
ui/app.test.ts
ui/app-restoration.test.ts
ui/app-design-files.test.ts
ui/app-manual-edit.test.ts
ui/project-management-flows.test.ts
ui/workspace-keyboard-flows.test.ts
--grep '\[P0\]'
- name: runtime-recovery
smoke_command: >-
pnpm -C e2e exec playwright test -c playwright.config.ts
ui/critical-smoke.test.ts
--grep '\[P0\]'
command: >-
pnpm -C e2e exec playwright test -c playwright.config.ts
ui/real-daemon-run.test.ts
ui/amr-run-failure-recovery.test.ts
ui/amr-logout-requires-relogin.test.ts
ui/settings-local-cli-codex-fallback.test.ts
--grep '\[P0\]'
- name: settings-connectors
smoke_command: >-
pnpm -C e2e exec playwright test -c playwright.config.ts
ui/critical-smoke.test.ts
--grep '\[P0\].*settings dialog'
command: >-
pnpm -C e2e exec playwright test -c playwright.config.ts
ui/settings-api-protocol.test.ts
ui/settings-connectors-auth-happy-path.test.ts
ui/settings-connectors-auth-recovery.test.ts
--grep '\[P0\]'
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Setup workspace
uses: ./.github/actions/setup-workspace
- name: Setup Playwright
uses: ./.github/actions/setup-playwright
with:
package-json-path: e2e/package.json
install-command: pnpm -C e2e exec playwright install --with-deps chromium
- name: Prebuild workspace type declarations
run: |
pnpm --filter @open-design/daemon build
pnpm --filter @open-design/desktop build
pnpm --filter @open-design/web build:sidecar
- name: Clean Playwright state
run: pnpm -C e2e exec tsx scripts/playwright.ts clean
- name: Run UI shell smoke
run: ${{ matrix.smoke_command }}
- name: Run UI P0 domain
run: ${{ matrix.command }}
- name: Upload Playwright debug artifact
if: ${{ always() }}
uses: actions/upload-artifact@v7
with:
name: ui-p0-${{ github.run_id }}-${{ matrix.name }}
path: |
e2e/ui/reports/playwright-html-report
e2e/ui/reports/test-results
e2e/ui/reports/results.json
e2e/ui/test-results
if-no-files-found: ignore
retention-days: 7
ui_extended:
name: UI P1 (${{ matrix.name }})
if: ${{ github.repository == 'nexu-io/open-design' && (github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.suite == 'p0p1')) }}
runs-on: ubuntu-latest
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
include:
- name: P1 shard 1
part: p1
command: pnpm -C e2e exec playwright test -c playwright.config.ts ui --grep '\[P1\]' --shard=1/2
- name: P1 shard 2
part: p1
command: pnpm -C e2e exec playwright test -c playwright.config.ts ui --grep '\[P1\]' --shard=2/2
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Setup workspace
uses: ./.github/actions/setup-workspace
- name: Setup Playwright
uses: ./.github/actions/setup-playwright
with:
package-json-path: e2e/package.json
install-command: pnpm -C e2e exec playwright install --with-deps chromium
- name: Prebuild workspace type declarations
run: |
pnpm --filter @open-design/daemon build
pnpm --filter @open-design/desktop build
pnpm --filter @open-design/web build:sidecar
- name: Clean Playwright state
run: pnpm -C e2e exec tsx scripts/playwright.ts clean
- name: Run UI P1 shard
run: ${{ matrix.command }}
- name: Upload Playwright debug artifact
if: ${{ always() }}
uses: actions/upload-artifact@v7
with:
name: ui-extended-main-${{ github.run_id }}-${{ matrix.part }}-${{ matrix.name }}
path: |
e2e/ui/reports/playwright-html-report
e2e/ui/reports/test-results
e2e/ui/reports/results.json
e2e/ui/test-results
if-no-files-found: ignore
retention-days: 7
ui_full_manual:
name: Full UI regression
if: ${{ github.repository == 'nexu-io/open-design' && github.event_name == 'workflow_dispatch' && inputs.suite == 'full' }}
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Setup workspace
uses: ./.github/actions/setup-workspace
- name: Setup Playwright
uses: ./.github/actions/setup-playwright
with:
package-json-path: e2e/package.json
install-command: pnpm -C e2e exec playwright install --with-deps chromium
- name: Prebuild workspace type declarations
run: |
pnpm --filter @open-design/daemon build
pnpm --filter @open-design/desktop build
pnpm --filter @open-design/web build:sidecar
- name: Clean Playwright state
run: pnpm -C e2e exec tsx scripts/playwright.ts clean
- name: Run full UI
run: pnpm -C e2e test:ui
- name: Upload Playwright debug artifact
if: ${{ always() }}
uses: actions/upload-artifact@v7
with:
name: ui-full-manual-${{ github.run_id }}
path: |
e2e/ui/reports/playwright-html-report
e2e/ui/reports/test-results
e2e/ui/reports/results.json
e2e/ui/test-results
if-no-files-found: ignore
retention-days: 7