CI: Add number_of_chunks (#36584)

This allows changing number of chunks used for WPT testing (sometimes
useful for WebGPU).

Testing: Manual try runs
Fixes: #30062

---------

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
sagudev 2025-04-18 08:38:28 +02:00 committed by GitHub
parent 5e2d42e944
commit bd9242acfa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 44 additions and 4 deletions

View file

@ -40,6 +40,7 @@ class JobConfig(object):
build_libservo: bool = False
bencher: bool = False
wpt_args: str = ""
number_of_wpt_chunks: int = 20
# 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.
merge_compatibility_fields: ClassVar[List[str]] = ['workflow', 'profile', 'wpt_args']
@ -55,6 +56,7 @@ class JobConfig(object):
self.unit_tests |= other.unit_tests
self.build_libservo |= other.build_libservo
self.bencher |= other.bencher
self.number_of_wpt_chunks = max(self.number_of_wpt_chunks, other.number_of_wpt_chunks)
self.update_name()
return True
@ -201,6 +203,7 @@ class TestParser(unittest.TestCase):
'matrix': [{
'bencher': False,
'name': 'Linux (Unit Tests)',
'number_of_wpt_chunks': 20,
'profile': 'release',
'unit_tests': True,
'build_libservo': False,
@ -215,6 +218,7 @@ class TestParser(unittest.TestCase):
{"fail_fast": False, "matrix": [
{
"name": "Linux (Unit Tests, WPT, Bencher)",
'number_of_wpt_chunks': 20,
"workflow": "linux",
"wpt": True,
"profile": "release",
@ -225,6 +229,7 @@ class TestParser(unittest.TestCase):
},
{
"name": "MacOS (Unit Tests)",
'number_of_wpt_chunks': 20,
"workflow": "macos",
"wpt": False,
"profile": "release",
@ -235,6 +240,7 @@ class TestParser(unittest.TestCase):
},
{
"name": "Windows (Unit Tests)",
'number_of_wpt_chunks': 20,
"workflow": "windows",
"wpt": False,
"profile": "release",
@ -245,6 +251,7 @@ class TestParser(unittest.TestCase):
},
{
"name": "Android",
'number_of_wpt_chunks': 20,
"workflow": "android",
"wpt": False,
"profile": "release",
@ -255,6 +262,7 @@ class TestParser(unittest.TestCase):
},
{
"name": "OpenHarmony",
'number_of_wpt_chunks': 20,
"workflow": "ohos",
"wpt": False,
"profile": "release",
@ -265,6 +273,7 @@ class TestParser(unittest.TestCase):
},
{
"name": "Lint",
'number_of_wpt_chunks': 20,
"workflow": "lint",
"wpt": False,
"profile": "release",
@ -280,6 +289,7 @@ class TestParser(unittest.TestCase):
'matrix': [{
'bencher': False,
'name': 'Linux (WPT)',
'number_of_wpt_chunks': 20,
'profile': 'release',
'unit_tests': False,
'build_libservo': False,