mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
ci: apply common-scripts CI refactor
This commit is contained in:
@@ -55,7 +55,7 @@ def main(output_filepath: str) -> None:
|
||||
exclude_runner_tags_matching = []
|
||||
for _tag in known_warnings_dict.get('no_runner_tags', []):
|
||||
if '*' not in _tag:
|
||||
exclude_runner_tags_set.add(_tag)
|
||||
exclude_runner_tags_set.add(frozenset(_tag.split(',')))
|
||||
else:
|
||||
if res := _process_match_group(_tag):
|
||||
exclude_runner_tags_matching.append(res)
|
||||
@@ -66,7 +66,7 @@ def main(output_filepath: str) -> None:
|
||||
if exclude_runner_tags := os.getenv('EXCLUDE_RUNNER_TAGS'):
|
||||
for _tag in exclude_runner_tags.split(';'):
|
||||
if '*' not in _tag:
|
||||
exclude_runner_tags_set.add(_tag)
|
||||
exclude_runner_tags_set.add(frozenset(_tag.split(',')))
|
||||
else:
|
||||
if res := _process_match_group(_tag):
|
||||
exclude_runner_tags_matching.append(res)
|
||||
@@ -75,7 +75,7 @@ def main(output_filepath: str) -> None:
|
||||
additional_dict: dict[GroupKey, dict[str, t.Any]] = {}
|
||||
for key, grouped_cases in cases.grouped_cases.items():
|
||||
# skip test cases with no runner tags
|
||||
if ','.join(sorted(key.runner_tags)) in exclude_runner_tags_set:
|
||||
if frozenset(key.runner_tags) in exclude_runner_tags_set:
|
||||
print(f'WARNING: excluding test cases with runner tags: {key.runner_tags}')
|
||||
continue
|
||||
|
||||
|
||||
@@ -17,6 +17,9 @@
|
||||
# Since the version 3.21 CMake passes source files and include dirs to ninja using absolute paths.
|
||||
# Needed for pytest junit reports.
|
||||
INSTALL_EXTRA_TOOLS: cmake
|
||||
# Suppress Python warning messages during CI builds to keep logs clean and focused on errors.
|
||||
# This prevents non-critical warnings (e.g., deprecation or resource warnings) from cluttering output.
|
||||
PYTHONWARNINGS: "ignore"
|
||||
needs:
|
||||
- pipeline: $PARENT_PIPELINE_ID
|
||||
job: generate_build_child_pipeline
|
||||
@@ -40,7 +43,6 @@
|
||||
- run_cmd idf-ci build run
|
||||
--parallel-count ${CI_NODE_TOTAL:-1}
|
||||
--parallel-index ${CI_NODE_INDEX:-1}
|
||||
--modified-files ${MR_MODIFIED_FILES}
|
||||
|
||||
.dynamic_target_test_template:
|
||||
image: $TARGET_TEST_ENV_IMAGE
|
||||
@@ -56,6 +58,8 @@
|
||||
needs:
|
||||
- pipeline: $PARENT_PIPELINE_ID
|
||||
job: pipeline_variables
|
||||
- pipeline: $PARENT_PIPELINE_ID
|
||||
job: snapshot_known_failure_cases
|
||||
artifacts:
|
||||
paths:
|
||||
- XUNIT_RESULT*.xml
|
||||
@@ -65,7 +69,11 @@
|
||||
when: always
|
||||
expire_in: 1 week
|
||||
script:
|
||||
# Merge the current known failure cases file with snapshot_known_failure_cases file captured at pipeline start
|
||||
# to avoid retry failures caused by later updates to the known failure cases file.
|
||||
- run_cmd idf-ci gitlab download-known-failure-cases-file ${KNOWN_FAILURE_CASES_FILE_NAME}
|
||||
- printf '\n' >> ${KNOWN_FAILURE_CASES_FILE_NAME}
|
||||
- cat artifacts/${KNOWN_FAILURE_CASES_FILE_NAME}.freeze >> ${KNOWN_FAILURE_CASES_FILE_NAME}
|
||||
# get runner env config file
|
||||
- retry_failed git clone $TEST_ENV_CONFIG_REPO
|
||||
- run_cmd python $CHECKOUT_REF_SCRIPT ci-test-runner-configs ci-test-runner-configs
|
||||
|
||||
Reference in New Issue
Block a user