feat(ci): Add wifi-remote generation check to CI

This commit is contained in:
David Cermak
2026-02-26 17:03:40 +01:00
parent 7d5e141e37
commit 78017aa02c
4 changed files with 13 additions and 2 deletions
+9
View File
@@ -29,6 +29,15 @@ check_api_usage:
- tools/ci/check_api_violation.sh - tools/ci/check_api_violation.sh
- tools/ci/check_examples_extra_component_dirs.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: check_blobs:
extends: extends:
- .pre_check_template - .pre_check_template
+2
View File
@@ -49,6 +49,7 @@
- "tools/idf.py" - "tools/idf.py"
- "tools/idf_py_actions/**/*" - "tools/idf_py_actions/**/*"
- "tools/ci/ignore_build_warnings.txt" - "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*.sh"
- "tools/ci/test_build_system*.py" - "tools/ci/test_build_system*.py"
- "tools/ci/build_template_app.sh" - "tools/ci/build_template_app.sh"
@@ -72,6 +73,7 @@
- "tools/ci/check_public_headers.py" - "tools/ci/check_public_headers.py"
- "tools/ci/check_register_rw_half_word.cmake" - "tools/ci/check_register_rw_half_word.cmake"
- "tools/ci/check_register_rw_half_word.py" - "tools/ci/check_register_rw_half_word.py"
- "components/esp_wifi/remote/scripts/generate_and_check.py"
- "examples/build_system/**/*" - "examples/build_system/**/*"
.patterns-host_test_cli_installer: &patterns-host_test_cli_installer .patterns-host_test_cli_installer: &patterns-host_test_cli_installer
+2 -2
View File
@@ -14,7 +14,7 @@ import textwrap
from typing import Any from typing import Any
from typing import TextIO 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_files: list = []
ignore_dirs: list = [] ignore_dirs: list = []
@@ -322,7 +322,7 @@ def main() -> None:
default=idf_path + '/components/esp_common/src/esp_err_to_name.c', 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('--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() args = parser.parse_args()
include_as_pattern = re.compile(rf'\s*//\s*{os.path.basename(__file__)}: [^"]* "([^"]+)"') include_as_pattern = re.compile(rf'\s*//\s*{os.path.basename(__file__)}: [^"]* "([^"]+)"')