Repository navigation
fix(ci): stop faking the sdkconfig overlay in the ESP32-S3 audit (#4570); fix RMT5 poll() READY race - #4573
Conversation
The script patched the repo-root platformio.ini, which the fbuild compile path never reads, so stage3/stack/max_savings silently measured the baseline. fbuild cannot apply sdkconfig overrides yet (FastLED/fbuild#1460). `--config all` now skips overlay configs with a notice, and naming one explicitly exits 2. The dead ini patch/backup/signal handling is removed. Closes #4570 Co-Authored-By: Claude Opus 5.5 <[email protected]>
When poll() released a channel and processPendingChannels() restarted a pending strip on that same, already-counted ChannelState, activeCount hit zero and poll() returned READY, clearing in-use flags mid-transmit. With more strips than RMT channels this let callers overwrite pixel data while it was still being sent. Also stop Strategy 2 from handing out a channel that configureChannel() just destroyed. The channel_driver_rmt tests from #4571 hid this: their completion loops waited on isInUse(), which the bogus READY had already cleared, so each test left the driver BUSY and its destructor spun out its full timeout (20-50 s per run, tripping the 20 s test watchdog). Tests now assert READY at the end; the suite runs in ~0.02 s. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Repository: FastLED/FastLED/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
✨ 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 |
|
Bloat before vs after (ESP32-S3 Blink,
The #4570 part (audit script) is CI tooling and cannot reach firmware. The +74 B is the RMT5 |
Closes #4570.
1. Measurement script (#4570)
tests/measure_esp32s3_opt_ins.pyapplied the Stage 3 overlay by patching the repo-rootplatformio.ini. The fbuild compile path never reads that file, and fbuild has no sdkconfig-override support at all (filed as FastLED/fbuild#1460). As a result,stage3,stackandmax_savingssilently measured the baseline.--config allnow skips those configs and prints a notice.ci/tests/test_measure_esp32s3_opt_ins.py.2. RMT5 driver:
poll()reported READY mid-transmitThe bug:
poll()releases a finished channel, thenprocessPendingChannels()can restart a pending strip on that sameChannelState.activeCount, sopoll()returned READY and cleared the in-use flags while the strip was still transmitting.Also fixed: Strategy 2 handed out a channel that
configureChannel()had just destroyed, for example on an invalid pin.Found because
channel_driver_rmthit the 20 s test watchdog in local full runs (it took 20–50 s). The #4571 tests waited onisInUse(), which the bogus READY had already cleared, so each test left the driver BUSY and its destructor spun until timeout. The tests now assert READY at the end; the new check failed before the fix and passes after. The suite now runs in about 0.02 s.Validation
bash test --cpp: 410/410 passed.channel_driver_rmtpasses in the--debugsanitizer build.bash lintis clean.🤖 Generated with Claude Code
Summary by CodeRabbit