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

Issue 756553003: [Telemetry] Fix video_unittest so that it actually runs on bots. (Closed)

Created:
6 years ago by mthiesse
Modified:
6 years ago
Reviewers:
tonyg, slamm
CC:
chromium-reviews, telemetry+watch_chromium.org, flackr, horo
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Telemetry] Fix video_unittest so that it actually runs on bots. This also makes it explicitly clear that the avconv dependency is currently linux only. I had another CL out a while ago that fixes this, but that CL's blocked, so I'm separating this out. BUG=433943 Committed: https://crrev.com/eae4959498c328f8e3fa710b1d507c0d68225b18 Cr-Commit-Position: refs/heads/master@{#306858}

Patch Set 1 #

Patch Set 2 : Remove unused import #

Total comments: 6

Patch Set 3 : fix whitespace #

Patch Set 4 : Address comments #

Total comments: 2

Patch Set 5 : Addressed comments #

Patch Set 6 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -32 lines) Patch
M tools/telemetry/telemetry/core/platform/linux_platform_backend.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/core/video.py View 1 2 3 4 5 4 chunks +13 lines, -8 lines 0 comments Download
M tools/telemetry/telemetry/core/video_unittest.py View 1 2 3 4 5 2 chunks +13 lines, -23 lines 0 comments Download

Messages

Total messages: 22 (4 generated)
mthiesse
PTAL, I've separated out re-enabling this test from my bitmap.py change CL.
6 years ago (2014-11-26 20:55:58 UTC) #2
slamm
lgtm
6 years ago (2014-12-02 21:01:59 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/756553003/20001
6 years ago (2014-12-02 21:41:13 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/27744)
6 years ago (2014-12-02 21:48:35 UTC) #7
tonyg
https://codereview.chromium.org/756553003/diff/20001/tools/telemetry/telemetry/core/platform/linux_platform_backend.py File tools/telemetry/telemetry/core/platform/linux_platform_backend.py (right): https://codereview.chromium.org/756553003/diff/20001/tools/telemetry/telemetry/core/platform/linux_platform_backend.py#newcode166 tools/telemetry/telemetry/core/platform/linux_platform_backend.py:166: cloud_storage.GetIfChanged(bin_path, cloud_storage.PUBLIC_BUCKET) Are all binaries in tools/telemetry/bin/linux/x86_64/* currently in ...
6 years ago (2014-12-02 22:31:02 UTC) #8
mthiesse
https://codereview.chromium.org/756553003/diff/20001/tools/telemetry/telemetry/core/platform/linux_platform_backend.py File tools/telemetry/telemetry/core/platform/linux_platform_backend.py (right): https://codereview.chromium.org/756553003/diff/20001/tools/telemetry/telemetry/core/platform/linux_platform_backend.py#newcode166 tools/telemetry/telemetry/core/platform/linux_platform_backend.py:166: cloud_storage.GetIfChanged(bin_path, cloud_storage.PUBLIC_BUCKET) On 2014/12/02 22:31:02, tonyg wrote: > Are ...
6 years ago (2014-12-02 23:23:26 UTC) #9
tonyg
On 2014/12/02 23:23:26, mthiesse wrote: > https://codereview.chromium.org/756553003/diff/20001/tools/telemetry/telemetry/core/platform/linux_platform_backend.py > File tools/telemetry/telemetry/core/platform/linux_platform_backend.py (right): > > https://codereview.chromium.org/756553003/diff/20001/tools/telemetry/telemetry/core/platform/linux_platform_backend.py#newcode166 > ...
6 years ago (2014-12-03 00:54:56 UTC) #10
mthiesse
On 2014/12/03 00:54:56, tonyg wrote: > On 2014/12/02 23:23:26, mthiesse wrote: > > > https://codereview.chromium.org/756553003/diff/20001/tools/telemetry/telemetry/core/platform/linux_platform_backend.py ...
6 years ago (2014-12-03 16:02:19 UTC) #11
chromium-reviews
Hmm, Tony, what's the reason for having avconv as an installable dependency? avconv is already ...
6 years ago (2014-12-03 16:35:23 UTC) #12
tonyg
https://codereview.chromium.org/756553003/diff/60001/tools/telemetry/telemetry/core/video.py File tools/telemetry/telemetry/core/video.py (right): https://codereview.chromium.org/756553003/diff/60001/tools/telemetry/telemetry/core/video.py#newcode23 tools/telemetry/telemetry/core/video.py:23: # Test if the input is a NamedTemporaryFile, otherwise ...
6 years ago (2014-12-03 19:36:24 UTC) #13
mthiesse
https://codereview.chromium.org/756553003/diff/60001/tools/telemetry/telemetry/core/video.py File tools/telemetry/telemetry/core/video.py (right): https://codereview.chromium.org/756553003/diff/60001/tools/telemetry/telemetry/core/video.py#newcode23 tools/telemetry/telemetry/core/video.py:23: # Test if the input is a NamedTemporaryFile, otherwise ...
6 years ago (2014-12-03 20:34:17 UTC) #14
tonyg
I agree the design is bad and that this patch shouldn't have to clean it ...
6 years ago (2014-12-04 01:25:09 UTC) #15
mthiesse
On 2014/12/04 01:25:09, tonyg wrote: > I agree the design is bad and that this ...
6 years ago (2014-12-04 15:38:48 UTC) #16
tonyg
lgtm
6 years ago (2014-12-04 17:34:29 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/756553003/100001
6 years ago (2014-12-04 17:35:40 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years ago (2014-12-04 18:50:59 UTC) #20
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/eae4959498c328f8e3fa710b1d507c0d68225b18 Cr-Commit-Position: refs/heads/master@{#306858}
6 years ago (2014-12-04 18:51:37 UTC) #21
mfomitchev
6 years ago (2014-12-05 15:13:21 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/748873003/ by mfomitchev@chromium.org.

The reason for reverting is: Looks like this broke telemetry_unittests
Build link:
https://build.chromium.org/p/chromium.linux/builders/Linux%20Tests/builds/17356

Output:
[284/694] telemetry.core.video_unittest.VideoTest.testFramesFromMp4 failed
unexpectedly:
  Traceback (most recent call last):
    File
"/mnt/data/b/build/slave/Linux_Tests/build/src/tools/telemetry/telemetry/decorators.py",
line 84, in wrapper
      func(*args, **kwargs)
    File
"/mnt/data/b/build/slave/Linux_Tests/build/src/tools/telemetry/telemetry/core/video_unittest.py",
line 35, in testFramesFromMp4
      for i, timestamp_bitmap in enumerate(video_obj._FramesFromMp4()):
    File
"/mnt/data/b/build/slave/Linux_Tests/build/src/tools/telemetry/telemetry/core/video.py",
line 158, in _FramesFromMp4
      dimensions = GetDimensions(self._video_file_obj.name)
    File
"/mnt/data/b/build/slave/Linux_Tests/build/src/tools/telemetry/telemetry/core/video.py",
line 137, in GetDimensions
      output)
  AssertionError: Failed to determine video dimensions. output=avconv: error
while loading shared libraries: libavdevice.so.53: cannot open shared object
file: No such file or directory.

Powered by Google App Engine
This is Rietveld 408576698