mirror of
https://github.com/esphome/esphome.git
synced 2026-10-05 18:41:32 +00:00
Adopt the shared size line printer and cover the moved modules in the native CI triggers
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user