Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Etc ci performance run locally #12946

Merged
merged 17 commits into from Sep 6, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Filter reports for ones with title Error report.

  • Loading branch information
asajeffrey committed Aug 19, 2016
commit 900518ae55ab46862bb9b24daf979cc63a354602
@@ -112,21 +112,19 @@ def parse_block(block):
print('-----')
return placeholder

if key == "testcase":
if key == "testcase" or key == "title":
timing[key] = value
else:
timing[key] = None if (value == "undefined") else int(value)

if testcase is not None and timing['testcase'] != testcase:
print('[DEBUG] log:')
print('-----')
print(log)
print('-----')
return placeholder

return timing

if len(blocks) == 0:
def valid_timing(timing):
return (timing.get('title') != 'Error response') and (testcase is None or timing.get('testcase') == testcase)

timings = list(filter(valid_timing, map(parse_block, blocks)))

if len(timings) == 0:
print("Didn't find any perf data in the log, test timeout?")
print("Fillng in a dummy perf data")
print('[DEBUG] log:')
@@ -136,7 +134,7 @@ def parse_block(block):

return [placeholder]
else:
return map(parse_block, blocks)
return timings


def filter_result_by_manifest(result_json, manifest):
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.