mirror of
https://github.com/espressif/esp-idf
synced 2025-04-01 04:10:10 -04:00
build: - upgrade idf-build-apps to 2.x - unify get_pytest_apps and get_cmake_apps to get_all_apps - returns (test_apps, non_test_apps) tuple - add tests for the new get_all_apps assign: - generate build report - generate target test pipeline based on the build report target test: - download artifacts from minio server - users can use `pytest --pipeline-id xxxxx` to download and flash the binaries from the artifacts .post: - generate target test reports
32 lines
1.0 KiB
Python
32 lines
1.0 KiB
Python
# SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
import os
|
|
|
|
from idf_ci_utils import IDF_PATH
|
|
|
|
# use relative path to avoid absolute path in pipeline
|
|
DEFAULT_TEST_PATHS = [
|
|
'examples',
|
|
os.path.join('tools', 'test_apps'),
|
|
'components',
|
|
]
|
|
|
|
DEFAULT_APPS_BUILD_PER_JOB = 60
|
|
DEFAULT_CASES_TEST_PER_JOB = 60
|
|
|
|
DEFAULT_BUILD_CHILD_PIPELINE_FILEPATH = os.path.join(IDF_PATH, 'build_child_pipeline.yml')
|
|
DEFAULT_TARGET_TEST_CHILD_PIPELINE_FILEPATH = os.path.join(IDF_PATH, 'target_test_child_pipeline.yml')
|
|
|
|
TEST_RELATED_BUILD_JOB_NAME = 'build_test_related_apps'
|
|
NON_TEST_RELATED_BUILD_JOB_NAME = 'build_non_test_related_apps'
|
|
|
|
COMMENT_START_MARKER = '### Dynamic Pipeline Report'
|
|
TEST_RELATED_APPS_FILENAME = 'test_related_apps.txt'
|
|
NON_TEST_RELATED_APPS_FILENAME = 'non_test_related_apps.txt'
|
|
|
|
TEST_RELATED_APPS_DOWNLOAD_URLS_FILENAME = 'test_related_apps_download_urls.yml'
|
|
REPORT_TEMPLATE_FILEPATH = os.path.join(
|
|
IDF_PATH, 'tools', 'ci', 'dynamic_pipelines', 'templates', 'report.template.html'
|
|
)
|