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

Issue 2903023002: [Telemetry] Do not have benchmarks validate story name in expectations during runs. (Closed)

Created:
3 years, 7 months ago by rnephew (Reviews Here)
Modified:
3 years, 6 months ago
CC:
catapult-reviews_chromium.org, telemetry-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

[Telemetry] Do not have benchmarks validate story name in expectations during runs. There is a CL out adding a presubmit test for checking names: https://chromium-review.googlesource.com/c/513162/ This should be the approach we use for making sure names exist. The telemetry smoke tests do some optimizations that make checking mid run not viable. https://cs.chromium.org/chromium/src/tools/perf/benchmarks/benchmark_smoke_unittest.py?type=cs&q=SinglePageBenchmark&l=53 The fact that you can add layers that change what CreateStorySet() returns makes it hard to determine mid run if a story name is valid. Checking during presubmit allows us to sidestep the smoke tests being clever but still gives us assurance that the story names in expectations exist. BUG=chromium:713222 Review-Url: https://codereview.chromium.org/2903023002 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/518df53454b5c951cc4804786f957ffb0639c8ec

Patch Set 1 #

Patch Set 2 : [Telemetry] Do not have benchmarks validate story name in expectations during runs. #

Total comments: 6

Patch Set 3 : [Telemetry] Do not have benchmarks validate story name in expectations during runs. #

Total comments: 8

Patch Set 4 : [Telemetry] Do not have benchmarks validate story name in expectations during runs. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -21 lines) Patch
M telemetry/telemetry/benchmark.py View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M telemetry/telemetry/internal/story_runner.py View 1 2 3 1 chunk +2 lines, -4 lines 1 comment Download
M telemetry/telemetry/internal/story_runner_unittest.py View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M telemetry/telemetry/story/expectations.py View 1 2 3 1 chunk +8 lines, -5 lines 0 comments Download
M telemetry/telemetry/story/expectations_unittest.py View 1 2 3 1 chunk +4 lines, -7 lines 0 comments Download

Messages

Total messages: 24 (10 generated)
rnephew (Reviews Here)
3 years, 7 months ago (2017-05-24 17:23:28 UTC) #2
nednguyen
On 2017/05/24 17:23:28, rnephew (Reviews Here) wrote: Maybe just change this into a logging.error instead. ...
3 years, 7 months ago (2017-05-24 18:23:00 UTC) #3
nednguyen
lgtm so you can land after change it to log error
3 years, 7 months ago (2017-05-24 18:23:30 UTC) #4
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/2903023002/40001
3 years, 7 months ago (2017-05-24 18:45:36 UTC) #8
charliea (OOO until 10-5)
https://codereview.chromium.org/2903023002/diff/40001/telemetry/telemetry/internal/story_runner.py File telemetry/telemetry/internal/story_runner.py (right): https://codereview.chromium.org/2903023002/diff/40001/telemetry/telemetry/internal/story_runner.py#newcode389 telemetry/telemetry/internal/story_runner.py:389: benchmark.ValidateExpectations(stories, log_only=True) The comment above isn't correct, is it? ...
3 years, 7 months ago (2017-05-24 19:07:35 UTC) #9
charliea (OOO until 10-5)
not lgtm right now I don't think the comments match what the code is actually ...
3 years, 7 months ago (2017-05-24 19:08:43 UTC) #11
charliea (OOO until 10-5)
https://codereview.chromium.org/2903023002/diff/40001/telemetry/telemetry/story/expectations.py File telemetry/telemetry/story/expectations.py (right): https://codereview.chromium.org/2903023002/diff/40001/telemetry/telemetry/story/expectations.py#newcode37 telemetry/telemetry/story/expectations.py:37: return all_pass Why does this function return a value? ...
3 years, 7 months ago (2017-05-24 19:11:31 UTC) #12
rnephew (Reviews Here)
https://codereview.chromium.org/2903023002/diff/40001/telemetry/telemetry/internal/story_runner.py File telemetry/telemetry/internal/story_runner.py (right): https://codereview.chromium.org/2903023002/diff/40001/telemetry/telemetry/internal/story_runner.py#newcode389 telemetry/telemetry/internal/story_runner.py:389: benchmark.ValidateExpectations(stories, log_only=True) On 2017/05/24 19:07:35, charliea wrote: > The ...
3 years, 7 months ago (2017-05-24 19:59:24 UTC) #13
charliea (OOO until 10-5)
https://codereview.chromium.org/2903023002/diff/80001/telemetry/telemetry/benchmark.py File telemetry/telemetry/benchmark.py (right): https://codereview.chromium.org/2903023002/diff/80001/telemetry/telemetry/benchmark.py#newcode270 telemetry/telemetry/benchmark.py:270: def ValidateExpectations(self, story_set): I think the whole thing is ...
3 years, 7 months ago (2017-05-24 21:55:44 UTC) #15
charliea (OOO until 10-5)
lgtm If you feel comfortable submitting this CL without me taking a look at it ...
3 years, 7 months ago (2017-05-24 21:57:33 UTC) #16
rnephew (Reviews Here)
https://codereview.chromium.org/2903023002/diff/80001/telemetry/telemetry/benchmark.py File telemetry/telemetry/benchmark.py (right): https://codereview.chromium.org/2903023002/diff/80001/telemetry/telemetry/benchmark.py#newcode270 telemetry/telemetry/benchmark.py:270: def ValidateExpectations(self, story_set): On 2017/05/24 21:55:44, charliea wrote: > ...
3 years, 7 months ago (2017-05-24 22:11:56 UTC) #17
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/2903023002/100001
3 years, 7 months ago (2017-05-24 22:13:36 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:100001) as https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/518df53454b5c951cc4804786f957ffb0639c8ec
3 years, 7 months ago (2017-05-24 22:37:31 UTC) #23
nednguyen
3 years, 6 months ago (2017-06-02 11:39:18 UTC) #24
Message was sent while issue was closed.
https://codereview.chromium.org/2903023002/diff/100001/telemetry/telemetry/in...
File telemetry/telemetry/internal/story_runner.py (right):

https://codereview.chromium.org/2903023002/diff/100001/telemetry/telemetry/in...
telemetry/telemetry/internal/story_runner.py:387:
benchmark.GetBrokenExpectations(stories)
Sorry but I stumble on this code again. This is quite awkward because we rely on
a getter to do logging. I suggest instead remove the logging, and change this
to:

invalid_stories_name = benchmark.GetBrokenExpectations(stories)
logging.error('These story names are invalid: %s, '
,'.join(invalid_stories_name))

Powered by Google App Engine
This is Rietveld 408576698