mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 20:54:24 +00:00
ci: check missing runners only when needed
This commit is contained in:
@@ -28,9 +28,7 @@ from dynamic_pipelines.utils import dump_jobs_to_yaml
|
||||
from gitlab.v4.objects import Project
|
||||
from gitlab_api import Gitlab
|
||||
from idf_build_apps import App
|
||||
from idf_build_apps.constants import BuildStatus
|
||||
from idf_ci.app import import_apps_from_txt
|
||||
from idf_pytest.script import get_all_apps
|
||||
from idf_pytest.script import get_pytest_cases
|
||||
|
||||
|
||||
@@ -187,13 +185,6 @@ if __name__ == '__main__':
|
||||
default=DEFAULT_TARGET_TEST_CHILD_PIPELINE_FILEPATH,
|
||||
help='Output child pipeline file path',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--check',
|
||||
action='store_true',
|
||||
help='Check if the child pipeline could be generated successfully. '
|
||||
'test cases without env marker or required unset runner will be printed out. '
|
||||
'(Note: All apps and test cases will be checked)',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--app-info-filepattern',
|
||||
default='list_job_*.txt',
|
||||
@@ -206,14 +197,9 @@ if __name__ == '__main__':
|
||||
|
||||
gl_project = Gitlab(args.project_id).project
|
||||
|
||||
if args.check:
|
||||
apps = list(get_all_apps(args.paths)[0]) # test related apps only
|
||||
for app in apps:
|
||||
app.build_status = BuildStatus.SUCCESS # pretend they are built successfully
|
||||
else:
|
||||
apps = []
|
||||
for f in glob.glob(args.app_info_filepattern):
|
||||
apps.extend(import_apps_from_txt(f))
|
||||
apps = []
|
||||
for f in glob.glob(args.app_info_filepattern):
|
||||
apps.extend(import_apps_from_txt(f))
|
||||
|
||||
generate_target_test_child_pipeline(
|
||||
gl_project,
|
||||
|
Reference in New Issue
Block a user