You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ESP32 builds with the Arduino SD backend enabled fail in FastLED 3.10.7 because four error-method overrides in each of SDFileHandle and SdFatFileHandle omit the FL_NO_EXCEPT contract required by filebuf. Add the eight missing annotations without changing method behavior.
The regression came from #4774: FL_NO_EXCEPT became real noexcept on ESP and the base methods were annotated, but these conditional implementations were missed. Dependency discovery can enable SD even for a sketch that only uses LEDs. Native filesystem tests use the host backend; the AST checker also lacks these SDK headers. Two new compiler regressions extract the actual override declarations from both implementations and check them against the real base class, including completeness, without requiring SDK downloads in Python CI.
Validation:
Both new tests fail with the original declarations and pass with the fix; the full test_esp_noexcept module passes.
Real SDK compilation of both SD and SdFat branches: original fails / fixed passes with GCC 8.4 + Arduino ESP32 2.0.3 and GCC 14.2 + Arduino ESP32 3.3.11. Probes require the actual backend type, so an excluded branch cannot pass.
The reporter's unchanged sketch builds and links for LOLIN D32 using espressif32 6.13.0, Arduino ESP32 2.0.17, and GCC 8.4 patch5. Restoring the original header reproduces all four reported errors; reapplying the fix succeeds (522806 B flash, 30392 B RAM).
bash test --cpp: 320/320 unit tests and 96/96 examples pass. bash lint and repository code review pass.
Target validation ran on Linux via fbuild. A scratch fs.h forwarding to SDK FS.h emulates Windows case-insensitive lookup, and explicit SDK FS include paths/sources compensate for fbuild's omitted dependency. No Windows execution or physical hardware run is claimed.
Summary by CodeRabbit
Bug Fixes
Fixed a compile-time compatibility issue affecting both Arduino SD backends.
Tests
Added compile-time checks to verify the SD backends’ error-handling methods compile correctly.
Reviewing files that changed from the base of the PR and between 6062bee and 6bd941a.
📒 Files selected for processing (3)
agents/tasks/todo.md
ci/tests/test_esp_noexcept.py
src/fl/fs/sd/fs_sdcard_arduino.cpp.hpp
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
📝 Walkthrough
The Arduino SD file-handle overrides now declare FL_NO_EXCEPT, matching the base-class exception contract. A compile-time regression test checks both backends. The tracker records validation results and limits.
A compile-time test checks both backends against the filebuf exception contract. The tracker records validation results, including that Windows execution and physical hardware testing were not performed.
The change addresses the reported ESP32 SD compile issue, with regression coverage for both backends; no actionable merge risk remains.
Pre-merge checks · 4 · 1
Failed checks (1 warning)
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 12 functions across 2 files. (1 skipped: …
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks (4 passed)
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title is concise, specific, and accurately describes the main change: restoring ESP32 SD file noexcept compatibility.
Linked Issues check
Issue #4826 requires the ESP32 Arduino SD build to compile after the FL_NO_EXCEPT mismatch. The PR adds FL_NO_EXCEPT to all four error overrides in both SDFileHandle and SdFatFileHandle. The n…
Out of Scope Changes check
The production diff only changes the eight affected exception specifications. The new test directly prevents regression of issue #4826 for both backends. The added tracker entry documents the same reg…
Full details: Docstring Coverage
Explanation
Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 12 functions across 2 files. (1 skipped: 1 unsupported.)
Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
Commit to this branch
Create a new PR
🧪 Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4826.
ESP32 builds with the Arduino SD backend enabled fail in FastLED 3.10.7 because four error-method overrides in each of
SDFileHandleandSdFatFileHandleomit theFL_NO_EXCEPTcontract required byfilebuf. Add the eight missing annotations without changing method behavior.The regression came from #4774:
FL_NO_EXCEPTbecame realnoexcepton ESP and the base methods were annotated, but these conditional implementations were missed. Dependency discovery can enable SD even for a sketch that only uses LEDs. Native filesystem tests use the host backend; the AST checker also lacks these SDK headers. Two new compiler regressions extract the actual override declarations from both implementations and check them against the real base class, including completeness, without requiring SDK downloads in Python CI.Validation:
test_esp_noexceptmodule passes.bash test --cpp: 320/320 unit tests and 96/96 examples pass.bash lintand repository code review pass.Target validation ran on Linux via fbuild. A scratch
fs.hforwarding to SDKFS.hemulates Windows case-insensitive lookup, and explicit SDK FS include paths/sources compensate for fbuild's omitted dependency. No Windows execution or physical hardware run is claimed.Summary by CodeRabbit