Skip to content

chore(decommission): retire compilation Docker — flags, modules, workflows, docs (Closes #2812 Phases 2-5) - #2822

Merged
zackees merged 1 commit into
masterfrom
chore/decommission-docker-compiler-code
Jun 5, 2026
Merged

zackees merged 1 commit into
masterfrom
chore/decommission-docker-compiler-code

Conversation

@zackees

@zackees zackees commented Jun 5, 2026 •

Copy link
Copy Markdown
Member

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

  • ✅ Removed: compile-Docker flags, Python orchestration, GitHub Actions workflows, README/doc references to `bash compile --docker` and the published compiler-image table.
  • ✅ Kept (out of scope): avr8js + qemu emulator workflows + their Docker images; `bash test --docker` and `bash profile --docker` (deferred audit, see decommission: retire niteris/fastled-compiler-* Docker images (PIO stop-gap no longer needed, fbuild is default) #2812).
  • ✅ Pruned (kept for emulator use): `DockerManager.py`, `build_platforms.py`, `build_image.py`, `docker_helper.py` — each had non-Docker-compile callers (qemu runner, profile runner) so were trimmed and re-scope-documented rather than deleted.

What this PR changes

Phase 2 — flag removal (compile path)

  • `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()` (~170 lines). 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 `.venv` setup.

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

  • `README.md` — removed the "Docker Platform Builds" header badge + the entire "Docker Compiler Builds" badge/image-table block (~17 lines).
  • `ci/docker_utils/README.md` — rewritten as a small navigational stub describing what's still here (emulator + test-runner Docker helpers).
  • `ci/docker_utils/DOCKER_DESIGN.md`, `task.md`, `RSYNC_FIX.md` — deleted (planning docs for the retired system).
  • `docker/README.md` — rewritten "PlatformIO Compilation" section to point at native fbuild and clarify `ci/docker_utils/` is now emulator-only.

Surface-area kept (intentionally)

File Reason kept Action taken
`ci/docker_utils/DockerManager.py` qemu_esp32_docker.py uses `run_container_streaming()` docstring re-scoped
`ci/docker_utils/build_platforms.py` qemu_esp32_docker.py uses `get_platform_for_board()` for simulator-image names docstring re-scoped
`ci/docker_utils/build_image.py` qemu_esp32_docker.py uses `generate_config_hash()` trimmed to two functions + docstring re-scoped
`ci/util/docker_helper.py` ci/profile_runner.py uses `attempt_start_docker()` trimmed to daemon-start helpers, compile-image lookups removed
`ci/docker_utils/container_db.py`, `cleanup_orphans.py`, `test_container_db.py` ci/runners/docker_runner.py (the `bash test --docker` path) uses container_db untouched
`ci/docker_utils/Dockerfile.avr8js`, `avr8js_docker.py`, `avr8js/`, `qemu_esp32_docker.py`, `README.qemu.md` Emulator Docker (out of scope per #2812) untouched

Test plan

  • `bash compile uno --examples Blink` builds successfully in 24 s using the fbuild backend (no Docker involvement).
  • `bash lint` Python (ruff + ty) clean.
  • 11 C++ lint violations reported are all in `src/fl/net/network_detector.h`, pre-existing on master (last touched in `b1d4fe98df`, untouched by this PR). Documented here so maintainer is aware; out of scope.

Sequence with the rest of the decommission

Phase PR Status
1 — disable scheduled rebuilds #2813 open
2-5 — code/workflow/doc deletion this PR open
6 — Docker Hub image deprecation/deletion manual admin action weeks after both PRs merge, after test/profile audit retires their use of the images

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

  • Chores
    • Decommissioned Docker-based cross-compilation CI system and pre-built compiler images; native compilation and fbuild backend are now the default approach
    • Docker-based emulator runners for testing and profiling remain available

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]>
@coderabbitai

coderabbitai Bot commented Jun 5, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

This PR removes the Docker-based PlatformIO compilation infrastructure across 40+ files: all docker_compiler_*.yml workflows, Python orchestration modules (docker_manager.py, docker_build_utils.py, image_priority_tracker.py), Dockerfiles and shell scripts, and CLI flags (--docker, --build, --local). The compilation path is refactored to use only the native fbuild backend; Docker daemon helpers and emulator utilities are retained and refactored.

Changes

Docker Compiler Decommission (Phase 2–5)

Layer / File(s) Summary
Compilation CLI and script refactoring
ci/compiler/argument_parser.py, ci/ci-compile.py, compile
Removes --docker, --build, and --local flags; eliminates WorkflowType.DOCKER enum member; refactors _determine_workflow() to depend only on board selection; simplifies project_root initialization by removing Docker-container detection; adds inline comments documenting the decommission.
Docker orchestration module removal
ci/compiler/docker_manager.py
Removes entire module containing DockerConfig, DockerContainerManager, DockerEntrypointBuilder, and DockerCompilationOrchestrator classes that managed Docker-based compilation lifecycle.
Docker build helper modules removal
ci/docker_utils/docker_build_utils.py, ci/docker_utils/generate_platformio_ini.py, ci/docker_utils/image_priority_tracker.py, ci/docker_utils/prune_old_images.py, ci/build_docker_image_pio.py
Deletes PlatformIO dependency installation helpers, platformio.ini generation, Docker image naming/caching, and image lifecycle management modules.
Docker build artifacts removal
ci/docker_utils/Dockerfile.base, ci/docker_utils/Dockerfile.template, ci/docker_utils/build.sh
Removes base-image definition, platform-template build definition, and orchestration shell script.
Docker daemon helpers and utility refactoring
ci/util/docker_helper.py, ci/docker_utils/build_image.py, ci/docker_utils/build_platforms.py, ci/docker_utils/DockerManager.py
Refactors docker_helper.py to focus on Docker daemon lifecycle (installation detection, starting Docker Desktop/daemon) and removes get_docker_image_name(), is_docker_image_available(), should_use_docker_for_board() functions; narrows build_image.py and build_platforms.py to QEMU emulator use only; adds module docstring to DockerManager.py.
Documentation and badge updates
README.md, ci/docker_utils/README.md, docker/README.md, ci/docker_utils/DOCKER_DESIGN.md, ci/docker_utils/task.md
Removes "Docker Compiler Builds" section from README and replaces badge; rewrites ci/docker_utils/README.md to document emulator helpers and lists removed components; adds "Emulators" section to docker/README.md with note that fbuild is now the default; removes design documentation files.
GitHub Actions workflow file removal
.github/workflows/docker_compiler_*.yml, .github/workflows/docker_build_compiler.yml, .github/workflows/docker_compiler.yml, .github/workflows/docker_merge_platform.yml
Deletes 15 workflow files that previously handled scheduled/manual Docker image builds, artifact management, manifest merging, and CI orchestration for the niteris/fastled-compiler-* image family.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Possibly related PRs

  • FastLED/FastLED#2813: Phase 1 of the same decommission—disables cron schedules on the same Docker compiler workflows while keeping the files intact; this PR (Phase 2–5) fully removes them.
  • FastLED/FastLED#2395: Related change to move fbuild as the sole default backend; overlaps with this PR's removal of Docker-compilation control flow in ci/ci-compile.py and argument_parser.py.
  • FastLED/FastLED#2296: Switches AVR8JS/QEMU GitHub workflows from Docker execution to fbuild test-emu; aligns with this PR's decommissioning of Docker-based compilation orchestration.

Poem

🐰 Farewell to Compiler Containers

Workflows disbanded, Docker sent away,
fbuild stands alone to save the day.
No more poisoned caches, no more siege—
Swift native builds bring us relief. 🎉

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: atomic decommissioning of Docker compilation workflows, modules, and documentation across Phases 2–5.
Linked Issues check ✅ Passed All Phase 2–5 objectives from #2812 are met: flags removed [#2], modules deleted [#3], workflows removed [#4], and docs updated [#5].
Out of Scope Changes check ✅ Passed All changes align with Phase 2–5 scope; emulator workflows and test/profile Docker runners intentionally preserved per #2812 out-of-scope directives.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/decommission-docker-compiler-code

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Jun 5, 2026
@zackees
zackees merged commit c89379e into master Jun 5, 2026
6 of 7 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jun 5, 2026
@zackees
zackees deleted the chore/decommission-docker-compiler-code branch August 21, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

decommission: retire niteris/fastled-compiler-* Docker images (PIO stop-gap no longer needed, fbuild is default)

1 participant