Skip to content

Commit c8db1f5

Browse files
ktranDevtools-frontend LUCI CQ
authored andcommitted
Update e2e stressor bot docs
Bug: none Change-Id: I66c74cd96c81304b69b5d17b9e9c5a1fa2a93a4f Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5973205 Commit-Queue: Kim-Anh Tran <[email protected]> Reviewed-by: Philip Pfaffe <[email protected]>
1 parent 2da3fc4 commit c8db1f5

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

test/e2e/README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,13 @@ it.repeat(20, 'find element', async () => {...});
144144
To see if certain tests are flaky you can use the E2E stressor bots. Open a CL with your test changes and run the following command specifying your test file:
145145

146146
```sh
147-
git cl try -B devtools-frontend/try -b e2e_stressor_linux -b e2e_stressor_win64 -b e2e_stressor_mac -p e2e_env='{"TEST_PATTERNS":"network/network-datagrid_test.ts","ITERATIONS":20}'
147+
git cl try -B devtools-frontend/try -b e2e_stressor_linux -b e2e_stressor_win64 -b e2e_stressor_mac -p runner_args='test/e2e/sources/navigator-view_test.ts --repeat=80'
148148
```
149149

150150
or multiple test files:
151151

152152
```sh
153-
git cl try -B devtools-frontend/try -b e2e_stressor_linux -b e2e_stressor_win64 -b e2e_stressor_mac -p e2e_env='{"TEST_PATTERNS":"network/network-datagrid_test.ts,network/network_test.ts","ITERATIONS":20}'
153+
git cl try -B devtools-frontend/try -b e2e_stressor_linux -b e2e_stressor_win64 -b e2e_stressor_mac -p runner_args='test/e2e/sources/navigator-view_test.ts test/e2e/sources/snippets_test.ts --repeat=80'
154154
```
155155

156156
This will run the specified tests on dedicated bots with the specified number of iterations. Note that in order for iterations to work the test should be using `it` from `mocha_extensions.ts`.
@@ -160,12 +160,9 @@ The following command runs the stressor bot on all files of the latest commit wi
160160
```sh
161161
git cl try -B devtools-frontend/try \
162162
-b e2e_stressor_linux \
163-
-p e2e_env="{ \
164-
\"TEST_PATTERNS\": \"$(git diff-tree --no-commit-id --name-only HEAD -r | grep test/e2e | cut -c 10- - | tr "\n" ",")_\", \
165-
\"STRESS\": true, \
166-
\"LATE_PROMISES\": true, \
167-
\"ITERATIONS\": 20 \
168-
}"
163+
-p runner_args="\
164+
$(git diff-tree --no-commit-id --name-only HEAD -r | grep test/e2e | grep -v e2e/helpers | cut -c 10- - | tr "\n" " ") \
165+
--repeat=20"
169166
```
170167

171168
> By default, tests are run using the debug build. To run it with the release build, append `-p builder_config=Release` to the end of the command.

0 commit comments

Comments
 (0)