Skip to content

fix(ci): restore unit tests on linux, macos, and windows #3126

Closed

Description

@zackees

Failure summary

All three unit-test workflows are currently red on master.

  • unit tests linux run 27588543885: fl_stl_json is the only failed unit test after 230/231 pass.
  • unit tests macos run 27588543938: same fl_stl_json failure after 230/231 pass.
  • unit tests windows run 27588543853: build fails before tests run when zccache loses its daemon connection while linking test DLLs.

Root cause

Linux/macOS

tests/fl/stl/json.cpp intentionally exercises integer overflow reads such as i64(1000).as<i8>(), i64(100000).as<i16>(), 128.as<i8>(), and -129.as<i8>(). src/fl/stl/json/types.h logs each expected overflow with FL_ERROR while still returning the truncated value.

The workflow runs with --log-failures failures, so these expected FL_ERROR lines make fl_stl_json fail even though the assertions are checking the truncation behavior.

The same helper also formats unsigned bounds incorrectly for large unsigned targets: converting numeric_limits<u64>::max() to i64 produces a reported range like 0 to -1.

Windows

The Windows unit-test job reaches the Meson/Ninja build, then fails during parallel test DLL links with zccache daemon IPC loss:

zccache[err][R]: lost connection to daemon (no response). The daemon may have crashed or been killed mid-request

The existing workflow-level zccache stop mitigation does not prevent the mid-build failure. zccache is currently injected into both compiler and linker Ninja rules (cpp_LINKER/c_LINKER), which exposes Windows hosted runners to the unstable link path under the ASan debug unit-test workload.

Acceptance criteria

  • Linux and macOS unit-test workflows no longer fail fl_stl_json due to expected overflow logging.
  • JSON integer conversion handles/report unsigned target ranges without signed wraparound.
  • Windows unit-test workflow reaches and passes the unit tests instead of failing during zccache-wrapped DLL links.
  • Keep zccache compile caching where practical; avoid globally disabling zccache unless no narrower mitigation works.

Activity

  1. zackees commented on Jun 16, 2026

    @zackees
    MemberAuthor

    Update from local Windows verification: skipping only zccache-wrapped linker rules fixed the originally observed DLL link command shape, but the full Windows debug unit run still failed later when zccache lost daemon IPC during a compile request ( l_remote_remote.cpp). The fix should disable Meson build-rule zccache wrapping entirely on Windows while preserving non-Windows zccache behavior.

  2. added a commit that references this issue on Jun 16, 2026
  3. moved this from Triage to Done in FastLED Trackeron Jun 16, 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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions