Commit Graph
44 Commits
Author SHA1 Message Date
J. Nick Koston d0263b0bef Mirror the joined -include fold, harden the probe, fail closed on unreadable closure headers 2026-08-26 10:44:17 -05:00
J. Nick Koston 410a3868ea Gate the ccache sloppiness on the pch actually being emitted 2026-08-26 10:00:59 -05:00
J. Nick Koston c419fc4bbc Skip the pch when a header identity is unknown, union missing sloppiness tokens, report projenv import failures 2026-08-25 19:59:25 -05:00
J. Nick Koston 2665a4fa12 [esp8266] Precompile the shared prefix header for src compiles 2026-08-25 13:16:51 -05:00
J. Nick Koston 2ee448a7a8 Cover the failed-probe fall-through 2026-08-24 19:19:30 -05:00
J. Nick Koston 1739bbf3de Name explicit ninja targets instead of policing mtimes, unify the no-tests accounting per pattern, mark stale-ELF decodes, glob the idedata caches 2026-08-24 18:15:58 -05:00
J. Nick Koston 634dfe6f3c Harden the skip path against stale artifacts, tolerate corrupt linker scripts, guard the baseline degrade, mark undecoded addresses 2026-08-24 13:49:50 -05:00
J. Nick Koston b893cee6ca Apply simplify pass: shared idedata warning, platform-keyed backend table, one owner for the cache prefix and trigger files 2026-08-23 18:07:46 -05:00
J. Nick Koston aaebc6e007 Cover the skipped-size-summary warning in run_compile 2026-08-23 18:00:34 -05:00
J. Nick Koston fde0a835b6 Pin board_build.flash_mode unconditionally, dispatch native backends by toolchain, report a skipped size summary 2026-08-23 17:46:23 -05:00
J. Nick Koston f1b2258661 Stop the false build_src_flags warning, share the idedata error tuple, make the no-tests guard per platform 2026-08-23 16:48:36 -05:00
J. Nick Koston 24ea73a626 Gate the zero-test guard behind a flag, keep the upload path import-free, verify all artifacts, regenerate a stale compile DB 2026-08-22 21:47:03 -05:00
J. Nick Koston 9d4df93676 Assert the launcher string verbatim; Path normalization diverged on Windows 2026-08-22 21:42:53 -05:00
J. Nick Koston cc73c0c67e Dispatch esptool flashing via the backend hook, share the native trigger files, gate the probe, cache the closure 2026-08-22 21:21:25 -05:00
J. Nick Koston aa63eb9734 Move the resolve-for-me ccache sentinel to its one consumer 2026-08-22 21:18:48 -05:00
J. Nick Koston 64d0137ab8 Verify build artifacts and surface probe diagnostics; fail on a zero-test CI run 2026-08-22 20:49:02 -05:00
J. Nick Koston 3635c05fa5 Non-destructive platform_version check, honest compdb errors, missing-binutils refusal
The platform_version pop defaults to the schema spec so a second
validation pass over an already-validated dict cannot warn about a key
the user never set. An unparsable compile database now fails naming the
parse error and the offending output instead of blaming renamed ninja
rules. analyze-memory validates the native objdump/readelf exist and
fails by tool name rather than silently analyzing with host binutils.
The shared smoke-test helper is renamed _toolchain_components_to_test
(it serves the esp32 PlatformIO job too), and the decode-dedup state is
cleared by an autouse fixture instead of by hand.
2026-08-22 15:36:49 -05:00
J. Nick Koston 1d88a5a92b Keep no-op rebuilds quiet
A -n dry-run probe answers 'no work to do' without the real ninja spawn,
and running with cwd instead of -C drops the 'Entering directory' banner
on real builds too.
2026-08-22 14:14:37 -05:00
J. Nick Koston b002a37987 Fail fast on empty compile databases and unsupported analyze-memory toolchains; degrade a missing size tool
ninja -t compdb exits 0 with an empty list when the rule names drift, so
the compile database is now parsed and an empty result fails the build
and drops the stale file. analyze-memory refuses an unsupported
toolchain before paying for the compile. A missing size binary warns
instead of discarding an already-linked build, _parse_app_size returns
explicitly from its not-found branch, and the CI cache action asserts
the caller's install prefix matches the cached path. The esp8266
run_compile dispatch hook and copy_files early-return gain direct
tests.
2026-08-22 12:06:38 -05:00
J. Nick Koston 8b21fa620d Cover the pre-resolved ccache branch of get_idedata 2026-08-21 21:20:58 -05:00
J. Nick Koston 17f718e8c9 Simplify the native dispatch and CI cache wiring
A cache-arduino8266 composite action mirrors cache-esp-idf (one key
resolver, dev-writes/PR-restores) and both jobs pin
ESPHOME_ARDUINO8266_PREFIX so YAML and Python agree on the path by
construction. esp32 provides the native_toolchain_module hook, so the
shared dispatcher never names a backend and the unclaimed-native raise
loses its esp-idf carve-out; the esp8266 decode and run_compile hooks
resolve through the same seam. run_compile resolves ccache once and
threads it to the generator, env, and idedata; the compdb rule names
follow the shared kinds; the pio-options warner inlines into the driver
and derives its consumed set from the core routing constant; the
per-toolchain CI narrowing shares one body; create_components_graph is
memoized per run; the decode rate-limit drops its math sentinel.
2026-08-21 20:55:27 -05:00
J. Nick Koston f2a878cb25 Stop warning about the now-honored f_cpu and ldscript overrides 2026-08-21 20:31:12 -05:00
J. Nick Koston 3f96590567 Backend-agnostic dispatch guards, positive native polarity, warn on dropped upload_speed 2026-08-20 20:44:08 -05:00
J. Nick Koston 406d5c87ed Warn instead of failing when the post-build idedata is unusable 2026-08-20 18:41:38 -05:00
J. Nick Koston ed48f36fa8 Route native dispatch through a platform hook, hoist the pio-options warner, adopt shared toolchain factories 2026-08-20 15:53:58 -05:00
J. Nick Koston 5d173d851e Cover the idedata failure warning after a successful build 2026-08-20 14:53:58 -05:00
J. Nick Koston 2c883a2c26 Toolchain-suffixed idedata cache, surfaced idedata failures, and per-dump decode warnings 2026-08-20 14:48:18 -05:00
J. Nick Koston c96360d83c Merge branch 'esp8266-native-shared-helpers' into esp8266-arduino-toolchain 2026-08-20 12:46:43 -05:00
J. Nick Koston 1477de24d3 Skip the RAM and Flash summary lines together when the flash budget is unknown 2026-08-20 10:09:57 -05:00
J. Nick Koston 069ae156f9 Strip the exact configured launcher from compile commands instead of guessing by name 2026-08-20 09:55:15 -05:00
J. Nick Koston 0defff2c81 Warn when component-added platformio options are dropped by the native build 2026-08-20 07:53:16 -05:00
J. Nick Koston 2d93300903 Detect knobs in multi-token build_flags entries and drop a zero flash budget with a warning 2026-08-20 07:39:14 -05:00
J. Nick Koston 311f610787 Make the link-line and tool-path tests platform-independent 2026-08-20 05:10:58 -05:00
J. Nick Koston eb3a64829f Shell-lex -L/-l build_flags entries and generate the compile database before the build 2026-08-20 04:59:27 -05:00
J. Nick Koston 7cb22725e3 Escape object paths once at the source and drop a dead parameter 2026-08-20 04:39:50 -05:00
J. Nick Koston 005c01e1e2 Address review: Windows binutils suffix, honor build_unflags against framework flags 2026-08-20 03:51:08 -05:00
J. Nick Koston 59c309083d Address review: include surgery constants in the ld stamp, require size sections, warn on missing extraScript 2026-08-20 03:36:44 -05:00
J. Nick Koston 9cf7ff94ac Resolve bare registry libraries at latest version like PlatformIO; tighten review cleanups 2026-08-20 03:07:07 -05:00
J. Nick Koston 702ef56a88 Address review: route project -L/-l to the link, fail on unresolvable libraries, remove dead ninja constants, tighten diagnostics 2026-08-20 02:54:00 -05:00
J. Nick Koston 0c48f749c2 Fix testing-mode segment requirements per linker script; simplify downloads and native command dispatch 2026-08-20 01:45:39 -05:00
J. Nick Koston 5df08d36be Address review: wire analyze-memory and idedata for the native toolchain, warn on ignored platformio_options, verify downloads, surface silent failures 2026-08-20 01:34:15 -05:00
J. Nick Koston 60b7b874f1 Address review: route versioned bare libraries to the registry, deterministic MMU order, scoped toolchain branches, diagnostics 2026-08-20 00:00:51 -05:00
J. Nick Koston 3fe9cac1fc Apply review cleanups to the native ESP8266 toolchain 2026-08-19 23:13:30 -05:00
J. Nick Koston 8811224c0e Add full test coverage for the native ESP8266 toolchain 2026-08-19 22:59:05 -05:00