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

Issue 1428133005: [Telemetry] Allows concatenating multiple Disabled & Enabled decorators (Closed)

Created:
5 years, 1 month ago by nednguyen
Modified:
5 years, 1 month ago
CC:
chromium-reviews, telemetry-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Telemetry] Allows concatenating multiple Disabled & Enabled decorators. For this to work, we also abandon the "@Disabled" & "@Disabled()" syntax, which used to mean unconditionally disable. The places that use such syntax are switched to @Disabled('all'). The reason for this is to simplify the handling logic of combining multiple decorators & make the unconditional @Disabled(..) clearer. BUG=552477 Committed: https://crrev.com/f83d36c71ece47e23fac753b42437148090636c1 Cr-Commit-Position: refs/heads/master@{#358457}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix benchmark_smoke_unittest #

Total comments: 2

Patch Set 3 : Address Kari's comment #

Patch Set 4 : Rebase #

Patch Set 5 : Fix Disabled('') #

Total comments: 12

Patch Set 6 : Address Dave's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -65 lines) Patch
M tools/perf/benchmarks/benchmark_smoke_unittest.py View 1 2 3 4 1 chunk +4 lines, -9 lines 0 comments Download
M tools/perf/benchmarks/blink_perf.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/perf/benchmarks/chrome_signin_startup.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/perf/benchmarks/draw_properties.py View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M tools/perf/benchmarks/gpu_times.py View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M tools/perf/benchmarks/maps.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/perf/benchmarks/media.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/perf/benchmarks/page_cycler.py View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M tools/perf/benchmarks/power.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/perf/benchmarks/rasterize_and_record_micro.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/perf/benchmarks/repaint.py View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M tools/perf/benchmarks/skpicture_printer.py View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M tools/perf/benchmarks/tab_switching.py View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M tools/perf/benchmarks/text_selection.py View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M tools/perf/measurements/task_execution_time_unittest.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/decorators.py View 1 2 3 4 5 5 chunks +18 lines, -24 lines 0 comments Download
M tools/telemetry/telemetry/decorators_unittest.py View 2 chunks +90 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/internal/backends/chrome/cros_unittest.py View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M tools/telemetry/telemetry/internal/backends/chrome_inspector/inspector_network_unittest.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/internal/image_processing/video_unittest.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/internal/platform/profiler/android_profiling_helper_unittest.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/internal/platform/profiler/vtune_profiler_unittest.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/page/page_test_unittest.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/testing/disabled_cases.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 39 (19 generated)
nednguyen
5 years, 1 month ago (2015-11-06 17:28:52 UTC) #2
eakuefner
https://codereview.chromium.org/1428133005/diff/1/tools/telemetry/telemetry/decorators.py File tools/telemetry/telemetry/decorators.py (right): https://codereview.chromium.org/1428133005/diff/1/tools/telemetry/telemetry/decorators.py#newcode114 tools/telemetry/telemetry/decorators.py:114: if not hasattr(func, '_disabled_strings'): Can you find a way ...
5 years, 1 month ago (2015-11-06 17:32:43 UTC) #4
nednguyen
https://codereview.chromium.org/1428133005/diff/1/tools/telemetry/telemetry/decorators.py File tools/telemetry/telemetry/decorators.py (right): https://codereview.chromium.org/1428133005/diff/1/tools/telemetry/telemetry/decorators.py#newcode114 tools/telemetry/telemetry/decorators.py:114: if not hasattr(func, '_disabled_strings'): On 2015/11/06 17:32:43, eakuefner wrote: ...
5 years, 1 month ago (2015-11-06 18:23:50 UTC) #5
aiolos (Not reviewing)
https://codereview.chromium.org/1428133005/diff/20001/tools/perf/benchmarks/benchmark_smoke_unittest.py File tools/perf/benchmarks/benchmark_smoke_unittest.py (right): https://codereview.chromium.org/1428133005/diff/20001/tools/perf/benchmarks/benchmark_smoke_unittest.py#newcode146 tools/perf/benchmarks/benchmark_smoke_unittest.py:146: if (getattr(method, attribute, None) or Shouldn't this be if ...
5 years, 1 month ago (2015-11-06 18:37:39 UTC) #6
nednguyen
https://codereview.chromium.org/1428133005/diff/20001/tools/perf/benchmarks/benchmark_smoke_unittest.py File tools/perf/benchmarks/benchmark_smoke_unittest.py (right): https://codereview.chromium.org/1428133005/diff/20001/tools/perf/benchmarks/benchmark_smoke_unittest.py#newcode146 tools/perf/benchmarks/benchmark_smoke_unittest.py:146: if (getattr(method, attribute, None) or On 2015/11/06 18:37:39, aiolos ...
5 years, 1 month ago (2015-11-06 18:47:25 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1428133005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1428133005/40001
5 years, 1 month ago (2015-11-06 19:05:55 UTC) #9
aiolos (Not reviewing)
lgtm
5 years, 1 month ago (2015-11-06 19:10:12 UTC) #10
eakuefner
lgtm
5 years, 1 month ago (2015-11-06 19:22:38 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1428133005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1428133005/60001
5 years, 1 month ago (2015-11-06 20:22:36 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/137391) win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, ...
5 years, 1 month ago (2015-11-06 21:22:27 UTC) #21
nednguyen
5 years, 1 month ago (2015-11-06 22:02:19 UTC) #24
nednguyen
On 2015/11/06 22:02:19, nednguyen wrote: There has been some substantial change, PTAL again.
5 years, 1 month ago (2015-11-06 22:03:29 UTC) #25
eakuefner
lgtm % test https://codereview.chromium.org/1428133005/diff/70001/tools/telemetry/telemetry/decorators_unittest.py File tools/telemetry/telemetry/decorators_unittest.py (right): https://codereview.chromium.org/1428133005/diff/70001/tools/telemetry/telemetry/decorators_unittest.py#newcode36 tools/telemetry/telemetry/decorators_unittest.py:36: class TestDisableDecorators(unittest.TestCase): Please add test coverage ...
5 years, 1 month ago (2015-11-06 22:06:23 UTC) #29
eakuefner
https://codereview.chromium.org/1428133005/diff/70001/tools/telemetry/telemetry/testing/disabled_cases.py File tools/telemetry/telemetry/testing/disabled_cases.py (right): https://codereview.chromium.org/1428133005/diff/70001/tools/telemetry/telemetry/testing/disabled_cases.py#newcode17 tools/telemetry/telemetry/testing/disabled_cases.py:17: @decorators.Disabled('all') Actually this is fine, lgtm
5 years, 1 month ago (2015-11-06 22:07:58 UTC) #30
dtu
https://codereview.chromium.org/1428133005/diff/70001/tools/telemetry/telemetry/decorators.py File tools/telemetry/telemetry/decorators.py (right): https://codereview.chromium.org/1428133005/diff/70001/tools/telemetry/telemetry/decorators.py#newcode103 tools/telemetry/telemetry/decorators.py:103: @Disabled # Unconditionally disabled. Update doc. https://codereview.chromium.org/1428133005/diff/70001/tools/telemetry/telemetry/decorators.py#newcode120 tools/telemetry/telemetry/decorators.py:120: func(*args, ...
5 years, 1 month ago (2015-11-06 22:16:02 UTC) #31
nednguyen
https://codereview.chromium.org/1428133005/diff/70001/tools/telemetry/telemetry/decorators.py File tools/telemetry/telemetry/decorators.py (right): https://codereview.chromium.org/1428133005/diff/70001/tools/telemetry/telemetry/decorators.py#newcode103 tools/telemetry/telemetry/decorators.py:103: @Disabled # Unconditionally disabled. On 2015/11/06 22:16:02, dtu wrote: ...
5 years, 1 month ago (2015-11-06 22:28:46 UTC) #32
dtu
lgtm, thanks :)
5 years, 1 month ago (2015-11-06 22:40:52 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1428133005/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1428133005/90001
5 years, 1 month ago (2015-11-06 22:42:42 UTC) #37
commit-bot: I haz the power
Committed patchset #6 (id:90001)
5 years, 1 month ago (2015-11-07 00:06:12 UTC) #38
commit-bot: I haz the power
5 years, 1 month ago (2015-11-07 00:08:47 UTC) #39
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/f83d36c71ece47e23fac753b42437148090636c1
Cr-Commit-Position: refs/heads/master@{#358457}

Powered by Google App Engine
This is Rietveld 408576698