Adopt the shared size line printer and cover the moved modules in the native CI triggers

This commit is contained in:
J. Nick Koston
2026-08-20 15:30:03 -05:00
parent d736b0d1eb
commit cbd5e08aa9
2 changed files with 6 additions and 4 deletions
+4 -4
View File
@@ -164,9 +164,9 @@ def _print_size_summary(build_dir: Path) -> None:
"""Print the PlatformIO-shaped RAM/Flash lines.
The exact shape (including the bar) is parsed by
``script/ci_memory_impact_extract.py``; ``format_bar`` matches it.
``script/ci_memory_impact_extract.py``; ``print_size_line`` matches it.
"""
from esphome.build_helpers.size_summary import format_bar
from esphome.build_helpers.size_summary import print_size_line
size_tool = _toolchain_tool("size")
result = subprocess.run(
@@ -206,8 +206,8 @@ def _print_size_summary(build_dir: Path) -> None:
return
ram = sum(sections[s] for s in _RAM_SECTIONS)
flash = sum(sections[s] for s in _FLASH_SECTIONS)
print(f"RAM: {format_bar(ram, _MAX_RAM_SIZE)}")
print(f"Flash: {format_bar(flash, app_size)}")
print_size_line("RAM", ram, _MAX_RAM_SIZE)
print_size_line("Flash", flash, app_size)
def get_idedata() -> dict | None:
+2
View File
@@ -646,6 +646,7 @@ ESP8266_NATIVE_TEST_COMPONENTS = frozenset(
# the backend shares with the native ESP-IDF build.
ESP8266_NATIVE_TRIGGER_PATH_PREFIXES = (
"esphome/arduino8266/",
"esphome/arduino/",
"esphome/build_helpers/",
)
ESP8266_NATIVE_TRIGGER_FILES = frozenset(
@@ -656,6 +657,7 @@ ESP8266_NATIVE_TRIGGER_FILES = frozenset(
"esphome/components/esp8266/build_surgery.py",
"esphome/components/esp8266/boards.py",
"esphome/platformio/library.py",
"esphome/platformio/registry.py",
"esphome/platformio/toolchain.py",
"script/test_build_components.py",
".github/workflows/ci.yml",