Repository navigation
ci(avr8js): replace fbuild test-emu with Docker runner (re-fix #2645) - #2651
Conversation
…r runner fbuild 2.2.10+ hangs the daemon's /api/test-emu handler indefinitely on the avr8js path, and once the daemon is wedged every subsequent fbuild call (including `daemon status` / `show daemon`) also hangs — the daemon-restart workaround from the previous commit on this branch did not unblock it (verified on run 26701323431: the diagnostic dump itself hung past the 30-min mark). Switch to invoking ci.docker_utils.avr8js_docker.DockerAVR8jsRunner directly from the workflow. That's the same code path used by local `bash test --run uno`, and it predates the fbuild migration that introduced #2645. - 8-min cap on both build and emulator steps still bounds CI burn if the Docker image pull or run misbehaves. - The Test sketch's serial markers ("Test setup starting" / "Test loop") are validated explicitly because the Docker runner only surfaces the emulator exit code. - Drops the Node.js setup, npm install, fbuild daemon restart, and failure-diagnostic steps from the previous attempt — none of them are needed for the Docker path and the diagnostic ones were themselves hanging on the wedged daemon. Refs #2645, FastLED/fbuild#291, #292, #130.
|
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 (1)
📝 WalkthroughWalkthroughThe workflow template switches AVR8JS emulation execution from a Node.js/fbuild daemon-based approach to Docker container-based execution. Sketch compilation remains the same, but emulation now runs the firmware in a Docker container with platform-aware MCU/frequency selection, output logging, and serial marker validation. ChangesAVR8JS Docker Emulation Workflow
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related issues
Possibly related PRs
Poem
✨ Finishing Touches🧪 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 |
Summary
Follow-up to #2646. That PR's daemon-restart workaround did not unblock the underlying fbuild test-emu hang on the avr8js path — verified on dispatched run 26701323431: the diagnostic dump step itself hung past 30 minutes because every fbuild CLI call (including `daemon status` / `show daemon`) blocks once the daemon is wedged.
Switch the workflow to invoke `ci.docker_utils.avr8js_docker.DockerAVR8jsRunner` directly. That's the same code path used by local `bash test --run uno`, pre-dates the fbuild migration, and is unaffected by fbuild#2645.
Verification
Dispatched on this branch's commits as run 26701823336 — completed: success. Compile + Docker emulate + serial-marker validation all green.
Changes
Test plan
Refs #2645, supersedes the workaround merged in #2646.
🤖 Generated with Claude Code
Summary by CodeRabbit