aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/try_parser.py
diff options
context:
space:
mode:
authorSamson <16504129+sagudev@users.noreply.github.com>2024-12-06 08:32:26 +0100
committerGitHub <noreply@github.com>2024-12-06 07:32:26 +0000
commitfaefed9869d3e2718cb33fa7e0e1f6443f81c814 (patch)
tree8719ac8ff30ea91492e64bb0c29a2db1441665d0 /python/servo/try_parser.py
parent61ca2dde2966bb5cca9f2e9bcd815cee4c409ee5 (diff)
downloadservo-faefed9869d3e2718cb33fa7e0e1f6443f81c814.tar.gz
servo-faefed9869d3e2718cb33fa7e0e1f6443f81c814.zip
Add linux-pref job (#33261)
Job will do some performance benchmarks (Dromeo, Speedometer) and mesure binary size and will report results to bencher.dev Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> Co-authored-by: DK Liao <dklassic@gmail.com>
Diffstat (limited to 'python/servo/try_parser.py')
-rw-r--r--python/servo/try_parser.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/python/servo/try_parser.py b/python/servo/try_parser.py
index 026dc7b0873..a50d890af43 100644
--- a/python/servo/try_parser.py
+++ b/python/servo/try_parser.py
@@ -57,6 +57,7 @@ class JobConfig(object):
wpt_layout: Layout = Layout.none
profile: str = "release"
unit_tests: bool = False
+ bencher: bool = False
wpt_args: str = ""
# These are the fields that must match in between two JobConfigs for them to be able to be
# merged. If you modify any of the fields above, make sure to update this line as well.
@@ -74,6 +75,7 @@ class JobConfig(object):
# to join "Linux" and "Linux WPT" into "Linux WPT"
if len(other.name) > len(self.name):
self.name = other.name
+ self.bencher |= other.bencher
return True
@@ -82,6 +84,8 @@ def handle_preset(s: str) -> Optional[JobConfig]:
if s == "linux":
return JobConfig("Linux", Workflow.LINUX, unit_tests=True)
+ elif s in ["perf", "linux-perf", "bencher"]:
+ return JobConfig("Linux perf", Workflow.LINUX, bencher=True)
elif s in ["mac", "macos"]:
return JobConfig("MacOS", Workflow.MACOS, unit_tests=True)
elif s in ["win", "windows"]:
@@ -175,6 +179,7 @@ class TestParser(unittest.TestCase):
self.assertDictEqual(json.loads(Config("linux fail-fast").to_json()),
{'fail_fast': True,
'matrix': [{
+ 'bencher': False,
'name': 'Linux',
'profile': 'release',
'unit_tests': True,
@@ -188,6 +193,7 @@ class TestParser(unittest.TestCase):
self.assertDictEqual(json.loads(Config("").to_json()),
{"fail_fast": False, "matrix": [
{
+ 'bencher': False,
"name": "Linux WPT",
"workflow": "linux",
"wpt_layout": "2020",
@@ -196,6 +202,7 @@ class TestParser(unittest.TestCase):
"wpt_args": ""
},
{
+ 'bencher': False,
"name": "MacOS",
"workflow": "macos",
"wpt_layout": "none",
@@ -204,6 +211,7 @@ class TestParser(unittest.TestCase):
"wpt_args": ""
},
{
+ 'bencher': False,
"name": "Windows",
"workflow": "windows",
"wpt_layout": "none",
@@ -212,6 +220,7 @@ class TestParser(unittest.TestCase):
"wpt_args": ""
},
{
+ 'bencher': False,
"name": "Android",
"workflow": "android",
"wpt_layout": "none",
@@ -220,6 +229,7 @@ class TestParser(unittest.TestCase):
"wpt_args": ""
},
{
+ 'bencher': False,
"name": "OpenHarmony",
"workflow": "ohos",
"wpt_layout": "none",
@@ -228,6 +238,7 @@ class TestParser(unittest.TestCase):
"wpt_args": ""
},
{
+ 'bencher': False,
"name": "Lint",
"workflow": "lint",
"wpt_layout": "none",
@@ -240,6 +251,7 @@ class TestParser(unittest.TestCase):
self.assertDictEqual(json.loads(Config("wpt-2020 wpt-2013").to_json()),
{'fail_fast': False,
'matrix': [{
+ 'bencher': False,
'name': 'Linux WPT',
'profile': 'release',
'unit_tests': False,