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

Useful scripts for interacting with WPT logs #24841

Merged
merged 10 commits into from Nov 23, 2019

Fix tidy issues in wpt-timing.py.

  • Loading branch information
jdm committed Nov 22, 2019
commit 5867e115c26d55a2f9e442b5d26cf40a6357d37a
@@ -11,10 +11,10 @@

import sys
import json
import itertools
import collections
import csv


def process_log(data):
tests = {}
test_results = collections.defaultdict(list)
@@ -73,7 +73,7 @@ def process_log(data):
with open('longest_err.csv', 'w') as csv_file:
writer = csv.writer(csv_file)
writer.writerows(csv_data + longest_fail)

longest_timeout = sorted(test_results["TIMEOUT"], key=lambda x: x[1], reverse=True)
with open('timeouts.csv', 'w') as csv_file:
writer = csv.writer(csv_file)
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.