Skip to content

Commit 586d219

Browse files
committed
ci: apply idf-ci for debug pipeline
1 parent 7ada32c commit 586d219

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tools/ci/dynamic_pipelines/scripts/generate_report.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import __init__ # noqa: F401 # inject the system path
1010
from idf_build_apps import json_list_files_to_apps
11+
from idf_ci import GitlabEnvVars
1112
from idf_ci_local.app import enrich_apps_with_metrics_info
1213

1314
from dynamic_pipelines.report import BuildReportGenerator
@@ -116,6 +117,10 @@ def generate_target_test_report(args: argparse.Namespace) -> None:
116117
)
117118
report_generator.post_report()
118119

120+
if GitlabEnvVars().IDF_CI_IS_DEBUG_PIPELINE:
121+
print('Debug pipeline detected, exit non-zero to fail the pipeline in order to block merge')
122+
exit(30)
123+
119124

120125
def generate_jobs_report(args: argparse.Namespace) -> None:
121126
jobs: t.List[t.Any] = fetch_failed_jobs(args.commit_id)

tools/requirements/requirements.ci.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/tools/idf-tools.html
77

88
# ci
9-
idf-ci==0.1.35
9+
idf-ci>=0.2.3,<1
1010

1111
coverage
1212
jsonschema

0 commit comments

Comments
 (0)