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

Issue 425613002: [Telemetry] Fix @Cache to maintain cache for life of instance for bound methods (Closed)

Created:
6 years, 4 months ago by tonyg
Modified:
6 years, 4 months ago
Reviewers:
dtu, a.renevier
CC:
chromium-reviews, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Telemetry] Fix @Cache to maintain cache for life of instance for bound methods Without this fix the final assert in the unittest fails. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=286111

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Make test more readable #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -8 lines) Patch
M tools/telemetry/telemetry/decorators.py View 1 2 3 3 chunks +11 lines, -7 lines 0 comments Download
M tools/telemetry/telemetry/unittest/decorators_unittest.py View 1 2 3 chunks +30 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
tonyg
6 years, 4 months ago (2014-07-27 18:48:26 UTC) #1
dtu
https://codereview.chromium.org/425613002/diff/20001/tools/telemetry/telemetry/unittest/decorators_unittest.py File tools/telemetry/telemetry/unittest/decorators_unittest.py (right): https://codereview.chromium.org/425613002/diff/20001/tools/telemetry/telemetry/unittest/decorators_unittest.py#newcode49 tools/telemetry/telemetry/unittest/decorators_unittest.py:49: self.assertNotEquals(foo.GetCountUncached(1), foo.GetCountUncached(2)) It's hard to reason about these lines ...
6 years, 4 months ago (2014-07-28 19:04:44 UTC) #2
tonyg
https://codereview.chromium.org/425613002/diff/20001/tools/telemetry/telemetry/unittest/decorators_unittest.py File tools/telemetry/telemetry/unittest/decorators_unittest.py (right): https://codereview.chromium.org/425613002/diff/20001/tools/telemetry/telemetry/unittest/decorators_unittest.py#newcode49 tools/telemetry/telemetry/unittest/decorators_unittest.py:49: self.assertNotEquals(foo.GetCountUncached(1), foo.GetCountUncached(2)) On 2014/07/28 19:04:44, dtu wrote: > It's ...
6 years, 4 months ago (2014-07-28 19:22:03 UTC) #3
dtu
Thanks! Happy the ToTT was useful. lgtm
6 years, 4 months ago (2014-07-28 21:25:57 UTC) #4
tonyg
The CQ bit was checked by tonyg@chromium.org
6 years, 4 months ago (2014-07-28 21:29:20 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tonyg@chromium.org/425613002/40001
6 years, 4 months ago (2014-07-28 21:30:14 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_rel_swarming on tryserver.chromium.linux ...
6 years, 4 months ago (2014-07-29 01:32:40 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-07-29 01:54:29 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel/builds/621)
6 years, 4 months ago (2014-07-29 01:54:29 UTC) #9
tonyg
The CQ bit was checked by tonyg@chromium.org
6 years, 4 months ago (2014-07-29 03:32:49 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tonyg@chromium.org/425613002/60001
6 years, 4 months ago (2014-07-29 03:34:10 UTC) #11
commit-bot: I haz the power
6 years, 4 months ago (2014-07-29 07:46:02 UTC) #12
Message was sent while issue was closed.
Change committed as 286111

Powered by Google App Engine
This is Rietveld 408576698