This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 8d5c6c8035 Bring back "use public runners" label controlling where CI
jobs run (#31516)
8d5c6c8035 is described below
commit 8d5c6c80359569c3faefe850a353291acae8aa5e
Author: Jarek Potiuk <[email protected]>
AuthorDate: Wed May 24 19:26:48 2023 +0200
Bring back "use public runners" label controlling where CI jobs run (#31516)
The #31451 changed the way to decide which runners should be used
but it also lost the ability of controlling that via the
"use public runners" label.
This PR brings the capability back.
---
dev/breeze/src/airflow_breeze/utils/selective_checks.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dev/breeze/src/airflow_breeze/utils/selective_checks.py
b/dev/breeze/src/airflow_breeze/utils/selective_checks.py
index 0f23845ad5..984e406d33 100644
--- a/dev/breeze/src/airflow_breeze/utils/selective_checks.py
+++ b/dev/breeze/src/airflow_breeze/utils/selective_checks.py
@@ -75,6 +75,7 @@ from airflow_breeze.utils.console import get_console
FULL_TESTS_NEEDED_LABEL = "full tests needed"
DEBUG_CI_RESOURCES_LABEL = "debug ci resources"
+USE_PUBLIC_RUNNERS_LABEL = "use public runners"
class FileGroupForCi(Enum):
@@ -782,6 +783,6 @@ class SelectiveChecks:
if self._github_repository == APACHE_AIRFLOW_GITHUB_REPOSITORY:
if self._github_event in [GithubEvents.SCHEDULE,
GithubEvents.PUSH]:
return RUNS_ON_SELF_HOSTED_RUNNER
- if self._github_actor in COMMITTERS:
+ if self._github_actor in COMMITTERS and USE_PUBLIC_RUNNERS_LABEL
not in self._pr_labels:
return RUNS_ON_SELF_HOSTED_RUNNER
return RUNS_ON_PUBLIC_RUNNER