Repository navigation
chore(decommission): retire compilation Docker — flags, modules, workflows, docs (Closes #2812 Phases 2-5) - #2822
Conversation
The niteris/fastled-compiler-* Docker image family was a stop-gap against PlatformIO's self-poisoning behavior (one platform's toolchain install corrupting another's cache). fbuild does not self-poison and has been the default backend in ci-compile.py for some time. The Docker wrapper has been carrying its own weight for nothing. This PR ships phases 2-5 of the decommission plan documented in #2812 as one atomic change. PR A (#2813) already disabled the scheduled rebuilds in phase 1. Phase 6 (Docker Hub image deletion) remains a manual admin action to be done weeks later, after any stragglers using `bash test --docker` / `bash profile --docker` have migrated. **Phase 2 — flag removal (compile path only)** - ci/compiler/argument_parser.py: drop --docker, --build, --local flags; drop docker_build + force_local fields from CompilationConfig; drop WorkflowType.DOCKER; simplify _determine_workflow to take just boards. - ci/ci-compile.py: drop handle_docker_compilation(); drop the FASTLED_DOCKER env-var project-root branch; drop the "auto-detect Docker + force --local on GitHub Actions" block; drop the WorkflowType.DOCKER dispatch. - compile (bash wrapper): drop the FASTLED_DOCKER skip-guard around the .venv setup. **Phase 3 — delete compile-Docker Python modules** - ci/compiler/docker_manager.py - ci/build_docker_image_pio.py - ci/docker_utils/Dockerfile.base, Dockerfile.template, build.sh - ci/docker_utils/image_priority_tracker.py - ci/docker_utils/generate_platformio_ini.py - ci/docker_utils/docker_build_utils.py, prune_old_images.py - ci/docker_utils/diagnose_sync.sh **Pruned (kept for emulator support, scope-clarified in module docstring)** - ci/docker_utils/DockerManager.py — still used by qemu_esp32_docker.py for run_container_streaming(). Compile-side caller is gone. - ci/docker_utils/build_platforms.py — still used by qemu_esp32_docker.py for get_platform_for_board() when naming niteris/fastled-simulator-* emulator images. Mirror compile-image names that previously used this mapping are no longer published. - ci/docker_utils/build_image.py — kept generate_config_hash() + get_platformio_version() (used by qemu_esp32_docker.py). Dropped the compile-only extract_architecture() and generate_docker_tag(). - ci/util/docker_helper.py — kept attempt_start_docker() and platform daemon-start helpers (used by ci/profile_runner.py). Dropped get_docker_image_name(), is_docker_image_available(), and should_use_docker_for_board() which all looked up the deleted compiler-image namespace. **Phase 4 — delete CI workflows** - .github/workflows/docker_compiler.yml (base image) - .github/workflows/docker_compiler_template.yml (monthly full build) - .github/workflows/docker_compiler_smart_build.yml (daily incremental) - .github/workflows/docker_compiler_{avr,esp,stm32,nrf52,teensy,rp,sam}.yml - .github/workflows/docker_merge_platform.yml (reusable manifest merge) - .github/workflows/docker_build_compiler.yml (reusable per-arch builder) - .github/workflows/docker_compiler_base.yml.disabled - .github/workflows/docker_compiler_base_platforms.yml.disabled Avr8js + qemu emulator workflows untouched (out of scope). **Phase 5 — documentation cleanup** - README.md: removed the "Docker Platform Builds" badge in the header cluster and the entire "Docker Compiler Builds" badge/image table block (lines 147-163 originally). - ci/docker_utils/README.md: rewritten as a small navigational stub describing the emulator + test-runner files that remain. - ci/docker_utils/DOCKER_DESIGN.md, task.md, RSYNC_FIX.md: deleted (architecture / planning docs for the retired system). - docker/README.md: rewritten the "PlatformIO Compilation" section to point at native fbuild compile and clarify that ci/docker_utils/ is now emulator-only. bash test --docker, bash profile --docker, avr8js + qemu Docker, the .devcontainer dev image, and the docker/unit-tests/ container image are all out of scope and continue to work. Their use of the published niteris/fastled-compiler-* images will be retired in a follow-up audit (see #2812 for the Phase 6 follow-up plan). Verification: - `bash compile uno --examples Blink` builds successfully in 24 s using the fbuild backend (no Docker involvement). - `bash lint`: Python (ruff + ty) clean. The 11 C++ lint violations reported are all in src/fl/net/network_detector.h, pre-existing on master (last touched in b1d4fe9, untouched by this PR) and out of scope. CI/CD pipeline change → mandatory code-review trigger per global rules; flagging explicitly. Diff: 37 files changed, 162 insertions(+), 10,211 deletions(-). Closes #2812 Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR removes the Docker-based PlatformIO compilation infrastructure across 40+ files: all ChangesDocker Compiler Decommission (Phase 2–5)
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
Summary
Atomic decommission of the `niteris/fastled-compiler-*` Docker compilation system. Closes #2812. Continuation of #2813 (Phase 1, schedules disabled).
The compiler-image family was a stop-gap against PlatformIO's self-poisoning behavior (one platform's toolchain install corrupting another's cache). fbuild does not self-poison and has been the default backend in `ci-compile.py` for some time. Time to remove the wrapper.
Diff: 37 files changed, 162 insertions(+), 10,211 deletions(-).
Scope boundary
What this PR changes
Phase 2 — flag removal (compile path)
Phase 3 — delete Python modules
`ci/compiler/docker_manager.py`, `ci/build_docker_image_pio.py`, `ci/docker_utils/{Dockerfile.base, Dockerfile.template, build.sh, image_priority_tracker.py, generate_platformio_ini.py, docker_build_utils.py, prune_old_images.py, diagnose_sync.sh}`.
Phase 4 — delete CI workflows
14 files: `docker_compiler.yml`, `docker_compiler_template.yml`, `docker_compiler_smart_build.yml`, `docker_compiler_{avr,esp,stm32,nrf52,teensy,rp,sam}.yml`, `docker_merge_platform.yml`, `docker_build_compiler.yml`, and 2 pre-existing `.disabled` stragglers.
Phase 5 — docs cleanup
Surface-area kept (intentionally)
Test plan
Sequence with the rest of the decommission
Mandatory code-review trigger
Per global CI rules: modifying CI/CD pipelines is a code-review trigger. Flagging explicitly.
Closes #2812
🤖 Generated with Claude Code
Summary by CodeRabbit