From 78017aa02c63c8dbfe9c911c0d0a9ac789fcf666 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Thu, 26 Feb 2026 17:03:40 +0100 Subject: [PATCH] feat(ci): Add wifi-remote generation check to CI --- .gitlab/ci/pre_check.yml | 9 +++++++++ .gitlab/ci/rules.yml | 2 ++ tools/{ => ci}/esp_err_to_name_exceptions.txt | 0 tools/gen_esp_err_to_name.py | 4 ++-- 4 files changed, 13 insertions(+), 2 deletions(-) rename tools/{ => ci}/esp_err_to_name_exceptions.txt (100%) diff --git a/.gitlab/ci/pre_check.yml b/.gitlab/ci/pre_check.yml index 81f977d724..13e441e2dd 100644 --- a/.gitlab/ci/pre_check.yml +++ b/.gitlab/ci/pre_check.yml @@ -29,6 +29,15 @@ check_api_usage: - tools/ci/check_api_violation.sh - tools/ci/check_examples_extra_component_dirs.sh +check_wifi_remote_api: + extends: + - .pre_check_template + - .rules:build:check + script: + - cd components/esp_wifi/remote/scripts/ + - python generate_and_check.py + - git diff --exit-code || { echo 'Differences found. Please run generate_and_check.py and commit the changes.'; exit 1; } + check_blobs: extends: - .pre_check_template diff --git a/.gitlab/ci/rules.yml b/.gitlab/ci/rules.yml index 8aa3a5fcc0..335efc0c92 100644 --- a/.gitlab/ci/rules.yml +++ b/.gitlab/ci/rules.yml @@ -49,6 +49,7 @@ - "tools/idf.py" - "tools/idf_py_actions/**/*" - "tools/ci/ignore_build_warnings.txt" + - "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" @@ -72,6 +73,7 @@ - "tools/ci/check_public_headers.py" - "tools/ci/check_register_rw_half_word.cmake" - "tools/ci/check_register_rw_half_word.py" + - "components/esp_wifi/remote/scripts/generate_and_check.py" - "examples/build_system/**/*" .patterns-host_test_cli_installer: &patterns-host_test_cli_installer diff --git a/tools/esp_err_to_name_exceptions.txt b/tools/ci/esp_err_to_name_exceptions.txt similarity index 100% rename from tools/esp_err_to_name_exceptions.txt rename to tools/ci/esp_err_to_name_exceptions.txt diff --git a/tools/gen_esp_err_to_name.py b/tools/gen_esp_err_to_name.py index fb4d6bc60f..4bbc6ff34e 100755 --- a/tools/gen_esp_err_to_name.py +++ b/tools/gen_esp_err_to_name.py @@ -14,7 +14,7 @@ import textwrap from typing import Any from typing import TextIO -# ignore files and dirs: Please use tools/esp_err_to_name_exceptions.txt to add exceptions +# ignore files and dirs: Please use tools/ci/esp_err_to_name_exceptions.txt to add exceptions ignore_files: list = [] ignore_dirs: list = [] @@ -322,7 +322,7 @@ def main() -> None: default=idf_path + '/components/esp_common/src/esp_err_to_name.c', ) parser.add_argument('--rst_output', help='Generate .rst output and save it into this file') - parser.add_argument('--exceptions_file', default=idf_path + '/tools/esp_err_to_name_exceptions.txt') + parser.add_argument('--exceptions_file', default=idf_path + '/tools/ci/esp_err_to_name_exceptions.txt') args = parser.parse_args() include_as_pattern = re.compile(rf'\s*//\s*{os.path.basename(__file__)}: [^"]* "([^"]+)"')