mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Run bencher in try-full (#34556)
* Run bencher in try-full Signed-off-by: Samson <16504129+sagudev@users.noreply.github.com> * Fix naming Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> --------- Signed-off-by: Samson <16504129+sagudev@users.noreply.github.com> Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
2bcee38e52
commit
2a6986b857
1 changed files with 16 additions and 11 deletions
|
@ -72,10 +72,15 @@ class JobConfig(object):
|
|||
|
||||
self.wpt_layout |= other.wpt_layout
|
||||
self.unit_tests |= other.unit_tests
|
||||
# to join "Linux" and "Linux WPT" into "Linux WPT"
|
||||
if len(other.name) > len(self.name):
|
||||
self.name = other.name
|
||||
self.bencher |= other.bencher
|
||||
common = min([self.name, other.name], key=len)
|
||||
p1 = self.name.strip(common).strip()
|
||||
p2 = other.name.strip(common).strip()
|
||||
self.name = common.strip()
|
||||
if p1:
|
||||
self.name += f" {p1}"
|
||||
if p2:
|
||||
self.name += f" {p2}"
|
||||
return True
|
||||
|
||||
|
||||
|
@ -146,7 +151,7 @@ class Config(object):
|
|||
self.fail_fast = True
|
||||
continue # skip over keyword
|
||||
if word == "full":
|
||||
words.extend(["linux", "linux-wpt", "macos", "windows", "android", "ohos", "lint"])
|
||||
words.extend(["linux", "linux-wpt", "linux-perf", "macos", "windows", "android", "ohos", "lint"])
|
||||
continue # skip over keyword
|
||||
|
||||
job = handle_preset(word)
|
||||
|
@ -193,57 +198,57 @@ class TestParser(unittest.TestCase):
|
|||
self.assertDictEqual(json.loads(Config("").to_json()),
|
||||
{"fail_fast": False, "matrix": [
|
||||
{
|
||||
'bencher': False,
|
||||
"name": "Linux WPT",
|
||||
"name": "Linux WPT perf",
|
||||
"workflow": "linux",
|
||||
"wpt_layout": "2020",
|
||||
"profile": "release",
|
||||
"unit_tests": True,
|
||||
'bencher': True,
|
||||
"wpt_args": ""
|
||||
},
|
||||
{
|
||||
'bencher': False,
|
||||
"name": "MacOS",
|
||||
"workflow": "macos",
|
||||
"wpt_layout": "none",
|
||||
"profile": "release",
|
||||
"unit_tests": True,
|
||||
'bencher': False,
|
||||
"wpt_args": ""
|
||||
},
|
||||
{
|
||||
'bencher': False,
|
||||
"name": "Windows",
|
||||
"workflow": "windows",
|
||||
"wpt_layout": "none",
|
||||
"profile": "release",
|
||||
"unit_tests": True,
|
||||
'bencher': False,
|
||||
"wpt_args": ""
|
||||
},
|
||||
{
|
||||
'bencher': False,
|
||||
"name": "Android",
|
||||
"workflow": "android",
|
||||
"wpt_layout": "none",
|
||||
"profile": "release",
|
||||
"unit_tests": False,
|
||||
'bencher': False,
|
||||
"wpt_args": ""
|
||||
},
|
||||
{
|
||||
'bencher': False,
|
||||
"name": "OpenHarmony",
|
||||
"workflow": "ohos",
|
||||
"wpt_layout": "none",
|
||||
"profile": "release",
|
||||
"unit_tests": False,
|
||||
'bencher': False,
|
||||
"wpt_args": ""
|
||||
},
|
||||
{
|
||||
'bencher': False,
|
||||
"name": "Lint",
|
||||
"workflow": "lint",
|
||||
"wpt_layout": "none",
|
||||
"profile": "release",
|
||||
"unit_tests": False,
|
||||
'bencher': False,
|
||||
"wpt_args": ""}
|
||||
]})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue