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

Issue 2295913002: Enable some profile_chrome unit tests on Trybots (Closed)

Created:
4 years, 3 months ago by washingtonp
Modified:
4 years, 3 months ago
Reviewers:
Zhen Wang, Chris Craik, Sami
CC:
catapult-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/external/github.com/catapult-project/catapult.git@master
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Enable some profile_chrome unit tests on Trybots, specifically the ones that will currently run without error. This requires a sleep in between profile_chrome tests to avoid a race condition that sometimes comes up between unit tests. This also involves waking up and unlocking the Android screen between every test. BUG=catapult:#2748 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/aca5f2d4d1e963ffe1d57d804df67da5fa05ab55

Patch Set 1 : Sleep in between profile_chrome tests to avoid race condition #

Patch Set 2 : Turn on device screen and unlock device between unit tests #

Patch Set 3 : Rebase + add option to never run test #

Patch Set 4 : Never run tests on unit tests that currently fail on Trybot #

Patch Set 5 : Add never-run decorator to perf agent as well #

Total comments: 8

Patch Set 6 : Open browser during unit tests only when needed #

Patch Set 7 : Add comments specifying why each test is disabled #

Patch Set 8 : Enable DDMS tracing test and remove fixed time interval when starting browser #

Patch Set 9 : Disable DDMS test because it is flaky #

Total comments: 6

Patch Set 10 : Move browser startup methods to test suite #

Patch Set 11 : Disabled Chrome tracing test since it occasionally fails as well #

Total comments: 1

Patch Set 12 : Rebase #

Patch Set 13 : Refactored profiler unittests to work with merged in refactored profile_chrome controller #

Patch Set 14 : Add Chris as owner of Systrace bin directory #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -105 lines) Patch
M systrace/bin/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M systrace/bin/run_tests View 1 chunk +1 line, -2 lines 0 comments Download
M systrace/profile_chrome/agents_unittest.py View 1 2 3 4 5 6 7 8 9 10 2 chunks +25 lines, -4 lines 0 comments Download
M systrace/profile_chrome/atrace_tracing_agent_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M systrace/profile_chrome/chrome_startup_tracing_agent_unittest.py View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M systrace/profile_chrome/chrome_tracing_agent.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M systrace/profile_chrome/chrome_tracing_agent_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +19 lines, -1 line 0 comments Download
M systrace/profile_chrome/ddms_tracing_agent_unittest.py View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
A + systrace/profile_chrome/fake_agent_1.py View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +19 lines, -44 lines 0 comments Download
A systrace/profile_chrome/fake_agent_2.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +68 lines, -0 lines 0 comments Download
M systrace/profile_chrome/perf_tracing_agent_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -0 lines 0 comments Download
M systrace/profile_chrome/profiler_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +16 lines, -52 lines 0 comments Download
M systrace/systrace/decorators.py View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 36 (17 generated)
washingtonp
ptal
4 years, 3 months ago (2016-09-01 22:57:47 UTC) #8
Zhen Wang
https://codereview.chromium.org/2295913002/diff/160001/systrace/profile_chrome/agents_unittest.py File systrace/profile_chrome/agents_unittest.py (right): https://codereview.chromium.org/2295913002/diff/160001/systrace/profile_chrome/agents_unittest.py#newcode33 systrace/profile_chrome/agents_unittest.py:33: time.sleep(5) Have you figured out how to know if ...
4 years, 3 months ago (2016-09-01 23:16:56 UTC) #9
Sami
https://codereview.chromium.org/2295913002/diff/160001/systrace/profile_chrome/agents_unittest.py File systrace/profile_chrome/agents_unittest.py (right): https://codereview.chromium.org/2295913002/diff/160001/systrace/profile_chrome/agents_unittest.py#newcode33 systrace/profile_chrome/agents_unittest.py:33: time.sleep(5) On 2016/09/01 23:16:56, Zhen Wang wrote: > Have ...
4 years, 3 months ago (2016-09-02 13:01:14 UTC) #10
Sami
Thanks for doing this by the way! It's really difficult to catch regressions without having ...
4 years, 3 months ago (2016-09-02 13:01:45 UTC) #11
washingtonp
ptal https://codereview.chromium.org/2295913002/diff/160001/systrace/profile_chrome/agents_unittest.py File systrace/profile_chrome/agents_unittest.py (right): https://codereview.chromium.org/2295913002/diff/160001/systrace/profile_chrome/agents_unittest.py#newcode33 systrace/profile_chrome/agents_unittest.py:33: time.sleep(5) On 2016/09/01 23:16:56, Zhen Wang wrote: > ...
4 years, 3 months ago (2016-09-08 22:51:37 UTC) #14
Sami
https://codereview.chromium.org/2295913002/diff/280001/systrace/profile_chrome/chrome_tracing_agent.py File systrace/profile_chrome/chrome_tracing_agent.py (right): https://codereview.chromium.org/2295913002/diff/280001/systrace/profile_chrome/chrome_tracing_agent.py#newcode43 systrace/profile_chrome/chrome_tracing_agent.py:43: curr_browser = util.GetChromeProcessID(device, package_info) I don't think the agents ...
4 years, 3 months ago (2016-09-09 10:28:25 UTC) #15
washingtonp
ptal https://codereview.chromium.org/2295913002/diff/280001/systrace/profile_chrome/chrome_tracing_agent.py File systrace/profile_chrome/chrome_tracing_agent.py (right): https://codereview.chromium.org/2295913002/diff/280001/systrace/profile_chrome/chrome_tracing_agent.py#newcode43 systrace/profile_chrome/chrome_tracing_agent.py:43: curr_browser = util.GetChromeProcessID(device, package_info) On 2016/09/09 10:28:25, Sami ...
4 years, 3 months ago (2016-09-09 18:07:29 UTC) #16
Sami
lgtm, thanks! https://codereview.chromium.org/2295913002/diff/320001/systrace/profile_chrome/agents_unittest.py File systrace/profile_chrome/agents_unittest.py (right): https://codereview.chromium.org/2295913002/diff/320001/systrace/profile_chrome/agents_unittest.py#newcode22 systrace/profile_chrome/agents_unittest.py:22: if curr_browser == None: nit: prefer "is ...
4 years, 3 months ago (2016-09-12 14:26:32 UTC) #17
Zhen Wang
lgtm
4 years, 3 months ago (2016-09-12 16:48:13 UTC) #18
Chris Craik
systrace changes LGTM
4 years, 3 months ago (2016-09-12 17:34:05 UTC) #19
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/2295913002/320001
4 years, 3 months ago (2016-09-12 17:37:09 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: Catapult Android Tryserver on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Android%20Tryserver/builds/1280)
4 years, 3 months ago (2016-09-12 17:46:39 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/2295913002/360001
4 years, 3 months ago (2016-09-12 19:17:56 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: Catapult Presubmit on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Presubmit/builds/4275)
4 years, 3 months ago (2016-09-12 19:33:21 UTC) #28
washingtonp
On 2016/09/12 19:33:21, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 3 months ago (2016-09-12 19:43:34 UTC) #29
Chris Craik
On 2016/09/12 at 19:43:34, washingtonp wrote: > On 2016/09/12 19:33:21, commit-bot: I haz the power ...
4 years, 3 months ago (2016-09-12 19:55:04 UTC) #30
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/2295913002/380001
4 years, 3 months ago (2016-09-12 20:02:19 UTC) #33
commit-bot: I haz the power
Committed patchset #14 (id:380001) as https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/aca5f2d4d1e963ffe1d57d804df67da5fa05ab55
4 years, 3 months ago (2016-09-12 20:23:55 UTC) #35
washingtonp
4 years, 3 months ago (2016-09-12 20:25:22 UTC) #36
Message was sent while issue was closed.
On 2016/09/12 20:23:55, commit-bot: I haz the power wrote:
> Committed patchset #14 (id:380001) as
>
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Thanks Chris. I added you as the OWNER for now. If anyone else
would like to be added/replaced, we can change the
OWNER file.

Powered by Google App Engine
This is Rietveld 408576698