mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00: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 os
|
||||
import subprocess
|
||||
from datetime import datetime
|
||||
from functools import partial
|
||||
from statistics import median, StatisticsError
|
||||
from urllib.parse import urlsplit, urlunsplit, urljoin
|
||||
|
||||
|
||||
DATE = datetime.now().strftime("%Y%m%d")
|
||||
|
||||
|
||||
def load_manifest(filename):
|
||||
with open(filename, 'r') as f:
|
||||
text = f.read()
|
||||
|
@ -169,6 +173,7 @@ def parse_log(log, testcase, url):
|
|||
# rather than the url.
|
||||
def set_testcase(timing, testcase=None):
|
||||
timing['testcase'] = testcase
|
||||
timing['date'] = DATE
|
||||
return timing
|
||||
|
||||
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):
|
||||
|
||||
fieldnames = [
|
||||
'date',
|
||||
'testcase',
|
||||
'title',
|
||||
'connectEnd',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue