Skip to content

Commit 50bc4a4

Browse files
committed
fix: stabilize e2e watch ci budgets
1 parent 607612d commit 50bc4a4

3 files changed

Lines changed: 78 additions & 24 deletions

File tree

.github/workflows/e2e-watch.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ jobs:
151151
watch_case: uni-app-vite-tailwindcss-v3
152152
round_profile: default
153153
watch_save_snapshots: '1'
154-
timeout_minutes: 40
155-
watch_timeout_ms: '280000'
156-
watch_poll_ms: '320'
157-
watch_command_timeout_ms: '720000'
154+
timeout_minutes: 60
155+
watch_timeout_ms: '420000'
156+
watch_poll_ms: '340'
157+
watch_command_timeout_ms: '1500000'
158158
- os: windows-latest
159159
runner_label: windows
160160
watch_case: mpx-tailwindcss-v3
@@ -169,37 +169,37 @@ jobs:
169169
watch_case: taro-webpack-react-tailwindcss-v3
170170
round_profile: default
171171
watch_save_snapshots: '1'
172-
timeout_minutes: 40
173-
watch_timeout_ms: '280000'
174-
watch_poll_ms: '320'
175-
watch_command_timeout_ms: '720000'
172+
timeout_minutes: 60
173+
watch_timeout_ms: '420000'
174+
watch_poll_ms: '340'
175+
watch_command_timeout_ms: '1500000'
176176
- os: windows-latest
177177
runner_label: windows
178178
watch_case: uni-app-vite-tailwindcss-v3
179179
round_profile: issue33
180180
watch_save_snapshots: '1'
181-
timeout_minutes: 40
182-
watch_timeout_ms: '280000'
183-
watch_poll_ms: '320'
184-
watch_command_timeout_ms: '720000'
181+
timeout_minutes: 60
182+
watch_timeout_ms: '420000'
183+
watch_poll_ms: '340'
184+
watch_command_timeout_ms: '1500000'
185185
- os: windows-latest
186186
runner_label: windows
187187
watch_case: taro-webpack-react-tailwindcss-v4
188188
round_profile: issue33
189189
watch_save_snapshots: '1'
190-
timeout_minutes: 45
191-
watch_timeout_ms: '320000'
192-
watch_poll_ms: '340'
193-
watch_command_timeout_ms: '840000'
190+
timeout_minutes: 70
191+
watch_timeout_ms: '600000'
192+
watch_poll_ms: '400'
193+
watch_command_timeout_ms: '1800000'
194194
- os: windows-latest
195195
runner_label: windows
196196
watch_case: taro-vite-vue3-tailwindcss-v4
197197
round_profile: default
198198
watch_save_snapshots: '1'
199-
timeout_minutes: 45
200-
watch_timeout_ms: '320000'
201-
watch_poll_ms: '340'
202-
watch_command_timeout_ms: '840000'
199+
timeout_minutes: 70
200+
watch_timeout_ms: '600000'
201+
watch_poll_ms: '400'
202+
watch_command_timeout_ms: '1800000'
203203
- os: windows-latest
204204
runner_label: windows
205205
watch_case: weapp-vite-tailwindcss-v3
@@ -223,10 +223,10 @@ jobs:
223223
watch_case: mpx-tailwindcss-v4
224224
round_profile: default
225225
watch_save_snapshots: '1'
226-
timeout_minutes: 40
227-
watch_timeout_ms: '280000'
228-
watch_poll_ms: '320'
229-
watch_command_timeout_ms: '720000'
226+
timeout_minutes: 60
227+
watch_timeout_ms: '600000'
228+
watch_poll_ms: '400'
229+
watch_command_timeout_ms: '1500000'
230230
- os: windows-latest
231231
runner_label: windows
232232
watch_case: weapp-vite-tailwindcss-v4

e2e/watch/hot-update/shared.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,11 @@ const noApplyValidationCases = new Set<ConcreteWatchCaseName>([
239239
])
240240
const noFunctionValidationCases = new Set<ConcreteWatchCaseName>([
241241
'mpx-tailwindcss-v4',
242+
'taro-vite-react-tailwindcss-v4',
243+
'taro-webpack-react-tailwindcss-v4',
242244
])
243245
const referenceDirectiveRequiredCases = new Set<ConcreteWatchCaseName>([
246+
'gulp-tailwindcss-v4',
244247
'mpx-tailwindcss-v4',
245248
'uni-app-vite-tailwindcss-v4',
246249
'taro-vite-react-tailwindcss-v4',

packages/weapp-tailwindcss/test/ci/workflows.test.ts

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,59 @@ describe('e2e watch workflow', () => {
253253
watch_max_hot_update_ms: '60000',
254254
watch_command_timeout_ms: '1500000',
255255
}
256+
const slowWindowsPrBudgets = [
257+
{
258+
watch_case: 'uni-app-vite-tailwindcss-v3',
259+
round_profile: 'default',
260+
timeout_minutes: 60,
261+
watch_timeout_ms: '420000',
262+
watch_command_timeout_ms: '1500000',
263+
},
264+
{
265+
watch_case: 'taro-webpack-react-tailwindcss-v3',
266+
round_profile: 'default',
267+
timeout_minutes: 60,
268+
watch_timeout_ms: '420000',
269+
watch_command_timeout_ms: '1500000',
270+
},
271+
{
272+
watch_case: 'uni-app-vite-tailwindcss-v3',
273+
round_profile: 'issue33',
274+
timeout_minutes: 60,
275+
watch_timeout_ms: '420000',
276+
watch_command_timeout_ms: '1500000',
277+
},
278+
{
279+
watch_case: 'taro-webpack-react-tailwindcss-v4',
280+
round_profile: 'issue33',
281+
timeout_minutes: 70,
282+
watch_timeout_ms: '600000',
283+
watch_command_timeout_ms: '1800000',
284+
},
285+
{
286+
watch_case: 'taro-vite-vue3-tailwindcss-v4',
287+
round_profile: 'default',
288+
timeout_minutes: 70,
289+
watch_timeout_ms: '600000',
290+
watch_command_timeout_ms: '1800000',
291+
},
292+
{
293+
watch_case: 'mpx-tailwindcss-v4',
294+
round_profile: 'default',
295+
timeout_minutes: 60,
296+
watch_timeout_ms: '600000',
297+
watch_command_timeout_ms: '1500000',
298+
},
299+
]
256300

257301
expect(prRows).toContainEqual(expect.objectContaining(slowMacosWeappViteBudget))
302+
for (const budget of slowWindowsPrBudgets) {
303+
expect(prRows).toContainEqual(expect.objectContaining({
304+
os: 'windows-latest',
305+
runner_label: 'windows',
306+
...budget,
307+
}))
308+
}
258309
expect(nightlyRows).toContainEqual(expect.objectContaining(slowMacosWeappViteBudget))
259310
expect(nightlyRows).toContainEqual(expect.objectContaining({
260311
...slowMacosWeappViteBudget,

0 commit comments

Comments
 (0)