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 1741063002: [TBMv2] Fix page deserialization (Closed)

Created:
4 years, 9 months ago by eakuefner
Modified:
4 years, 9 months ago
Reviewers:
nednguyen
CC:
benjhayden, catapult-reviews_chromium.org
Base URL:
git@github.com:catapult-project/catapult.git@master
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

[TBMv2] Fix page deserialization This CL fixes a TBMv2 bug that actually turned out to be a legitimate Telemetry bug: when you attempt deserialize a page with ID 0 Python's implicit conersions were stymying us, and this strengthens the check to `is not None` and adds some tests. It also changes the method of setting the page ID in translate_common_values to be less 'clever' BUG=catapult:#2070 R=nednguyen Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/a489be785184f64356555a8170452a6d6880cc5d

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address Ned's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -3 lines) Patch
M telemetry/telemetry/value/__init__.py View 1 chunk +1 line, -1 line 0 comments Download
M telemetry/telemetry/value/translate_common_values.py View 1 1 chunk +2 lines, -2 lines 0 comments Download
M telemetry/telemetry/value/value_unittest.py View 1 chunk +14 lines, -0 lines 0 comments Download
M telemetry/telemetry/web_perf/timeline_based_page_test_unittest.py View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
eakuefner
4 years, 9 months ago (2016-02-26 20:30:41 UTC) #1
nednguyen
lgtm with nits https://codereview.chromium.org/1741063002/diff/1/telemetry/telemetry/value/translate_common_values.py File telemetry/telemetry/value/translate_common_values.py (right): https://codereview.chromium.org/1741063002/diff/1/telemetry/telemetry/value/translate_common_values.py#newcode35 telemetry/telemetry/value/translate_common_values.py:35: return scalar.ScalarValue.FromDict(scalar_value, {0: page}) {page.id: page}
4 years, 9 months ago (2016-02-26 20:35:49 UTC) #2
eakuefner
https://codereview.chromium.org/1741063002/diff/1/telemetry/telemetry/value/translate_common_values.py File telemetry/telemetry/value/translate_common_values.py (right): https://codereview.chromium.org/1741063002/diff/1/telemetry/telemetry/value/translate_common_values.py#newcode35 telemetry/telemetry/value/translate_common_values.py:35: return scalar.ScalarValue.FromDict(scalar_value, {0: page}) On 2016/02/26 at 20:35:49, nednguyen ...
4 years, 9 months ago (2016-02-26 20:38:40 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1741063002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1741063002/20001
4 years, 9 months ago (2016-02-26 20:38:49 UTC) #7
commit-bot: I haz the power
4 years, 9 months ago (2016-02-26 20:49:57 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698