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

Issue 2977283002: Ownership into GenericSets (Closed)

Created:
3 years, 5 months ago by phsilva
Modified:
3 years, 5 months ago
CC:
catapult-reviews_chromium.org, perf-dashboard-reviews_chromium.org, telemetry-reviews_chromium.org, tracing-review_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

Ownership into GenericSets This is part of the effort to move some of our diagnostics into GenericSet diagnostics rather than being their own type when appropriate. This CL converts the Ownership diagnostic class into two Generic Sets: one where the values are an array of the owners' emails (which goes with the name of "owners") and one where the values is an array, either empty or with 1 string, decribing the benchmark's ownership component ("bug components"). Among other things, this CL: * Removes the Ownership Diagnostic class from both Python and JS implementations. * Sets the reserved names for owners and bug components to use GenericSet instead of Ownership. * Removes Ownership from all_diagnostics. * Uses `GetBugComponents' and `GetOwners' in Benchmark for the information coming from the decorators (instead of GetOwnership). * Adds unindexed `name' field to the Sparse Diagnostic model * Adds method to query Sparse Diagnostics by name, and moves the method that queries by type to the Sparse Diagnostic model (instead of in find_anomalies). * Changes diagnostic instantiation to use GenericSet in the story runner to use two separate GenericSet diagnostics instead of just the one for ownership. * Change sample diagnostic in add_histogram_queue test to use Telemetry instead of Ownership. * Updates documentation. What has not been addressed: * Despite these changes, there still is a need for the Sparse Diagnostics to be created by querying the name field. Currently, it references the type field, which is how it could previously create Ownership diagnostics. This work will also be necessary for the transitions of other sparse diagnostics (bug #3718). * Include in the documentation that owners and bug components are GenericSet diagnostics that will be automatically attached from the benchmarks in Telemetry. BUG=catapult:#3715,catapult:#3507 Review-Url: https://codereview.chromium.org/2977283002 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/e94ec7bdc9789b3b7afec8d0ef6dd724c1a6d56f

Patch Set 1 #

Patch Set 2 : Fix reserved info reference #

Total comments: 8

Patch Set 3 : Address Bens comments #

Patch Set 4 : Include the changes to reserved_infos.py #

Total comments: 3

Patch Set 5 : Address Ben and Simon comments #

Total comments: 11

Patch Set 6 : Address Simon's comments on add_histogram #

Patch Set 7 : Address Ben's and Simon's new comments #

Total comments: 3

Patch Set 8 : Updates addressing Simon's comments #

Total comments: 7

Patch Set 9 : Address Ethan's nits #

Patch Set 10 : Fix tests after reabse #

Unified diffs Side-by-side diffs Delta from patch set Stats (+305 lines, -434 lines) Patch
M dashboard/dashboard/add_histograms.py View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M dashboard/dashboard/add_histograms_queue_test.py View 5 chunks +16 lines, -12 lines 0 comments Download
M dashboard/dashboard/find_anomalies.py View 1 2 3 4 5 6 7 8 5 chunks +13 lines, -29 lines 0 comments Download
M dashboard/dashboard/find_anomalies_test.py View 1 2 3 4 5 6 4 chunks +24 lines, -120 lines 0 comments Download
M dashboard/dashboard/models/histogram.py View 1 2 3 4 5 6 7 8 2 chunks +31 lines, -0 lines 0 comments Download
A dashboard/dashboard/models/histogram_test.py View 1 2 3 4 5 6 7 8 1 chunk +129 lines, -0 lines 0 comments Download
M docs/histogram-set-json-format.md View 2 chunks +0 lines, -6 lines 0 comments Download
M docs/how-to-write-metrics.md View 1 chunk +0 lines, -6 lines 0 comments Download
M telemetry/telemetry/benchmark.py View 1 2 3 4 5 6 7 8 9 1 chunk +17 lines, -5 lines 0 comments Download
M telemetry/telemetry/benchmark_unittest.py View 1 2 3 4 3 chunks +41 lines, -10 lines 0 comments Download
M telemetry/telemetry/internal/story_runner.py View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -2 lines 0 comments Download
M telemetry/telemetry/internal/story_runner_unittest.py View 1 2 3 4 5 6 7 8 9 3 chunks +18 lines, -17 lines 0 comments Download
M tracing/trace_viewer.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M tracing/tracing/value/diagnostics/all_diagnostics.html View 1 chunk +0 lines, -1 line 0 comments Download
D tracing/tracing/value/diagnostics/ownership.html View 1 chunk +0 lines, -57 lines 0 comments Download
D tracing/tracing/value/diagnostics/ownership_test.html View 1 chunk +0 lines, -45 lines 0 comments Download
M tracing/tracing/value/diagnostics/reserved_infos.py View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M tracing/tracing/value/diagnostics/reserved_names.html View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M tracing/tracing/value/histogram.py View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -45 lines 0 comments Download
M tracing/tracing/value/histogram_unittest.py View 1 chunk +0 lines, -69 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 39 (14 generated)
phsilva
Hey, This is the CL addressing moving Ownership to GenericSet, along with a couple of ...
3 years, 5 months ago (2017-07-17 21:08:12 UTC) #4
benjhayden
https://codereview.chromium.org/2977283002/diff/20001/dashboard/dashboard/add_histograms.py File dashboard/dashboard/add_histograms.py (right): https://codereview.chromium.org/2977283002/diff/20001/dashboard/dashboard/add_histograms.py#newcode23 dashboard/dashboard/add_histograms.py:23: SUITE_LEVEL_SPARSE_DIAGNOSTIC_NAMES = set( Did you want to go ahead ...
3 years, 5 months ago (2017-07-17 22:08:06 UTC) #6
phsilva
On 2017/07/17 at 22:08:06, benjhayden wrote: > https://codereview.chromium.org/2977283002/diff/20001/dashboard/dashboard/add_histograms.py > File dashboard/dashboard/add_histograms.py (right): > > https://codereview.chromium.org/2977283002/diff/20001/dashboard/dashboard/add_histograms.py#newcode23 ...
3 years, 5 months ago (2017-07-17 22:55:56 UTC) #7
shatch
https://codereview.chromium.org/2977283002/diff/60001/dashboard/dashboard/find_anomalies.py File dashboard/dashboard/find_anomalies.py (right): https://codereview.chromium.org/2977283002/diff/60001/dashboard/dashboard/find_anomalies.py#newcode392 dashboard/dashboard/find_anomalies.py:392: def GetMostRecentDiagnosticValueByName(test_key, diagnostic_name): Maybe make this return a dict ...
3 years, 5 months ago (2017-07-18 16:24:15 UTC) #8
benjhayden
https://codereview.chromium.org/2977283002/diff/60001/dashboard/dashboard/find_anomalies.py File dashboard/dashboard/find_anomalies.py (right): https://codereview.chromium.org/2977283002/diff/60001/dashboard/dashboard/find_anomalies.py#newcode408 dashboard/dashboard/find_anomalies.py:408: diagnostics_named = [d for d in diagnostics if d.name ...
3 years, 5 months ago (2017-07-18 16:43:07 UTC) #9
phsilva
On 2017/07/18 at 16:24:15, simonhatch wrote: > https://codereview.chromium.org/2977283002/diff/60001/dashboard/dashboard/find_anomalies.py > File dashboard/dashboard/find_anomalies.py (right): > > https://codereview.chromium.org/2977283002/diff/60001/dashboard/dashboard/find_anomalies.py#newcode392 ...
3 years, 5 months ago (2017-07-18 23:58:14 UTC) #10
phsilva
On 2017/07/18 at 16:43:07, benjhayden wrote: > https://codereview.chromium.org/2977283002/diff/60001/dashboard/dashboard/find_anomalies.py > File dashboard/dashboard/find_anomalies.py (right): > > https://codereview.chromium.org/2977283002/diff/60001/dashboard/dashboard/find_anomalies.py#newcode408 ...
3 years, 5 months ago (2017-07-19 00:00:02 UTC) #11
shatch
lg2m % q's https://codereview.chromium.org/2977283002/diff/80001/dashboard/dashboard/add_histograms.py File dashboard/dashboard/add_histograms.py (right): https://codereview.chromium.org/2977283002/diff/80001/dashboard/dashboard/add_histograms.py#newcode24 dashboard/dashboard/add_histograms.py:24: SUITE_LEVEL_SPARSE_DIAGNOSTIC_NAMES = set( Where is this ...
3 years, 5 months ago (2017-07-19 14:52:51 UTC) #12
phsilva
On 2017/07/19 at 14:52:51, simonhatch wrote: > https://codereview.chromium.org/2977283002/diff/80001/dashboard/dashboard/add_histograms.py > File dashboard/dashboard/add_histograms.py (right): > > https://codereview.chromium.org/2977283002/diff/80001/dashboard/dashboard/add_histograms.py#newcode24 ...
3 years, 5 months ago (2017-07-19 17:05:45 UTC) #13
benjhayden
Did you mean to re-upload after removing SUITE_LEVEL_SPARSE_DIAGNOSTIC_NAMES? https://codereview.chromium.org/2977283002/diff/80001/dashboard/dashboard/find_anomalies.py File dashboard/dashboard/find_anomalies.py (right): https://codereview.chromium.org/2977283002/diff/80001/dashboard/dashboard/find_anomalies.py#newcode394 dashboard/dashboard/find_anomalies.py:394: def ...
3 years, 5 months ago (2017-07-19 19:55:01 UTC) #14
shatch
https://codereview.chromium.org/2977283002/diff/80001/dashboard/dashboard/find_anomalies.py File dashboard/dashboard/find_anomalies.py (right): https://codereview.chromium.org/2977283002/diff/80001/dashboard/dashboard/find_anomalies.py#newcode394 dashboard/dashboard/find_anomalies.py:394: def GetMostRecentDiagnosticValueByNames(test_key, diagnostic_names): On 2017/07/19 19:55:00, benjhayden wrote: > ...
3 years, 5 months ago (2017-07-19 21:48:59 UTC) #15
phsilva
Thanks for the comments Ben. On 2017/07/19 at 19:55:01, benjhayden wrote: > Did you mean ...
3 years, 5 months ago (2017-07-20 22:15:12 UTC) #16
phsilva
On 2017/07/19 at 21:48:59, simonhatch wrote: > https://codereview.chromium.org/2977283002/diff/80001/dashboard/dashboard/find_anomalies.py > File dashboard/dashboard/find_anomalies.py (right): > > https://codereview.chromium.org/2977283002/diff/80001/dashboard/dashboard/find_anomalies.py#newcode394 ...
3 years, 5 months ago (2017-07-20 22:16:14 UTC) #17
shatch
lgtm % some comments https://codereview.chromium.org/2977283002/diff/120001/dashboard/dashboard/models/histogram.py File dashboard/dashboard/models/histogram.py (right): https://codereview.chromium.org/2977283002/diff/120001/dashboard/dashboard/models/histogram.py#newcode38 dashboard/dashboard/models/histogram.py:38: def GetMostRecentDiagnosticValueByNames(test_key, diagnostic_names): Since this ...
3 years, 5 months ago (2017-07-24 16:35:38 UTC) #19
benjhayden
lgtm
3 years, 5 months ago (2017-07-24 17:22:57 UTC) #20
phsilva
Thanks for the comments, Simon. I've addressed them in the new patch. On 2017/07/24 at ...
3 years, 5 months ago (2017-07-24 17:30:50 UTC) #21
shatch
lgtm
3 years, 5 months ago (2017-07-24 17:33:49 UTC) #22
eakuefner
lgtm % a bunch of nits. https://codereview.chromium.org/2977283002/diff/140001/dashboard/dashboard/find_anomalies.py File dashboard/dashboard/find_anomalies.py (right): https://codereview.chromium.org/2977283002/diff/140001/dashboard/dashboard/find_anomalies.py#newcode327 dashboard/dashboard/find_anomalies.py:327: queried_diagnostics = \ ...
3 years, 5 months ago (2017-07-24 17:59:57 UTC) #23
phsilva
Thanks for the comments, Ethan. I've addressed all of them in the most recent patch.
3 years, 5 months ago (2017-07-24 18:41:45 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2977283002/160001
3 years, 5 months ago (2017-07-24 18:43:31 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: Catapult Android Tryserver on master.tryserver.client.catapult (JOB_TIMED_OUT, build has not ...
3 years, 5 months ago (2017-07-24 20:44:02 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2977283002/160001
3 years, 5 months ago (2017-07-25 22:48:18 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: Catapult Linux Tryserver on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Linux%20Tryserver/builds/8488) Catapult Presubmit ...
3 years, 5 months ago (2017-07-25 22:50:50 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2977283002/180001
3 years, 5 months ago (2017-07-25 22:59:30 UTC) #36
commit-bot: I haz the power
3 years, 5 months ago (2017-07-26 00:00:10 UTC) #39
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698