Merge branch 'ci/deprecate_template_app' into 'master'

ci(build): remove esp-idf-template dependency, use in-tree test apps

See merge request espressif/esp-idf!47737
This commit is contained in:
Marius Vikhammer
2026-05-07 16:48:10 +08:00
13 changed files with 104 additions and 234 deletions

View File

@@ -9,49 +9,6 @@
IDF_CCACHE_ENABLE: "1"
dependencies: # set dependencies to null to avoid missing artifacts issue
######################
# build_template_app #
######################
.build_template_app_template:
extends:
- .build_template
artifacts:
paths:
- log_template_app/*
- size_info.txt
- build_template_app/**/size*.json
expire_in: 1 week
when: always
script:
# Set the variable for 'esp-idf-template' testing
- ESP_IDF_TEMPLATE_GIT=${ESP_IDF_TEMPLATE_GIT:-"https://github.com/espressif/esp-idf-template.git"}
- retry_failed git clone ${ESP_IDF_TEMPLATE_GIT}
# Try to use the same branch name for esp-idf-template that we're
# using on esp-idf. If it doesn't exist then just stick to the default branch
- python $CHECKOUT_REF_SCRIPT esp-idf-template esp-idf-template
- export PATH="$IDF_PATH/tools:$PATH"
# Only do the default cmake build for each target, remaining part are done in the build_template_app job
- tools/ci/build_template_app.sh ${BUILD_COMMAND_ARGS}
# Build at least one project for each target at earliest stage to reduce build cost for obvious failing commits
fast_template_app:
extends:
- .build_template_app_template
- .rules:build
stage: pre_check
tags: [fast_run, shiny]
variables:
BUILD_COMMAND_ARGS: "-p"
# This job builds template app with permutations of targets and optimization levels
build_template_app:
extends:
- .build_template_app_template
- .rules:build
stage: host_test
needs:
- job: fast_template_app
artifacts: false
########################################
# Clang Build Apps Without Tests Cases #
@@ -61,7 +18,7 @@ build_template_app:
- .build_template
- .rules:build
needs:
- job: fast_template_app
- job: fast_build_check
artifacts: false
- pipeline_variables
artifacts:
@@ -152,7 +109,7 @@ generate_build_child_pipeline:
build_child_pipeline:
stage: build
needs:
- job: fast_template_app
- job: fast_build_check
optional: true
artifacts: false
- pipeline_variables

View File

@@ -13,7 +13,7 @@
- job: upload-submodules-cache
optional: true
artifacts: false
- job: fast_template_app
- job: fast_build_check
optional: true
artifacts: false
artifacts:
@@ -438,7 +438,7 @@ test_pytest_macos:
- .rules:build:check
dependencies: # set dependencies to null to avoid missing artifacts issue
needs:
- job: fast_template_app
- job: fast_build_check
artifacts: false
optional: true
artifacts:

View File

@@ -4,6 +4,30 @@
tags: [fast_run, shiny]
dependencies: # set dependencies to null to avoid missing artifacts issue
####################
# fast_build_check #
####################
# Build one config per target at earliest stage to catch obvious failures before the full build
fast_build_check:
extends:
- .build_template
- .rules:build
stage: pre_check
tags: [fast_run, shiny]
artifacts:
paths:
- "**/build*/build_log.txt"
- "**/build*/size*.json"
expire_in: 1 week
when: always
script:
- export PATH="$IDF_PATH/tools:$PATH"
- idf-build-apps build
-p tools/test_apps/system/build_tests/full_build
--config-rules "sdkconfig.ci.Og="
--default-build-targets esp32 esp32s2 esp32s3 esp32c2 esp32c3 esp32c5 esp32c6 esp32h2 esp32p4 esp32c61 esp32h21 esp32h4 esp32s31
check_version:
# Don't run this for feature/bugfix branches, so that it is possible to modify
# esp_idf_version.h in a branch before tagging the next version.

View File

@@ -52,7 +52,6 @@
- "tools/ci/esp_err_to_name_exceptions.txt"
- "tools/ci/test_build_system*.sh"
- "tools/ci/test_build_system*.py"
- "tools/ci/build_template_app.sh"
- "tools/test_build_system/**/*"
.patterns-host_test_ldgen: &patterns-host_test_ldgen