Skip to content

broken builds: 12 README-listed CI workflows failing on master (AVR watchdog regression + 4 unrelated) #2779

Description

@zackees

Summary

The build badges currently shown in README.md indicate 12 workflows whose most recent completed run on master ended in failure as of 2026-06-05.

This issue collects them into one place so they can be triaged and fixed. Local verification with bash compile <board> (the project-standard reproducer per CLAUDE.md) confirms the AVR family failures share a single root cause — see "Confirmed root cause" below.

Broken workflows (from README badges)

All twelve workflows below are linked from README.md. Each link points to the most recent failed run on master.

Arduino / AVR family

Workflow README section Latest failing run
uno AVR8JS Test Emulation Tests https://github.com/FastLED/FastLED/actions/runs/27000253840
atmega8a Arduino Family → Core Boards https://github.com/FastLED/FastLED/actions/runs/27002324285
nano_every Arduino Family → Core Boards https://github.com/FastLED/FastLED/actions/runs/27002324484
attiny1604 Arduino Family → ATtiny Series https://github.com/FastLED/FastLED/actions/runs/27002324359
attiny1616 Arduino Family → ATtiny Series https://github.com/FastLED/FastLED/actions/runs/27002324370

Apollo3 / RP2040 / STM32

Workflow README section Latest failing run
apollo3_red Apollo3 (Ambiq) https://github.com/FastLED/FastLED/actions/runs/27000950616
apollo3_thing_explorable Apollo3 (Ambiq) https://github.com/FastLED/FastLED/actions/runs/27000950639
rp2040 Raspberry Pi Pico https://github.com/FastLED/FastLED/actions/runs/27002324437
stm32h747xi_giga STM32 (STMicroelectronics) https://github.com/FastLED/FastLED/actions/runs/27002324378

Aggregate / size checks

Workflow README section Latest failing run
build (top-level CI) Header badge row https://github.com/FastLED/FastLED/actions/runs/27000950685
esp32dev_binary_size (check_esp32_size.yml) Library Size Validation https://github.com/FastLED/FastLED/actions/runs/27002324411
check_teensy41_size Library Size Validation https://github.com/FastLED/FastLED/actions/runs/27002324432

Confirmed root cause — AVR family (atmega8a, nano_every, attiny1604, attiny1616)

Locally reproduced with bash compile atmega8a and bash compile nano_every. Both fail at the same set of references in src/platforms/avr/watchdog_avr.impl.hpp:

bash compile atmega8a (excerpt):

src/platforms/avr/watchdog_avr.impl.hpp:80:28: error: 'WDTO_4S' was not declared in this scope
     if (ms <= 4000) return WDTO_4S;
src/platforms/avr/watchdog_avr.impl.hpp:81:12: error: 'WDTO_8S' was not declared in this scope
     return WDTO_8S;
src/platforms/avr/watchdog_avr.impl.hpp:96:25: error: 'MCUSR' was not declared in this scope
     sAvrCapturedMcusr = MCUSR;

bash compile nano_every (excerpt):

src/platforms/avr/watchdog_avr.impl.hpp:61:23: error: 'EXTRF' was not declared in this scope
     if (mcusr & (1 << EXTRF)) return ResetCause::EXTERNAL_PIN;
src/platforms/avr/watchdog_avr.impl.hpp:62:23: error: 'PORF' was not declared in this scope
     if (mcusr & (1 << PORF))  return ResetCause::POWER_ON;
src/platforms/avr/watchdog_avr.impl.hpp:80:28: error: 'WDTO_4S' was not declared in this scope
src/platforms/avr/watchdog_avr.impl.hpp:81:12: error: 'WDTO_8S' was not declared in this scope
src/platforms/avr/watchdog_avr.impl.hpp:96:25: error: 'MCUSR' was not declared in this scope

What's broken

src/platforms/avr/watchdog_avr.impl.hpp unconditionally references symbols that do not exist on all AVR variants:

  • WDTO_4S / WDTO_8S — present on ATmega328P, 2560, etc., but not on ATmega8 (which tops out at WDTO_2S) and not on the modern megaAVR-0 / tinyAVR-1 series (ATmega4809 a.k.a. nano_every, ATtiny1604/1616 — these use the RTC peripheral and don't share the classic WDTO_* constants).
  • MCUSR / EXTRF / PORF — the classic-AVR reset cause register. Modern megaAVR-0 / tinyAVR-1 chips expose reset cause via RSTCTRL.RSTFR instead, so the legacy names are not declared.

Likely fix

The file needs platform gating around the unsupported symbols, similar to other per-family <avr/io.h> guards. Options:

  • Gate the WDTO ceiling per device: #if defined(WDTO_8S) … #elif defined(WDTO_4S) … etc., and lower FL_WATCHDOG_MAX_TIMEOUT_MS accordingly.
  • For megaAVR-0 / tinyAVR-1 (test e.g. __AVR_XMEGA__ or RSTCTRL_RSTFR_* macro presence): provide a separate code path using RSTCTRL and WDT.CTRLA rather than MCUSR / wdt_* macros from <avr/wdt.h>.
  • Fall back to the watchdog stub (no hardware) for the smallest ATtinys where this isn't worth supporting.

Regression source

Introduced by commit ca09808b5f — "feat(watchdog): real per-platform hardware impls for ALL platforms (#2731 Phase 2) (#2745)". The AVR implementation assumed classic-AVR <avr/io.h> symbols are universal; they aren't.

Other failures — likely independent

The following four failures are on different toolchains and are not (yet) traced to the watchdog regression. They need their own diagnosis from their latest run logs:

  • apollo3_red, apollo3_thing_explorable — Apollo3 / SparkFun Arduino_Apollo3 v2.2.0. Last seen failing 2026-06-05T07:10Z.
  • rp2040 — Raspberry Pi Pico, last seen failing in the same push as the AVR breakage (2026-06-05T07:43Z). Could be unrelated or could be the watchdog change leaking into platforms/rp/.
  • stm32h747xi_giga (build_giga_r1.yml) — Arduino GIGA R1.

Local bash compile runs for these four are in progress at the time of filing; results will be added as a comment.

Aggregate / size check failures

  • build — the top-level workflow runs the example matrix and is expected to fail while any per-board workflow above is red. Closing the underlying board failures should clear it.
  • esp32dev_binary_size / check_teensy41_size — these run example compiles and assert size budgets, so they can fail either from a true size regression or from a transitive compile failure. Their latest run logs will tell which.

Verification methodology

Per CLAUDE.md, builds were verified with the project-standard wrapper:

bash compile atmega8a
bash compile nano_every
bash compile ATtiny1604
bash compile ATtiny1616
bash compile apollo3_red
bash compile apollo3_thing_explorable
bash compile rp2040
bash compile stm32h747xi

(NOT bash test — that runs the unit-test layer, which is green here. The breakage is in the per-board firmware compile step.)

Acceptance criteria

  • All 12 workflows above pass on master.
  • src/platforms/avr/watchdog_avr.impl.hpp builds for every board listed in bash compile --supported-boards that is in the AVR family (atmega8a, nano_every, atmega328-class, ATtiny1604/1616/4313/85/88).
  • Apollo3, RP2040, and STM32 Giga failures have a confirmed root cause + fix or a documented expected-failure carve-out.
  • README badges go green.

Filed automatically from README.md build badges; verification compiles run via bash compile <board>.

Activity

  1. zackees commented on Jun 5, 2026

    @zackees
    MemberAuthor

    README sweep status update (auto, post /loop iteration)

    Workflow Status Tracking
    AVR (atmega8a, nano_every, attiny1604/1616) ✅ merged #2780
    STM32 GIGA ✅ merged #2785
    Apollo3 (red + thing_explorable) ✅ merged #2788
    RP2040 🟡 PR open #2793
    esp32dev_binary_size 🟡 PR open #2790 (budget bump per #2608)
    check_teensy41_size ❌ blocked on architectural fix #2656 (Apa102 pulls in async/HTTP/task — explicitly NOT a budget bump)
    uno AVR8JS Test ❌ needs investigation see below
    build (top-level CI) ⏳ cascade — will go green when individual board failures clear —

    uno AVR8JS Test — investigation finding

    Downloaded the failure artifact from run 27005282879. The compile is fine (firmware.hex = 6.31 KB, generated cleanly). The Docker run for niteris/fastled-avr8js:latest exits 1 with the captured emulator output being completely empty — no "Test setup starting" either. The sketch (examples/Test/Test.ino) does Serial.begin(115200); Serial.println("Test setup starting"); as the first line of setup() — that string never appearing means either:

    1. The AVR firmware crashes/resets before reaching Serial.begin() (atmega328p watchdog? infinite reset loop?), OR
    2. The avr8js Node.js wrapper's runner.usart.onByteTransmit hook (in ci/docker_utils/avr8js/main.ts:66) isn't firing under the current container build (possibly a Node 20→24 deprecation interaction — the log shows the Node.js 20 deprecation warning).

    Reproducing locally requires the Docker setup at ci/docker_utils/Dockerfile.avr8js. Out of scope for this /loop iteration — needs an interactive debugging session with the emulator under --verbose to see whether PORTB writes are firing (would confirm CPU is running even if USART output is broken).

  2. added
    status: in-progress
    on Aug 20, 2026
  3. moved this from Triage to Done in FastLED Trackeron Aug 20, 2026
  4. zackees commented on Aug 20, 2026

    @zackees
    MemberAuthor

    Reopening after the merged DEFAULT-macro fix: authoritative master run 32398869196 now reaches the full atmega8a matrix but still fails because examples/AnalogOutput overflows the ATmega8A's 8 KiB flash by 12,156 bytes. Continuing the issue until the tracked workflow is green.

  5. moved this from Done to Triage in FastLED Trackeron Aug 20, 2026
  6. added a commit that references this issue on Aug 20, 2026
    ad40fd2
  7. moved this from Triage to Done in FastLED Trackeron Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: in-progress

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions