зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1839173 - Fix support upstream results in wpt-interop-scores, r=Sasha
This requires an update to the upstream log fetching package so we actually get GH listings, and passing in the right log filters for firefox tasks. Differential Revision: https://phabricator.services.mozilla.com/D181383
This commit is contained in:
Родитель
730af5487d
Коммит
32de11aea4
|
@ -1,2 +1,2 @@
|
|||
pypi:tcfetch==0.3.1
|
||||
pypi:tcfetch==0.3.2
|
||||
pypi:wpt-interop==0.1.0
|
||||
|
|
|
@ -7,18 +7,22 @@ import math
|
|||
import os
|
||||
import re
|
||||
import shutil
|
||||
import sys
|
||||
import tempfile
|
||||
from typing import Callable, Iterable, List, Mapping, Optional, Tuple
|
||||
|
||||
repos = ["autoland", "mozilla-central", "try", "mozilla-central", "mozilla-beta", "wpt"]
|
||||
|
||||
default_fetch_task_filters = ["-web-platform-tests-|-spidermonkey-"]
|
||||
default_interop_task_filters = [
|
||||
"web-platform-tests",
|
||||
"linux.*-64",
|
||||
"/opt",
|
||||
"!-nofis|-headless|-asan|-tsan|-ccov",
|
||||
]
|
||||
default_interop_task_filters = {
|
||||
"wpt": ["-firefox-"],
|
||||
None: [
|
||||
"web-platform-tests",
|
||||
"linux.*-64",
|
||||
"/opt",
|
||||
"!-nofis|-headless|-asan|-tsan|-ccov",
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
def get_parser_fetch_logs() -> argparse.Namespace:
|
||||
|
@ -170,9 +174,6 @@ def score_runs(
|
|||
|
||||
runs = get_runs(commits)
|
||||
|
||||
if not task_filters:
|
||||
task_filters = default_interop_task_filters
|
||||
|
||||
temp_dir = None
|
||||
if log_dir is None:
|
||||
temp_dir = tempfile.mkdtemp()
|
||||
|
@ -181,10 +182,22 @@ def score_runs(
|
|||
try:
|
||||
run_logs = []
|
||||
for repo, commit in runs:
|
||||
log_paths = get_wptreports(
|
||||
repo, commit, task_filters, log_dir, check_complete
|
||||
)
|
||||
run_logs.append(log_paths)
|
||||
if not task_filters:
|
||||
if repo in default_interop_task_filters:
|
||||
filters = default_interop_task_filters[repo]
|
||||
else:
|
||||
filters = default_interop_task_filters[None]
|
||||
else:
|
||||
filters = task_filters
|
||||
|
||||
log_paths = get_wptreports(repo, commit, filters, log_dir, check_complete)
|
||||
if not log_paths:
|
||||
print(f"Failed to get any logs for {repo}:{commit}", file=sys.stderr)
|
||||
else:
|
||||
run_logs.append(log_paths)
|
||||
|
||||
if not run_logs:
|
||||
print("No logs to process", file=sys.stderr)
|
||||
|
||||
include_total = category_filters is None
|
||||
if category_filters is None:
|
||||
|
|
Загрузка…
Ссылка в новой задаче