diff options
author | Samson <16504129+sagudev@users.noreply.github.com> | 2024-12-12 10:00:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-12 09:00:48 +0000 |
commit | 2a6986b8577fc9326018e325fbbf39d5ad90d5e8 (patch) | |
tree | 28c0d2720a79c5b3cf21a5f0a1fd0b1af1422cc5 /python/servo/try_parser.py | |
parent | 2bcee38e521687c245222e229a05a586696013df (diff) | |
download | servo-2a6986b8577fc9326018e325fbbf39d5ad90d5e8.tar.gz servo-2a6986b8577fc9326018e325fbbf39d5ad90d5e8.zip |
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>
Diffstat (limited to 'python/servo/try_parser.py')
-rw-r--r-- | python/servo/try_parser.py | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/python/servo/try_parser.py b/python/servo/try_parser.py index a50d890af43..de00bf5fe0a 100644 --- a/python/servo/try_parser.py +++ b/python/servo/try_parser.py @@ -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": ""} ]}) |