Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Issue 2806373002: Fix swarming tests not running in parallel (Closed)

Created:
3 years, 8 months ago by kjellander_webrtc
Modified:
3 years, 8 months ago
CC:
webrtc-reviews_webrtc.org, mithro
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fix swarming tests not running in parallel Due to recent Chrome infra changes in https://chromium-review.googlesource.com/c/472290/ tests running on swarming are now assumed to emit JSON results or will be marked as failing. This requires us to use our gtest-parallel wrapper for all our Swarming tests (or implement the --isolated-script-test-output flag, which normally only is implemented by the Chromium test launcher). The low_bandwidth_audio_test can actually run in parallel, so just change that. The webrtc_nonparallel_tests cannot, so this CL changes MB to pass --workers=1 flag to gtest-parallel, which makes the tests run in sequence. This adds a little confusion but the root problem is really that our gtest-parallel script [1] does a lot more than just running the tests in parallel these days, so it should probably be renamed. Also make sure gtest-parallel-wrapper.py [2] consumes the --isolated-script-test-chartjson-output flag (unused) so we don't pass it on to the test executable. [1]: https://chromium.googlesource.com/external/github.com/google/gtest-parallel/+/master/gtest-parallel [2]: https://chromium.googlesource.com/external/webrtc/+/master/tools-webrtc/gtest-parallel-wrapper.py BUG=709988 TBR=ehmaldonado@webrtc.org NOTRY=True Review-Url: https://codereview.webrtc.org/2806373002 Cr-Commit-Position: refs/heads/master@{#17646} Committed: https://chromium.googlesource.com/external/webrtc/+/382f2b2c456e87a06df678b9a52986529e637300

Patch Set 1 #

Patch Set 2 : Fixing webrtc_nonparallel_tests #

Patch Set 3 : Eat --isolated-script-test-chartjson-output flag #

Patch Set 4 : Move workers flag #

Patch Set 5 : Move flag after executable #

Patch Set 6 : Don't add flag for memcheck #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -11 lines) Patch
M tools-webrtc/gtest-parallel-wrapper.py View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M tools-webrtc/mb/gn_isolate_map.pyl View 1 chunk +1 line, -1 line 0 comments Download
M tools-webrtc/mb/mb.py View 1 2 3 4 5 2 chunks +10 lines, -10 lines 0 comments Download
M tools-webrtc/mb/mb_unittest.py View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (24 generated)
kjellander_webrtc
On 2017/04/10 18:03:45, kjellander_webrtc wrote: > mailto:kjellander@webrtc.org changed reviewers: > - mailto:oprypin@webrtc.org This doesn't help ...
3 years, 8 months ago (2017-04-10 18:04:10 UTC) #3
kjellander_webrtc
On 2017/04/10 18:04:10, kjellander_webrtc wrote: > On 2017/04/10 18:03:45, kjellander_webrtc wrote: > > mailto:kjellander@webrtc.org changed ...
3 years, 8 months ago (2017-04-11 06:04:25 UTC) #13
kjellander_webrtc
Now I think I nailed this.
3 years, 8 months ago (2017-04-11 09:20:51 UTC) #18
mbonadei
On 2017/04/11 09:20:51, kjellander_webrtc wrote: > Now I think I nailed this. lgtm
3 years, 8 months ago (2017-04-11 09:29:48 UTC) #21
kjellander_webrtc
On 2017/04/11 09:29:48, mbonadei wrote: > On 2017/04/11 09:20:51, kjellander_webrtc wrote: > > Now I ...
3 years, 8 months ago (2017-04-11 11:03:43 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2806373002/140001
3 years, 8 months ago (2017-04-11 11:04:09 UTC) #28
commit-bot: I haz the power
Committed patchset #6 (id:140001) as https://chromium.googlesource.com/external/webrtc/+/382f2b2c456e87a06df678b9a52986529e637300
3 years, 8 months ago (2017-04-11 11:07:06 UTC) #31
mbonadei
3 years, 8 months ago (2017-04-11 11:12:25 UTC) #32
Message was sent while issue was closed.
On 2017/04/11 11:03:43, kjellander_webrtc wrote:
> *phew*, thanks to us having memcheck enabled by default I caught the fact that
> --workers=1 cannot be passed for that bot.
> Made a small fix for that in PS#6 and will submit that now.

Yeah, that was almost impossible to catch.

Powered by Google App Engine
This is Rietveld 408576698