mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Include a YYYYMMDD date field in the raw test-perf CSV to make Google Data Studio happy.
This commit is contained in:
parent
5c7e79e91c
commit
ed36323e0b
1 changed files with 6 additions and 0 deletions
|
@ -10,11 +10,15 @@ import itertools
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
from datetime import datetime
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from statistics import median, StatisticsError
|
from statistics import median, StatisticsError
|
||||||
from urllib.parse import urlsplit, urlunsplit, urljoin
|
from urllib.parse import urlsplit, urlunsplit, urljoin
|
||||||
|
|
||||||
|
|
||||||
|
DATE = datetime.now().strftime("%Y%m%d")
|
||||||
|
|
||||||
|
|
||||||
def load_manifest(filename):
|
def load_manifest(filename):
|
||||||
with open(filename, 'r') as f:
|
with open(filename, 'r') as f:
|
||||||
text = f.read()
|
text = f.read()
|
||||||
|
@ -169,6 +173,7 @@ def parse_log(log, testcase, url):
|
||||||
# rather than the url.
|
# rather than the url.
|
||||||
def set_testcase(timing, testcase=None):
|
def set_testcase(timing, testcase=None):
|
||||||
timing['testcase'] = testcase
|
timing['testcase'] = testcase
|
||||||
|
timing['date'] = DATE
|
||||||
return timing
|
return timing
|
||||||
|
|
||||||
valid_timing_for_case = partial(valid_timing, url=url)
|
valid_timing_for_case = partial(valid_timing, url=url)
|
||||||
|
@ -240,6 +245,7 @@ def save_result_json(results, filename, manifest, expected_runs, base):
|
||||||
def save_result_csv(results, filename, manifest, expected_runs, base):
|
def save_result_csv(results, filename, manifest, expected_runs, base):
|
||||||
|
|
||||||
fieldnames = [
|
fieldnames = [
|
||||||
|
'date',
|
||||||
'testcase',
|
'testcase',
|
||||||
'title',
|
'title',
|
||||||
'connectEnd',
|
'connectEnd',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue