mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01: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.wpt_layout |= other.wpt_layout
|
||||||
self.unit_tests |= other.unit_tests
|
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
|
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
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
@ -146,7 +151,7 @@ class Config(object):
|
||||||
self.fail_fast = True
|
self.fail_fast = True
|
||||||
continue # skip over keyword
|
continue # skip over keyword
|
||||||
if word == "full":
|
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
|
continue # skip over keyword
|
||||||
|
|
||||||
job = handle_preset(word)
|
job = handle_preset(word)
|
||||||
|
@ -193,57 +198,57 @@ class TestParser(unittest.TestCase):
|
||||||
self.assertDictEqual(json.loads(Config("").to_json()),
|
self.assertDictEqual(json.loads(Config("").to_json()),
|
||||||
{"fail_fast": False, "matrix": [
|
{"fail_fast": False, "matrix": [
|
||||||
{
|
{
|
||||||
'bencher': False,
|
"name": "Linux WPT perf",
|
||||||
"name": "Linux WPT",
|
|
||||||
"workflow": "linux",
|
"workflow": "linux",
|
||||||
"wpt_layout": "2020",
|
"wpt_layout": "2020",
|
||||||
"profile": "release",
|
"profile": "release",
|
||||||
"unit_tests": True,
|
"unit_tests": True,
|
||||||
|
'bencher': True,
|
||||||
"wpt_args": ""
|
"wpt_args": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'bencher': False,
|
|
||||||
"name": "MacOS",
|
"name": "MacOS",
|
||||||
"workflow": "macos",
|
"workflow": "macos",
|
||||||
"wpt_layout": "none",
|
"wpt_layout": "none",
|
||||||
"profile": "release",
|
"profile": "release",
|
||||||
"unit_tests": True,
|
"unit_tests": True,
|
||||||
|
'bencher': False,
|
||||||
"wpt_args": ""
|
"wpt_args": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'bencher': False,
|
|
||||||
"name": "Windows",
|
"name": "Windows",
|
||||||
"workflow": "windows",
|
"workflow": "windows",
|
||||||
"wpt_layout": "none",
|
"wpt_layout": "none",
|
||||||
"profile": "release",
|
"profile": "release",
|
||||||
"unit_tests": True,
|
"unit_tests": True,
|
||||||
|
'bencher': False,
|
||||||
"wpt_args": ""
|
"wpt_args": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'bencher': False,
|
|
||||||
"name": "Android",
|
"name": "Android",
|
||||||
"workflow": "android",
|
"workflow": "android",
|
||||||
"wpt_layout": "none",
|
"wpt_layout": "none",
|
||||||
"profile": "release",
|
"profile": "release",
|
||||||
"unit_tests": False,
|
"unit_tests": False,
|
||||||
|
'bencher': False,
|
||||||
"wpt_args": ""
|
"wpt_args": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'bencher': False,
|
|
||||||
"name": "OpenHarmony",
|
"name": "OpenHarmony",
|
||||||
"workflow": "ohos",
|
"workflow": "ohos",
|
||||||
"wpt_layout": "none",
|
"wpt_layout": "none",
|
||||||
"profile": "release",
|
"profile": "release",
|
||||||
"unit_tests": False,
|
"unit_tests": False,
|
||||||
|
'bencher': False,
|
||||||
"wpt_args": ""
|
"wpt_args": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'bencher': False,
|
|
||||||
"name": "Lint",
|
"name": "Lint",
|
||||||
"workflow": "lint",
|
"workflow": "lint",
|
||||||
"wpt_layout": "none",
|
"wpt_layout": "none",
|
||||||
"profile": "release",
|
"profile": "release",
|
||||||
"unit_tests": False,
|
"unit_tests": False,
|
||||||
|
'bencher': False,
|
||||||
"wpt_args": ""}
|
"wpt_args": ""}
|
||||||
]})
|
]})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue