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

Add explanatory comment to wpt-timing.py.

  • Loading branch information
jdm committed Nov 22, 2019
commit 0c294de4a793d4635360adade60ab336326ddecc
@@ -9,6 +9,21 @@
# option. This file may not be copied, modified, or distributed
# except according to those terms.

# Usage: python wpt-timing.py [path/to/wpt.log] ...
#
# Given a series of WPT log files as arguments, this script
# extracts the status of each test file (ok; error; timeout; etc.)
# and how long it took to ran, then creates three CSV files, each
# sorted by runtime:
#
# - longest_ok.csv: all tests that passed
# - longest_err.csv: all tests that failed or had an error
# - timeouts.csv: all tests that timed out
#
# This information can be used to quickly determine the longest-running
# tests in the WPT testsuite in order to improve the overall testsuite
# runtime on CI.

import sys
import json
import collections
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.