Skip to content

chore(ci): disable scheduled niteris/fastled-compiler-* image rebuilds (#2812 Phase 1) - #2813

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

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

Conversation

@zackees

@zackees zackees commented Jun 5, 2026 •

Copy link
Copy Markdown
Member

Summary

Phase 1 of the compilation-Docker decommission tracked in #2812. Disables the 10 cron-driven `docker_compiler_.yml` workflows that rebuild the `niteris/fastled-compiler-` Docker image family. `workflow_dispatch` is retained on each, so admin can still rebuild on demand during the multi-week transition window.

Why

The `niteris/fastled-compiler-*` images were 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/ci-compile.py` for some time (`--backend fbuild` default per `ci/compiler/argument_parser.py:288`). The Docker wrapper no longer earns its CI cost.

What this PR changes

Comments out the `schedule:` block in 10 workflows, leaving `workflow_dispatch` intact:

File Was firing Notes
`docker_compiler.yml` daily 23:00 UTC base image `niteris/fastled-compiler-base`
`docker_compiler_smart_build.yml` daily 00:00 UTC priority-driven incremental, 5 platforms/run
`docker_compiler_template.yml` monthly 1st @ 03:00 UTC full platform fan-out
`docker_compiler_avr.yml` weekly Monday per-platform standalone
`docker_compiler_esp.yml` weekly Tuesday per-platform standalone
`docker_compiler_stm32.yml` weekly Wednesday per-platform standalone
`docker_compiler_nrf52.yml` weekly Thursday per-platform standalone
`docker_compiler_teensy.yml` weekly Friday per-platform standalone
`docker_compiler_rp.yml` weekly Saturday per-platform standalone
`docker_compiler_sam.yml` weekly Sunday per-platform standalone

Each disabled `schedule:` is preserved verbatim in a comment block right above where it was, with a reference to #2812, so revert is one commented-out block flip per file.

What this PR does not do

Side effect to expect

After merge, the README badges in the "Docker Compiler Builds" section will display "no status" (gray) instead of green or red. This is intentional and signals to readers that the rebuild schedule has stopped, in line with the decommission tracked in #2812.

Test plan

Pure CI configuration change — no code touched, no local testing applies. Verification is qualitative:

  • The YAML files still parse: `bash lint` clean (the project's YAML linter is part of `bash lint`).
  • No workflow now has an active `schedule:` block: `grep '^ schedule:' .github/workflows/docker_compiler*.yml` returns nothing.
  • `workflow_dispatch:` still present in all 10 files: 10/10 by grep count.

Mandatory code-review trigger

Per global CI rules: modifying CI/CD pipelines is a code-review trigger. Flagging explicitly.

Sequence

  • This PR (Phase 1): schedules off. Reversible in one revert.
  • Follow-up PR (Phases 2-5): delete `--docker` flag, delete Python orchestration, delete the 12 `docker_compiler_.yml` workflows, clean up READMEs / docs. Bundled because half-and-half states (e.g. flag removed but workflows still reference `niteris/fastled-compiler-`) would be intermediate-broken.
  • Phase 6 (manual, weeks later): deprecate / delete Docker Hub images.

Refs #2812.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Disabled automated scheduled builds for Docker compiler images across multiple platforms. Manual build triggering remains available upon request.

#2812 Phase 1)

The niteris/fastled-compiler-* Docker image family was a stop-gap against
PlatformIO's self-poisoning behavior. fbuild does not self-poison and is
already the default backend in ci-compile.py. The image rebuilds no
longer earn their CI cost.

Phase 1 of #2812: stop the scheduled rebuilds across all 10 cron-driven
workflows. `workflow_dispatch` is retained on each so the admin can
still rebuild on demand during the multi-week transition window while
`bash test --docker` / `bash profile --docker` users (out of scope for
this PR; see #2812) migrate off the images. Original cron expressions
are preserved in comments next to each disabled block for trivial
revert.

Files touched (10):
  docker_compiler.yml               - base image, was daily 23:00 UTC
  docker_compiler_smart_build.yml   - smart incremental, was daily 00:00 UTC
  docker_compiler_template.yml      - full platform, was monthly 1st 03:00 UTC
  docker_compiler_avr.yml           - was weekly Monday
  docker_compiler_esp.yml           - was weekly Tuesday
  docker_compiler_stm32.yml         - was weekly Wednesday
  docker_compiler_nrf52.yml         - was weekly Thursday
  docker_compiler_teensy.yml        - was weekly Friday
  docker_compiler_rp.yml            - was weekly Saturday
  docker_compiler_sam.yml           - was weekly Sunday

Side effects:
  * README's "Docker Compiler Builds" badges will go gray (no recent
    runs) rather than red. README prose cleanup is deferred to Phase 5
    in #2812's follow-up PR.
  * Existing Docker Hub images keep working — this PR only stops their
    *rebuild*, not their availability.
  * `bash test --docker` / `bash profile --docker` continue to function
    against the now-static images; full retirement of those flags is
    tracked separately in #2812.

CI/CD pipeline change → mandatory code-review trigger per global rules;
flagging explicitly.

Refs #2812 (Phase 2-5 follow up in a separate PR)

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

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: b421c6ad-2563-448d-adfa-e215806a055e

📥 Commits

Reviewing files that changed from the base of the PR and between e5437ef and 588ed32.

📒 Files selected for processing (10)
  • .github/workflows/docker_compiler.yml
  • .github/workflows/docker_compiler_avr.yml
  • .github/workflows/docker_compiler_esp.yml
  • .github/workflows/docker_compiler_nrf52.yml
  • .github/workflows/docker_compiler_rp.yml
  • .github/workflows/docker_compiler_sam.yml
  • .github/workflows/docker_compiler_smart_build.yml
  • .github/workflows/docker_compiler_stm32.yml
  • .github/workflows/docker_compiler_teensy.yml
  • .github/workflows/docker_compiler_template.yml

📝 Walkthrough

Walkthrough

Ten Docker compiler workflow files disable automated cron-based image rebuilds. Scheduled triggers are replaced with commented-out configuration and explanatory notes while workflow_dispatch remains available for manual triggering.

Changes

Disable Automated Docker Image Rebuilds

Layer / File(s) Summary
Disable cron schedules in Docker compiler workflows
\.github/workflows/docker_compiler.yml, \.github/workflows/docker_compiler_avr.yml, \.github/workflows/docker_compiler_esp.yml, \.github/workflows/docker_compiler_nrf52.yml, \.github/workflows/docker_compiler_rp.yml, \.github/workflows/docker_compiler_sam.yml, \.github/workflows/docker_compiler_smart_build.yml, \.github/workflows/docker_compiler_stm32.yml, \.github/workflows/docker_compiler_teensy.yml, \.github/workflows/docker_compiler_template.yml
Cron-based automated triggers are removed and replaced with commented-out schedule configurations across all Docker compiler workflow files (base, AVR, ESP, NRF52, RP, SAM, smart-build, STM32, Teensy, and template), while preserving workflow_dispatch for manual rebuilds.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 Schedules rest, the cron clocks wind down,
Docker builds no longer bound by the clock's renown,
Manual dispatches bloom in their place,
While decommissioned images fade with grace!

🚥 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 clearly and concisely summarizes the main change: disabling scheduled Docker image rebuilds across multiple workflows, with specific reference to the issue phase.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/decommission-docker-compiler-schedules

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.

@zackees
zackees merged commit 0ddcd74 into master Jun 5, 2026
4 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jun 5, 2026
pull Bot pushed a commit to manmuqingshan/FastLED that referenced this pull request Jun 5, 2026
…hases 2-5)

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 FastLED#2812 as
one atomic change. PR A (FastLED#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 FastLED#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 FastLED#2812

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@zackees
zackees deleted the chore/decommission-docker-compiler-schedules 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.

1 participant