Repository navigation
chore(lint): clear pre-existing bash-lint baseline failures - #2684
Conversation
After PR #2683 landed, the Stop hook surfaced 4 pre-existing master-baseline lint failures that the python_pipeline's short-circuit-on-first-fail had been hiding. None of them are caused by recent commits — they pre-date PR #2683 — but per CLAUDE.md's "fix all encountered errors" rule, sweeping them here: * `ci/meson/src_metadata_cache.py` - KBI002: bare `except KeyboardInterrupt: raise` now calls `_thread.interrupt_main()` first per repo convention. - `ty` possibly-missing-attribute: add an `assert cache is not None` after the `if cache is None: sys.exit(1)` guard so `ty` narrows `CacheEntry | None` -> `CacheEntry` for the subsequent attribute access at lines 213/215. * `src/platforms/esp/32/drivers/lcd_spi/channel_driver_lcd_clockless.cpp.hpp` and `src/platforms/esp/32/drivers/lcd_spi/lcd_spi_peripheral_esp.cpp.hpp` - LoggingInIramChecker: `FL_WARN` is not safe inside an `FL_IRAM` function (the macro pulls in the logging machinery which is not IRAM-resident). Swap the four call sites for `esp_rom_printf` — same pattern other IRAM-resident error paths already use, marked with the canonical `// ok esp_rom_printf` suppression comment. * `examples/AutoResearch/AutoResearchParlioStream.h` - PlatformIncludesChecker: AutoResearch is the canonical ESP32 PARLIO live-driver scratch sketch and intentionally pulls a deep driver header for streaming diagnostics. Suppress with the documented `// ok platform headers` marker. * `src/platforms/esp/32/drivers/parlio/parlio_engine.cpp.hpp` and `src/platforms/esp/32/drivers/usb_serial_jtag_esp32_idf.hpp` - StdintTypeChecker: three `uint32_t` references swapped for `fl::u32`. The parlio file gains `#include "fl/stl/int.h"`; the JTAG file already had `u32` in scope. `bash lint` is now clean against master HEAD on host (Windows).
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThis PR enhances ESP32 driver diagnostics with error logging, standardizes integer types to ChangesDiagnostics & Type Consistency Updates
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
…2685) Filed root-cause report upstream: forge-ci/zccache#619 (Windows PCH path-spelling mismatch defeats `#pragma once` across the PCH boundary). This PR ships the targeted workarounds needed to unblock host-build tests against the current Stop-hook policy while the upstream fix lands. Symptom: error: redefinition of 'LogLevel' note: 'C:/.../src\fl/stl/cstdio.h' included multiple times, additional include site here The same physical cstdio.h header was reached via two different canonical path spellings — one with mixed slashes (the literal backslash inserted by clang-on-Windows when joining the `-I` root with the relative include) and one resolved through the PCH cache — and `#pragma once` failed to dedupe. Changes: 1. `ci/meson/shared/meson.build` — replace meson's `/` path-join operator with literal `+ '/' +` concatenation. The `/` operator emits the native separator on Windows (backslash) even when both operands are forward-slash-spelled, which was injecting a trailing backslash into every `-IC:/.../src\` flag and feeding zccache an inconsistent spelling. This is a real bug in our build setup and gets fixed regardless of the upstream zccache work; it just isn't sufficient on its own to clear the dedup failure. 2. Six SOURCE-tree files (`src/fl/...`) — remove redundant direct `#include "fl/stl/cstdio.h"` lines where cstdio.h was already reachable transitively through ostream.h via the PCH. Two of these (istream.h, serial.h) actually used cstdio.h symbols; istream.h forward-declares the one symbol it needs (`fl::available`), serial.h keeps relying on the strstream.h -> ostream.h -> cstdio.h chain that is already in scope. 3. Six TEST-tree files — same fix: remove the redundant direct include. Each gets an explanatory comment referencing zccache#619 so future maintainers can revert the workaround once the upstream fix lands. 4. `src/platforms/esp/32/drivers/lcd_spi/channel_driver_lcd_clockless.cpp.hpp` — gate the `esp_rom_printf` call that PR #2684 added under `#ifndef FASTLED_STUB_IMPL`. The function compiles on host stub (where FASTLED_STUB_IMPL is set) and `esp_rom_printf` is undeclared there; the host stub doesn't run the ISR anyway. Verified: `bash test --cpp` -> 249/249 passed on Windows host with zccache 1.11.9 + clang 21.1.5.
Summary
After PR #2683 landed, the Stop hook surfaced 4 pre-existing master-baseline lint failures that the python_pipeline's short-circuit-on-first-fail had been hiding. None caused by recent commits, but per CLAUDE.md's "fix all encountered errors" rule, sweeping them.
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Chores