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

Issue 321773002: [PowerProfiler] Make sure correct version of pySerial is imported with monsoon profiler. (Closed)

Created:
6 years, 6 months ago by vivekg_samsung
Modified:
6 years, 6 months ago
Reviewers:
sky, bulach, dtu, vivekg, tonyg, qsr
CC:
chromium-reviews, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[PowerProfiler] Make sure correct version of pySerial is imported with monsoon profiler. Python 2.7.x includes pySerial version 2.5 as a distribution package. This conflicts with our repository version of pySerial i.e. 2.7. The submodule serial.tools.* was included in pySerial after 2.6 as per [1]. The utility function util.AddDirToPythonPath(...) appends the path at the end of the path list. Due to this, the python interpreter picks up the pySerial library from system include path at /usr/lib/python2.7/dist-packages/serial. This CL modifies AddDirToPythonPath(...) API to always prepend the path. [1] http://pyserial.sourceforge.net/pyserial_api.html#module-serial.tools.list_ports NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276531

Patch Set 1 #

Total comments: 3

Patch Set 2 : Patch for landing! #

Patch Set 3 : Added missing license text #

Total comments: 1

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Patch Set 6 : Updated unit test to remove version number hardcoding! #

Total comments: 1

Patch Set 7 : Patch for landing! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M tools/telemetry/telemetry/core/platform/profiler/monsoon.py View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/util.py View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 38 (0 generated)
vivekg
PTAL, thanks!
6 years, 6 months ago (2014-06-09 11:28:31 UTC) #1
tonyg
https://codereview.chromium.org/321773002/diff/1/tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor_unittest.py File tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor_unittest.py (right): https://codereview.chromium.org/321773002/diff/1/tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor_unittest.py#newcode23 tools/telemetry/telemetry/core/platform/power_monitor/monsoon_power_monitor_unittest.py:23: def testPySerialVersionNumber(self): I think a better test would be ...
6 years, 6 months ago (2014-06-09 16:13:35 UTC) #2
bulach
an entirely orthogonal suggestion :) in another life, I used "gnu's screen" to talk to ...
6 years, 6 months ago (2014-06-09 16:43:02 UTC) #3
dtu
https://codereview.chromium.org/321773002/diff/1/tools/telemetry/telemetry/core/util.py File tools/telemetry/telemetry/core/util.py (right): https://codereview.chromium.org/321773002/diff/1/tools/telemetry/telemetry/core/util.py#newcode38 tools/telemetry/telemetry/core/util.py:38: def InsertDirInPythonPath(index, *path_parts): On 2014/06/09 16:13:35, tonyg wrote: > ...
6 years, 6 months ago (2014-06-09 20:14:05 UTC) #4
vivekg
Thank you all. I have incorporated the review comments. PTAL, thanks.
6 years, 6 months ago (2014-06-11 05:49:26 UTC) #5
qsr
https://codereview.chromium.org/321773002/diff/40001/tools/telemetry/telemetry/core/platform/profiler/monsoon_unittest.py File tools/telemetry/telemetry/core/platform/profiler/monsoon_unittest.py (right): https://codereview.chromium.org/321773002/diff/40001/tools/telemetry/telemetry/core/platform/profiler/monsoon_unittest.py#newcode10 tools/telemetry/telemetry/core/platform/profiler/monsoon_unittest.py:10: self.assertEqual(monsoon.serial.VERSION, '2.7') Shouldn't this be in some util_unittest.py ? ...
6 years, 6 months ago (2014-06-11 08:21:51 UTC) #6
vivekg
On 2014/06/11 08:21:51, qsr wrote: > https://codereview.chromium.org/321773002/diff/40001/tools/telemetry/telemetry/core/platform/profiler/monsoon_unittest.py > File tools/telemetry/telemetry/core/platform/profiler/monsoon_unittest.py > (right): > > https://codereview.chromium.org/321773002/diff/40001/tools/telemetry/telemetry/core/platform/profiler/monsoon_unittest.py#newcode10 ...
6 years, 6 months ago (2014-06-11 12:19:44 UTC) #7
qsr
https://codereview.chromium.org/321773002/diff/60001/tools/telemetry/telemetry/core/util.py File tools/telemetry/telemetry/core/util.py (right): https://codereview.chromium.org/321773002/diff/60001/tools/telemetry/telemetry/core/util.py#newcode43 tools/telemetry/telemetry/core/util.py:43: sys.path.remove(path) Do we really want to reinsert if it ...
6 years, 6 months ago (2014-06-11 12:24:21 UTC) #8
vivekg
https://codereview.chromium.org/321773002/diff/60001/tools/telemetry/telemetry/core/util.py File tools/telemetry/telemetry/core/util.py (right): https://codereview.chromium.org/321773002/diff/60001/tools/telemetry/telemetry/core/util.py#newcode43 tools/telemetry/telemetry/core/util.py:43: sys.path.remove(path) On 2014/06/11 12:24:21, qsr wrote: > Do we ...
6 years, 6 months ago (2014-06-11 12:41:42 UTC) #9
vivekg
6 years, 6 months ago (2014-06-11 12:41:42 UTC) #10
vivekg
Uploaded new patch with explicit path addition in the unit test.
6 years, 6 months ago (2014-06-11 13:13:09 UTC) #11
qsr
https://codereview.chromium.org/321773002/diff/60001/tools/telemetry/telemetry/core/util.py File tools/telemetry/telemetry/core/util.py (right): https://codereview.chromium.org/321773002/diff/60001/tools/telemetry/telemetry/core/util.py#newcode43 tools/telemetry/telemetry/core/util.py:43: sys.path.remove(path) On 2014/06/11 12:41:41, vivekg_ wrote: > On 2014/06/11 ...
6 years, 6 months ago (2014-06-11 13:20:54 UTC) #12
qsr
https://chromiumcodereview.appspot.com/321773002/diff/60001/tools/telemetry/telemetry/core/util_unittest.py File tools/telemetry/telemetry/core/util_unittest.py (right): https://chromiumcodereview.appspot.com/321773002/diff/60001/tools/telemetry/telemetry/core/util_unittest.py#newcode66 tools/telemetry/telemetry/core/util_unittest.py:66: class PySerialVersionTest(unittest.TestCase): If your test was not failing, it ...
6 years, 6 months ago (2014-06-11 13:23:38 UTC) #13
vivekg
On 2014/06/11 13:20:54, qsr wrote: > https://codereview.chromium.org/321773002/diff/60001/tools/telemetry/telemetry/core/util.py > File tools/telemetry/telemetry/core/util.py (right): > > https://codereview.chromium.org/321773002/diff/60001/tools/telemetry/telemetry/core/util.py#newcode43 > ...
6 years, 6 months ago (2014-06-11 13:31:03 UTC) #14
qsr
On 2014/06/11 13:31:03, vivekg_ wrote: > On 2014/06/11 13:20:54, qsr wrote: > > > https://codereview.chromium.org/321773002/diff/60001/tools/telemetry/telemetry/core/util.py ...
6 years, 6 months ago (2014-06-11 13:38:24 UTC) #15
vivekg
On 2014/06/11 13:38:24, qsr wrote: > On 2014/06/11 13:31:03, vivekg_ wrote: > > On 2014/06/11 ...
6 years, 6 months ago (2014-06-11 14:21:10 UTC) #16
qsr
On 2014/06/11 14:21:10, vivekg_ wrote: > On 2014/06/11 13:38:24, qsr wrote: > > On 2014/06/11 ...
6 years, 6 months ago (2014-06-11 14:26:13 UTC) #17
vivekg
On 2014/06/11 14:26:13, qsr wrote: > On 2014/06/11 14:21:10, vivekg_ wrote: > > On 2014/06/11 ...
6 years, 6 months ago (2014-06-11 15:26:43 UTC) #18
tonyg
https://codereview.chromium.org/321773002/diff/100001/tools/telemetry/telemetry/core/util_unittest.py File tools/telemetry/telemetry/core/util_unittest.py (right): https://codereview.chromium.org/321773002/diff/100001/tools/telemetry/telemetry/core/util_unittest.py#newcode67 tools/telemetry/telemetry/core/util_unittest.py:67: class PySerialVersionTest(unittest.TestCase): This is getting convoluted. Stepping back, what ...
6 years, 6 months ago (2014-06-11 15:44:00 UTC) #19
vivekg
On 2014/06/11 15:44:00, tonyg wrote: > https://codereview.chromium.org/321773002/diff/100001/tools/telemetry/telemetry/core/util_unittest.py > File tools/telemetry/telemetry/core/util_unittest.py (right): > > https://codereview.chromium.org/321773002/diff/100001/tools/telemetry/telemetry/core/util_unittest.py#newcode67 > ...
6 years, 6 months ago (2014-06-11 16:19:13 UTC) #20
tonyg
lgtm
6 years, 6 months ago (2014-06-11 17:01:05 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vivek.vg@samsung.com/321773002/120001
6 years, 6 months ago (2014-06-11 17:02:59 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 21:18:09 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 21:31:13 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/19622)
6 years, 6 months ago (2014-06-11 21:31:15 UTC) #25
tonyg
The CQ bit was checked by tonyg@chromium.org
6 years, 6 months ago (2014-06-11 22:47:58 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vivek.vg@samsung.com/321773002/120001
6 years, 6 months ago (2014-06-11 22:49:35 UTC) #27
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 22:52:17 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 22:55:44 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/19804)
6 years, 6 months ago (2014-06-11 22:55:45 UTC) #30
vivekg
The CQ bit was checked by vivekg@chromium.org
6 years, 6 months ago (2014-06-11 22:58:58 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vivek.vg@samsung.com/321773002/120001
6 years, 6 months ago (2014-06-11 23:00:07 UTC) #32
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 23:04:35 UTC) #33
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 23:07:24 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/19840)
6 years, 6 months ago (2014-06-11 23:07:27 UTC) #35
vivekg
The CQ bit was checked by vivekg@chromium.org
6 years, 6 months ago (2014-06-11 23:09:33 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vivek.vg@samsung.com/321773002/120001
6 years, 6 months ago (2014-06-11 23:10:49 UTC) #37
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 04:14:59 UTC) #38
Message was sent while issue was closed.
Change committed as 276531

Powered by Google App Engine
This is Rietveld 408576698