Trigger the smoke tests when the shared build configs change

This commit is contained in:
J. Nick Koston
2026-09-26 20:47:51 +01:00
parent c125310f66
commit 06a26ee57c
2 changed files with 15 additions and 1 deletions
+9 -1
View File
@@ -521,12 +521,19 @@ ESP32_PLATFORMIO_TEST_COMPONENTS = frozenset(
}
)
# Shared by every toolchain smoke-test job: the base config and the bus
# packages each generated build includes
_SMOKE_HARNESS_TRIGGER_PATH_PREFIXES = ("tests/test_build_components/",)
# Path prefixes whose changes always trigger the PlatformIO compile test:
# anything under esphome/platformio/ (the PlatformIO runner / toolchain that
# drives every PlatformIO build). The esp32 platform component is already in
# ESP32_PLATFORMIO_TEST_COMPONENTS, so its changes are covered by the normal
# component-narrowing path.
ESP32_PLATFORMIO_TRIGGER_PATH_PREFIXES = ("esphome/platformio/",)
ESP32_PLATFORMIO_TRIGGER_PATH_PREFIXES = (
"esphome/platformio/",
*_SMOKE_HARNESS_TRIGGER_PATH_PREFIXES,
)
# Standalone files that, when changed, trigger the PlatformIO compile test:
# - esphome/build_gen/platformio.py -- the PlatformIO build generator
@@ -673,6 +680,7 @@ ESP8266_NATIVE_TRIGGER_PATH_PREFIXES = (
"esphome/arduino8266/",
"esphome/arduino/",
"esphome/build_helpers/",
*_SMOKE_HARNESS_TRIGGER_PATH_PREFIXES,
)
# Shared library-conversion modules every native build imports; espidf-only
# infra (build_gen/espidf.py) deliberately stays out of the esp8266 set.
+6
View File
@@ -1017,6 +1017,9 @@ _ESP32_PLATFORMIO_FULL_LIST_FILES = [
# Workflow / harness files
["script/test_build_components.py"],
[".github/workflows/ci.yml"],
# The base config and bus packages every generated build includes
["tests/test_build_components/build_components_base.esp32-idf.yaml"],
["tests/test_build_components/common/uart/esp32-idf.yaml"],
]
@@ -3187,6 +3190,9 @@ def test_memory_impact_elf_layouts_are_found(tmp_path: Path) -> None:
"esphome/platformio/toolchain.py",
# The composite cache action must not ship unexercised
".github/actions/cache-arduino8266/action.yml",
# The base config and bus packages every generated build includes
"tests/test_build_components/build_components_base.esp8266-ard.yaml",
"tests/test_build_components/common/uart/esp8266-ard.yaml",
],
)
def test_esp8266_native_components_full_list_on_infra_change(changed: str) -> None: