From 0c294de4a793d4635360adade60ab336326ddecc Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Fri, 22 Nov 2019 13:19:28 -0500 Subject: [PATCH] Add explanatory comment to wpt-timing.py. --- etc/wpt-timing.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/etc/wpt-timing.py b/etc/wpt-timing.py index 85773e8bab5f..cc5d81aad9ad 100644 --- a/etc/wpt-timing.py +++ b/etc/wpt-timing.py @@ -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