Repository navigation
feat: enforce no-throw annotations and ESP release exception policy - #4774
Conversation
|
Important Review skippedToo many files! This PR contains 613 files, which is 313 over the limit of 300. To get a review, reduce the PR to 300 files or fewer by splitting it into smaller PRs or changing its base branch. Usage-priced reviews support at most 300 files. ⚙️ Run configuration
📒 Files selected for processing (613)
You can disable this status message by setting the
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Final local size and contract evidenceMeasured PR head:
Policy-only controls with an empty annotation macro reproduced these image What was retainedLegacy before: 18 FastLED This is an object/section graph. The old ELF's FDE relocations were not preserved, RED → GREEN and regression enforcementThe same legacy GCC8 ESP probe failed on the baseline with: After enabling the macro, fbuild compiled that probe successfully. Collected Coverage boundariesDetailed matrix, graph and evidence record. No ordinary example edits, production unity splitting, new workflows or vendor |
Final acceptance audit and CI verdictValidated and pushed head: Full
No unrelated board selections, compiler selections, workflows or thresholds were Acceptance evidence
Explicit residual limits
These builder/backend limits are documented as required by the issue's |
Summary
Closes #4773. Follow-up to #4707; preserves closed, unmerged #4736 as history.
FastLED assumes no throw, including user callbacks.
FL_NO_EXCEPTis realnoexcepton every ESP target in both debug and release; release staging appends-fno-exceptions. System debug, unwind and panic handlers remain system-owned.The maintainer explicitly authorized this broad annotation cleanup and removal
of the old lint baseline: #4773 (comment)
matches and inactive platform branches, and make the tool fail on parse errors.
mismatches and prevent nested callback/lambda annotations hiding outer functions.
qualify global
::CFastLEDfor Windows lookup and remove two optional adaptercatch wrappers to enforce the no-exception policy.
Ordinary examples have no edits; AutoResearch retains its permitted macros.
No new
workflows, linker changes, singleton migration or source-layout rewrite.
Production evidence
Final PR-head local measurements and contract evidence
record exact SHA50f67c4a47. The same values below were reproduced at that head.
real FastLED noexcept contracts (
strict10).Windows Clang RED/GREEN lookup evidence and an actual-header probe instantiating
both Windows Sleep paths with real noexcept. Windows AST parsing uses the same
GNU target/sysroot/header profile as native builds; missing tooling fails closed.
I/O. Errno contract mismatch has actual compiler RED/GREEN evidence; an actual
AVR-target C++11 probe checks the emulated initializer-list contracts.
The final-head full CI Python suite also passed.
Silicon macOS. Linux and Windows logs confirm319/319 units each. All hosted
example sweeps passed. Earlier local full debug and targeted coroutine
verification passed after repairing the timing-dependent handshake.
Policy-only controls reproduce these savings; no annotation-only gain is claimed.
Static DRAM is unchanged except C3 saves8 B. CI S3 measured350383 B (within16 B
of local) and its baseline ratchet is lowered accordingly.
Legacy map: 18 FastLED
.eh_frameinputs (170704 B) and31 exception-table inputs(491 B), totaling171195 B, disappear. SDK linker KEEP
retained compiler-emitted frames from unity objects;
fl::Singletoncannotoverride this. SDK/libstdc++ exception runtime symbols remain.
Exact-SHA
ci-fullcompleted at50f67c4a47:99/101 workflow runs passed, none remainpending. Every named ESP family, native/example suite, QEMU and size gate passed.
The two independent baseline failures are tracked in #4775
(ATmega8A RGBW overflow, reproduced unchanged master) and #4779 (MP3 audit
compiler selection: unchanged code gives47 instructions on GCC13 versus44 on
GCC14). No unrelated board selection, workflow or audit threshold edits included.
Coverage limits
fbuild currently resolves the requested IDF6 preview reference to SDK5.5.5;
tracked separately in FastLED/fbuild#1662. The component-named profile is another
Arduino-backed build: fbuild does not invoke component CMake integration. Neither
component nor standalone
app_mainintegration is proven (FastLED/fbuild#1664).The host AST inventory cannot parse
every inactive platform branch; target compiler checks remain required.
Working evidence and symbol-retention graph:
agents/tasks/esp-noexcept-4773-results.md.Final runtime audit removes two owned NeoPixelBus catch wrappers and repairs
two constructors and two invalid local annotation tokens. A collected test bans
exception keywords throughout owned runtime sources, including inactive code;
vendor code and the assertion test framework retain their independent contracts.
All39 focused ESP policy tests and full portable lint passed. Actual vendor
RGB/RGBW template instantiations compile with a test-only isolation of the
existing controller name collision. Normal adapter integration remains broken,
tracked separately in #4780; no dispatch rewrite is included.