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

Issue 23602015: [Telemetry] discover.DiscoverClasses() does not add inherited classes. (Closed)

Created:
7 years, 3 months ago by shadi
Modified:
7 years, 3 months ago
Reviewers:
dtu, tonyg
CC:
chromium-reviews, chrome-speed-team+watch_google.com, telemetry+watch_chromium.org
Visibility:
Public.

Description

[Telemetry] discover.DiscoverClasses() does not add inheritted classes. If a PageAction inherits another PageAction class, then DiscoverClasses() might mess up the map from simple module name to class object name. See bug for more details. BUG=281568 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=220649

Patch Set 1 #

Total comments: 1

Patch Set 2 : update unittests #

Patch Set 3 : ignore base classes in discoverClasses #

Patch Set 4 : remove parameter, ignore base classes by default #

Patch Set 5 : disable pylint error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -6 lines) Patch
M tools/telemetry/telemetry/core/discover.py View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M tools/telemetry/telemetry/core/discover_unittest.py View 1 2 3 1 chunk +4 lines, -5 lines 0 comments Download
A tools/telemetry/unittest_data/discoverable_classes/another_discover_dummyclass.py View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
shadi
PTAL
7 years, 3 months ago (2013-08-29 18:14:14 UTC) #1
tonyg
https://codereview.chromium.org/23602015/diff/1/tools/telemetry/telemetry/core/discover.py File tools/telemetry/telemetry/core/discover.py (right): https://codereview.chromium.org/23602015/diff/1/tools/telemetry/telemetry/core/discover.py#newcode69 tools/telemetry/telemetry/core/discover.py:69: issubclass(obj, base_class) and obj.__module__ == module.__name__): Can we add ...
7 years, 3 months ago (2013-08-29 19:19:41 UTC) #2
shadi
PTAL. With the current (unpatched) implementation of DiscoverClasses, this unittest would fail.
7 years, 3 months ago (2013-08-29 21:12:06 UTC) #3
shadi
PTAL. With the current (unpatched) implementation of DiscoverClasses, this unittest would fail.
7 years, 3 months ago (2013-08-29 21:12:06 UTC) #4
dtu
lgtm, but Google Style says "Use imports for packages and modules only." The actions/play module ...
7 years, 3 months ago (2013-08-29 22:17:21 UTC) #5
dtu
On 2013/08/29 22:17:21, Dave Tu wrote: > lgtm, but Google Style says "Use imports for ...
7 years, 3 months ago (2013-08-29 22:18:30 UTC) #6
shadi
On 2013/08/29 22:18:30, Dave Tu wrote: > On 2013/08/29 22:17:21, Dave Tu wrote: > > ...
7 years, 3 months ago (2013-08-29 22:48:30 UTC) #7
dtu
On 2013/08/29 22:48:30, shadi wrote: > On 2013/08/29 22:18:30, Dave Tu wrote: > > On ...
7 years, 3 months ago (2013-08-29 22:52:10 UTC) #8
shadi
Thanks for the comments! I will postpone `1- Fix the action classes to import modules ...
7 years, 3 months ago (2013-08-29 23:28:56 UTC) #9
shadi
and PTAL :) On Thu, Aug 29, 2013 at 4:28 PM, <shadi@chromium.org> wrote: > Thanks ...
7 years, 3 months ago (2013-08-29 23:29:46 UTC) #10
dtu
On 2013/08/29 23:29:46, shadi wrote: > and PTAL :) > > > On Thu, Aug ...
7 years, 3 months ago (2013-08-30 00:35:21 UTC) #11
shadi
I removed the parameter, we can add it if we see a use case that ...
7 years, 3 months ago (2013-08-30 01:02:50 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shadi@chromium.org/23602015/16002
7 years, 3 months ago (2013-08-30 16:31:57 UTC) #13
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=23235
7 years, 3 months ago (2013-08-30 16:44:03 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shadi@chromium.org/23602015/33001
7 years, 3 months ago (2013-08-30 18:05:38 UTC) #15
commit-bot: I haz the power
7 years, 3 months ago (2013-08-30 20:51:08 UTC) #16
Message was sent while issue was closed.
Change committed as 220649

Powered by Google App Engine
This is Rietveld 408576698