DescriptionOwnership 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 #Dependent Patchsets: Messages
Total messages: 39 (14 generated)
|