Skip to content

Commit a76ce65

Browse files
Run 40 times
1 parent 63675a2 commit a76ce65

1 file changed

Lines changed: 59 additions & 30 deletions

File tree

.github/workflows/e2e.yml

Lines changed: 59 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on:
2020
inputs:
2121
verbose:
2222
description: Verbose logging
23-
default: false
23+
default: true
2424
required: false
2525
type: boolean
2626

@@ -39,31 +39,66 @@ jobs:
3939
run: 'exit 1'
4040
- run: 'exit 0'
4141
e2e:
42-
name: ${{ matrix.this_chunk }}/${{ matrix.total_chunks }} ${{ matrix.kind }}-${{ matrix.os }}-${{ matrix.head }}
42+
name: ${{ matrix.kind }}-${{ matrix.os }}-${{ matrix.head }}-${{ matrix.this_chunk }}-${{ matrix.this_repeat }}
4343
strategy:
4444
fail-fast: false
4545
matrix:
4646
# TODO(#876): Add Windows CI.
47-
os: [ubuntu-latest, macos-latest]
48-
head: [headful, 'new-headless', 'old-headless']
47+
# os: [macos-latest]
48+
os: [ubuntu-latest]
49+
# head: [headful, 'new-headless', 'old-headless']
50+
head: ['headful']
4951
# `cd` runs e2e via `chromedriver`. `node` runs tests using `NodeJS` runner.
50-
kind: [cd, node]
51-
total_chunks: [4]
52-
this_chunk: [0, 1, 2, 3]
53-
exclude:
54-
# Run e2e via NodeJS only in new headless ubuntu.
55-
- os: macos-latest
56-
kind: node
57-
- os: ubuntu-latest
58-
kind: node
59-
head: headful
60-
- os: ubuntu-latest
61-
kind: node
62-
head: old-headless
63-
# TODO(#3294): Enable headful chromedriver on ubuntu.
64-
- os: ubuntu-latest
65-
head: headful
66-
kind: cd
52+
# kind: [cd, node]
53+
kind: [node]
54+
# kind: [node]
55+
total_chunks: [3]
56+
this_chunk: [0, 1, 2]
57+
# `REPEAT_TESTS` in e2e does not work with snapshots, so need to repeat it manually.
58+
total_repeat_tests: [40]
59+
this_repeat:
60+
[
61+
0,
62+
1,
63+
2,
64+
3,
65+
4,
66+
5,
67+
6,
68+
7,
69+
8,
70+
9,
71+
10,
72+
11,
73+
12,
74+
13,
75+
14,
76+
15,
77+
16,
78+
17,
79+
18,
80+
19,
81+
20,
82+
21,
83+
22,
84+
23,
85+
24,
86+
25,
87+
26,
88+
27,
89+
28,
90+
29,
91+
30,
92+
31,
93+
32,
94+
33,
95+
34,
96+
35,
97+
36,
98+
37,
99+
38,
100+
39,
101+
]
67102
runs-on: ${{ matrix.os }}
68103
steps:
69104
- name: Checkout
@@ -102,11 +137,8 @@ jobs:
102137
--this-chunk=${{ matrix.this_chunk }}
103138
--total-chunks=${{ matrix.total_chunks }}
104139
env:
105-
VERBOSE: ${{ github.event.inputs.verbose }}
140+
VERBOSE: true
106141
CHROMEDRIVER: ${{ matrix.kind == 'cd' }}
107-
# TODO: Fix tests and don't rerun them.
108-
# https://github.com/GoogleChromeLabs/chromium-bidi/issues/3412
109-
RERUNS_TIMES: ${{ matrix.kind == 'node' && '4' || '0' }}
110142
- name: Run E2E tests
111143
if: matrix.os != 'ubuntu-latest' || matrix.head != 'headful'
112144
timeout-minutes: 20
@@ -116,14 +148,11 @@ jobs:
116148
--this-chunk=${{ matrix.this_chunk }}
117149
--total-chunks=${{ matrix.total_chunks }}
118150
env:
119-
VERBOSE: ${{ github.event.inputs.verbose }}
151+
VERBOSE: true
120152
CHROMEDRIVER: ${{ matrix.kind == 'cd' }}
121-
# TODO: Fix tests and don't rerun them.
122-
# https://github.com/GoogleChromeLabs/chromium-bidi/issues/3412
123-
RERUNS_TIMES: ${{ matrix.kind == 'node' && '4' || '0' }}
124153
- name: Upload artifacts
125154
if: ${{ !cancelled() }}
126155
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
127156
with:
128-
name: ${{ matrix.kind }}-${{ matrix.os }}-${{ matrix.head }}-${{ matrix.this_chunk }}-artifacts
157+
name: ${{ matrix.kind }}-${{ matrix.os }}-${{ matrix.head }}-${{ matrix.this_chunk }}-${{ matrix.this_repeat }}-artifacts
129158
path: logs

0 commit comments

Comments
 (0)