Skip to content

Commit fe11a03

Browse files
committed
scripts: Add docker-main tag to the list of tags required by runs-on
This will allow to transition to new container at a later stage without having jobs build and test on different runners because they happen to have both the "self-hosted" and "{arch}" tag. All our current runners already use the "docker-main" tag. Signed-off-by: Manu Bretelle <[email protected]>
1 parent 5489ef2 commit fe11a03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/scripts/matrix.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
# `./test_verifier: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./test_verifier)`
1818
DEFAULT_RUNNER: Final[str] = "ubuntu-20.04"
1919
DEFAULT_LLVM_VERSION: Final[int] = 17
20+
DEFAULT_SELF_HOSTED_RUNNER_TAGS: Final[List[str]] = ["self-hosted", "docker-main"]
2021

2122

2223
class Arch(str, Enum):
@@ -71,15 +72,14 @@ class BuildConfig:
7172
@property
7273
def runs_on(self) -> List[str]:
7374
if is_managed_repo():
74-
return ["self-hosted", self.arch.value]
75+
return DEFAULT_SELF_HOSTED_RUNNER_TAGS + [self.arch.value]
7576
return [DEFAULT_RUNNER]
7677

7778
@property
7879
def build_runs_on(self) -> List[str]:
7980
if is_managed_repo():
8081
# Build s390x on x86_64
81-
return [
82-
"self-hosted",
82+
return DEFAULT_SELF_HOSTED_RUNNER_TAGS + [
8383
self.arch.value == "s390x" and Arch.X86_64.value or self.arch.value,
8484
]
8585
return [DEFAULT_RUNNER]

0 commit comments

Comments
 (0)