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

Issue 2151983002: Adding logic to restart the browser if there is an exception (Closed)

Created:
4 years, 5 months ago by eyaich
Modified:
4 years, 5 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding logic to restart the browser if there is an exception in the setUp of GpuIntegrationTest Note: I am not certain there is a good way to test the setup functionality of GpuIntegrationTest in a unittest. Given that we are using a Fakes, I have added a hack to simulate throwing an error in the setup method, but it is not how it would behave in practice. Any suggestions for a better way to unittest this are appreciated. Dependent on https://codereview.chromium.org/2148283003 landing in telemetry first BUG=628022 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/202a09250ad4141be8a80cd63881998d8e821f09 Cr-Commit-Position: refs/heads/master@{#407022}

Patch Set 1 #

Patch Set 2 : Adding removed logging statement #

Total comments: 9

Patch Set 3 : Updating where the crash happens for the unittest #

Total comments: 6

Patch Set 4 : Adding exception logging on failure #

Total comments: 6

Patch Set 5 : Raising error after restarting the browser #

Patch Set 6 : Syncing client #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -3 lines) Patch
M content/test/gpu/gpu_tests/gpu_integration_test.py View 1 2 3 4 1 chunk +8 lines, -1 line 0 comments Download
M content/test/gpu/gpu_tests/gpu_integration_test_unittest.py View 1 2 3 4 chunks +15 lines, -2 lines 0 comments Download

Messages

Total messages: 52 (15 generated)
eyaich
4 years, 5 months ago (2016-07-14 18:48:22 UTC) #4
nednguyen
https://codereview.chromium.org/2151983002/diff/20001/content/test/gpu/gpu_tests/gpu_integration_test.py File content/test/gpu/gpu_tests/gpu_integration_test.py (right): https://codereview.chromium.org/2151983002/diff/20001/content/test/gpu/gpu_tests/gpu_integration_test.py#newcode134 content/test/gpu/gpu_tests/gpu_integration_test.py:134: self._RestartBrowser('failure in setup') We still should add "raise" after ...
4 years, 5 months ago (2016-07-14 19:04:12 UTC) #5
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/2151983002/diff/20001/content/test/gpu/gpu_tests/gpu_integration_test_unittest.py File content/test/gpu/gpu_tests/gpu_integration_test_unittest.py (right): https://codereview.chromium.org/2151983002/diff/20001/content/test/gpu/gpu_tests/gpu_integration_test_unittest.py#newcode39 content/test/gpu/gpu_tests/gpu_integration_test_unittest.py:39: self.tab.Navigate('chrome://crash') Per comments in https://codereview.chromium.org/2148283003 , what if this ...
4 years, 5 months ago (2016-07-14 21:38:22 UTC) #6
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/2151983002/diff/20001/content/test/gpu/gpu_tests/gpu_integration_test.py File content/test/gpu/gpu_tests/gpu_integration_test.py (right): https://codereview.chromium.org/2151983002/diff/20001/content/test/gpu/gpu_tests/gpu_integration_test.py#newcode134 content/test/gpu/gpu_tests/gpu_integration_test.py:134: self._RestartBrowser('failure in setup') On 2016/07/14 19:04:12, nednguyen wrote: > ...
4 years, 5 months ago (2016-07-14 23:06:17 UTC) #7
nednguyen
https://codereview.chromium.org/2151983002/diff/20001/content/test/gpu/gpu_tests/gpu_integration_test.py File content/test/gpu/gpu_tests/gpu_integration_test.py (right): https://codereview.chromium.org/2151983002/diff/20001/content/test/gpu/gpu_tests/gpu_integration_test.py#newcode134 content/test/gpu/gpu_tests/gpu_integration_test.py:134: self._RestartBrowser('failure in setup') On 2016/07/14 23:06:17, Ken Russell wrote: ...
4 years, 5 months ago (2016-07-14 23:10:01 UTC) #8
nednguyen
https://codereview.chromium.org/2151983002/diff/20001/content/test/gpu/gpu_tests/gpu_integration_test.py File content/test/gpu/gpu_tests/gpu_integration_test.py (right): https://codereview.chromium.org/2151983002/diff/20001/content/test/gpu/gpu_tests/gpu_integration_test.py#newcode134 content/test/gpu/gpu_tests/gpu_integration_test.py:134: self._RestartBrowser('failure in setup') On 2016/07/14 23:10:01, nednguyen wrote: > ...
4 years, 5 months ago (2016-07-14 23:16:47 UTC) #9
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/2151983002/diff/20001/content/test/gpu/gpu_tests/gpu_integration_test.py File content/test/gpu/gpu_tests/gpu_integration_test.py (right): https://codereview.chromium.org/2151983002/diff/20001/content/test/gpu/gpu_tests/gpu_integration_test.py#newcode134 content/test/gpu/gpu_tests/gpu_integration_test.py:134: self._RestartBrowser('failure in setup') On 2016/07/14 23:16:47, nednguyen wrote: > ...
4 years, 5 months ago (2016-07-15 01:10:37 UTC) #10
nednguyen
https://codereview.chromium.org/2151983002/diff/20001/content/test/gpu/gpu_tests/gpu_integration_test.py File content/test/gpu/gpu_tests/gpu_integration_test.py (right): https://codereview.chromium.org/2151983002/diff/20001/content/test/gpu/gpu_tests/gpu_integration_test.py#newcode134 content/test/gpu/gpu_tests/gpu_integration_test.py:134: self._RestartBrowser('failure in setup') On 2016/07/15 01:10:37, Ken Russell wrote: ...
4 years, 5 months ago (2016-07-15 01:39:55 UTC) #11
eyaich
https://codereview.chromium.org/2151983002/diff/20001/content/test/gpu/gpu_tests/gpu_integration_test.py File content/test/gpu/gpu_tests/gpu_integration_test.py (right): https://codereview.chromium.org/2151983002/diff/20001/content/test/gpu/gpu_tests/gpu_integration_test.py#newcode134 content/test/gpu/gpu_tests/gpu_integration_test.py:134: self._RestartBrowser('failure in setup') On 2016/07/15 01:39:55, nednguyen wrote: > ...
4 years, 5 months ago (2016-07-15 13:30:27 UTC) #12
Ken Russell (switch to Gerrit)
> So I see one problem with this workflow. > > The original errors we ...
4 years, 5 months ago (2016-07-15 18:05:24 UTC) #13
nednguyen
https://codereview.chromium.org/2151983002/diff/40001/content/test/gpu/gpu_tests/gpu_integration_test.py File content/test/gpu/gpu_tests/gpu_integration_test.py (right): https://codereview.chromium.org/2151983002/diff/40001/content/test/gpu/gpu_tests/gpu_integration_test.py#newcode131 content/test/gpu/gpu_tests/gpu_integration_test.py:131: except Exception: On 2016/07/15 18:05:24, Ken Russell wrote: > ...
4 years, 5 months ago (2016-07-15 18:11:15 UTC) #14
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/2151983002/diff/40001/content/test/gpu/gpu_tests/gpu_integration_test.py File content/test/gpu/gpu_tests/gpu_integration_test.py (right): https://codereview.chromium.org/2151983002/diff/40001/content/test/gpu/gpu_tests/gpu_integration_test.py#newcode131 content/test/gpu/gpu_tests/gpu_integration_test.py:131: except Exception: On 2016/07/15 18:11:15, nednguyen wrote: > On ...
4 years, 5 months ago (2016-07-16 01:09:54 UTC) #15
eyaich
https://codereview.chromium.org/2151983002/diff/40001/content/test/gpu/gpu_tests/gpu_integration_test.py File content/test/gpu/gpu_tests/gpu_integration_test.py (right): https://codereview.chromium.org/2151983002/diff/40001/content/test/gpu/gpu_tests/gpu_integration_test.py#newcode131 content/test/gpu/gpu_tests/gpu_integration_test.py:131: except Exception: On 2016/07/16 01:09:54, Ken Russell wrote: > ...
4 years, 5 months ago (2016-07-21 17:58:07 UTC) #16
nednguyen
https://codereview.chromium.org/2151983002/diff/60001/content/test/gpu/gpu_tests/gpu_integration_test.py File content/test/gpu/gpu_tests/gpu_integration_test.py (right): https://codereview.chromium.org/2151983002/diff/60001/content/test/gpu/gpu_tests/gpu_integration_test.py#newcode135 content/test/gpu/gpu_tests/gpu_integration_test.py:135: self._RestartBrowser('failure in setup') I still think we should reraise ...
4 years, 5 months ago (2016-07-21 18:01:56 UTC) #17
eyaich
https://codereview.chromium.org/2151983002/diff/60001/content/test/gpu/gpu_tests/gpu_integration_test.py File content/test/gpu/gpu_tests/gpu_integration_test.py (right): https://codereview.chromium.org/2151983002/diff/60001/content/test/gpu/gpu_tests/gpu_integration_test.py#newcode135 content/test/gpu/gpu_tests/gpu_integration_test.py:135: self._RestartBrowser('failure in setup') On 2016/07/21 18:01:55, nednguyen wrote: > ...
4 years, 5 months ago (2016-07-21 18:35:36 UTC) #18
nednguyen
https://codereview.chromium.org/2151983002/diff/60001/content/test/gpu/gpu_tests/gpu_integration_test.py File content/test/gpu/gpu_tests/gpu_integration_test.py (right): https://codereview.chromium.org/2151983002/diff/60001/content/test/gpu/gpu_tests/gpu_integration_test.py#newcode135 content/test/gpu/gpu_tests/gpu_integration_test.py:135: self._RestartBrowser('failure in setup') On 2016/07/21 18:35:36, eyaich (ooo july18-july20) ...
4 years, 5 months ago (2016-07-21 18:40:30 UTC) #19
eyaich
https://codereview.chromium.org/2151983002/diff/60001/content/test/gpu/gpu_tests/gpu_integration_test.py File content/test/gpu/gpu_tests/gpu_integration_test.py (right): https://codereview.chromium.org/2151983002/diff/60001/content/test/gpu/gpu_tests/gpu_integration_test.py#newcode135 content/test/gpu/gpu_tests/gpu_integration_test.py:135: self._RestartBrowser('failure in setup') On 2016/07/21 18:40:30, nednguyen wrote: > ...
4 years, 5 months ago (2016-07-21 18:48:02 UTC) #20
nednguyen
https://codereview.chromium.org/2151983002/diff/60001/content/test/gpu/gpu_tests/gpu_integration_test.py File content/test/gpu/gpu_tests/gpu_integration_test.py (right): https://codereview.chromium.org/2151983002/diff/60001/content/test/gpu/gpu_tests/gpu_integration_test.py#newcode135 content/test/gpu/gpu_tests/gpu_integration_test.py:135: self._RestartBrowser('failure in setup') On 2016/07/21 18:48:02, eyaich wrote: > ...
4 years, 5 months ago (2016-07-21 18:57:51 UTC) #21
eyaich
https://codereview.chromium.org/2151983002/diff/60001/content/test/gpu/gpu_tests/gpu_integration_test.py File content/test/gpu/gpu_tests/gpu_integration_test.py (right): https://codereview.chromium.org/2151983002/diff/60001/content/test/gpu/gpu_tests/gpu_integration_test.py#newcode135 content/test/gpu/gpu_tests/gpu_integration_test.py:135: self._RestartBrowser('failure in setup') On 2016/07/21 18:57:51, nednguyen wrote: > ...
4 years, 5 months ago (2016-07-21 19:04:10 UTC) #22
nednguyen
lgtm
4 years, 5 months ago (2016-07-21 19:22:15 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2151983002/80001
4 years, 5 months ago (2016-07-21 19:43:04 UTC) #26
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-21 19:43:06 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/99837)
4 years, 5 months ago (2016-07-21 19:59:07 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2151983002/80001
4 years, 5 months ago (2016-07-21 20:28:48 UTC) #31
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-21 20:28:50 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2151983002/100001
4 years, 5 months ago (2016-07-21 20:39:07 UTC) #35
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-21 20:39:10 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: mac_optional_gpu_tests_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_optional_gpu_tests_rel/builds/2168)
4 years, 5 months ago (2016-07-21 22:08:32 UTC) #38
Ken Russell (switch to Gerrit)
On 2016/07/21 22:08:32, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 5 months ago (2016-07-21 22:47:49 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2151983002/100001
4 years, 5 months ago (2016-07-21 22:48:36 UTC) #41
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-21 22:48:38 UTC) #42
Ken Russell (switch to Gerrit)
On 2016/07/21 22:47:49, Ken Russell wrote: > On 2016/07/21 22:08:32, commit-bot: I haz the power ...
4 years, 5 months ago (2016-07-21 23:32:31 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/108559)
4 years, 5 months ago (2016-07-22 01:33:29 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2151983002/100001
4 years, 5 months ago (2016-07-22 01:52:08 UTC) #47
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-22 01:52:11 UTC) #48
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-07-22 03:26:49 UTC) #50
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 03:29:38 UTC) #52
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/202a09250ad4141be8a80cd63881998d8e821f09
Cr-Commit-Position: refs/heads/master@{#407022}

Powered by Google App Engine
This is Rietveld 408576698