Skip to content

ci: zccache daemon fails builds with code=113 and no compiler diagnostic #4132

Closed

Description

@zackees

What happens

The test / build job fails with a compile step that produced no compiler output:

FAILED: [code=113] ci/meson/native/fastled.so.p/.._.._.._src_fl_build_third_party+.cpp.o

113 is zccache's exit code, not clang's. A real compile error prints a diagnostic and names a line; these print nothing. Reruns of the identical commit succeed.

Evidence that it is infrastructure

Across five occurrences on four PRs:

PR object that failed change under test
#4112 third_party+.cpp.o, then platforms+.cpp.o MP3 backend deletion
#4117 third_party+.cpp.o, then platforms+.cpp.o CPU audit Python + CI files
#4131 third_party+.cpp.o two Python files under ci/

Three independent signals:

  1. The failing object moves between runs of the same commit. A real compile error is deterministic; this is not.
  2. It fires on PRs that change no C++ at all. test(mp3): gate the CPU trend on simulated metrics, not timed ones (#4130) #4131 modifies ci/codec_cpu/audit.py and its test -- 141 insertions across two Python files -- and cannot affect a unity build of src/third_party/**.
  3. The runner is visibly unhealthy in the same job, every time:
    • zccache[info][Q]: daemon under load: queued, position 1 of 3 queued, 3 in flight
    • Skipping combined AST ratchet — error: Failed to spawn: 'clang-tool-chain-query'
    • Setup failed: [Errno 2] No such file or directory: '.cache/js-tools'

The pattern is a loaded or unhealthy zccache daemon returning 113 instead of compiling, with the surrounding toolchain also failing to spawn processes.

Why it matters beyond the lost minutes

Every occurrence costs a rerun, but the real cost is what it teaches. A failure that looks like a build break, on a PR that cannot have broken the build, trains reviewers to rerun red checks without reading them. That is exactly the habit that lets a genuine failure through -- and this repo has just had two real defects (#4127, #4130) that were only found because someone looked at a result rather than assuming it.

Suggested direction

I have not diagnosed the daemon itself; this is a report with evidence, not a fix.

  • Make 113 self-identifying. fbuild already does this well elsewhere: daemon did not become healthy after 3 spawn attempts (10s each). This is a daemon problem, not a defect in the code being built — no compilation was attempted. That message turns a five-minute investigation into a five-second one. zccache returning 113 with no output should say the same thing.
  • Retry once inside the build before failing the job, given the failure is transient by construction.
  • Investigate the correlation with clang-tool-chain-query failing to spawn in the same job. Both are process-spawn failures; a shared cause (fd exhaustion, memory pressure, PID limits on the runner) seems more likely than two independent flakes landing together every time.

Observed on ubuntu-24.04 runners, September 2026.

Activity

  1. zackees commented on Sep 1, 2026

    @zackees
    MemberAuthor

    Two more occurrences, both on PRs that change no C++ that could reach the failing objects.

    PR failing object(s) change under test
    #4131 third_party+.cpp.o two Python files under ci/
    #4128 fl.stl+.cpp.o and third_party+.cpp.o in the same run MP3 decoder + CI files

    That brings it to seven occurrences across five PRs, and the pattern holds in every one:

    • the failing object varies between runs of the same commit -- third_party+, platforms+, fl.stl+, sometimes two at once
    • no compiler diagnostic accompanies any of them
    • Failed to spawn: 'clang-tool-chain-query' appears in the same job every single time, alongside zccache daemon under load and the missing .cache/js-tools

    The #4131 case is the cleanest control available: 141 lines of Python in ci/, and a C++ unity build of src/third_party/** failed. There is no mechanism by which that change could do it.

    The consistent co-occurrence of three separate process-spawn failures in one job continues to point at a shared cause on the runner rather than three independent flakes.

  2. zackees commented on Sep 1, 2026

    @zackees
    MemberAuthor

    Occurrence #8, on PR #4134 (run 33556362240, 2026-09-01T20:40Z).

    Same signature as the rest: FAILED: [code=113] with no compiler diagnostic, two objects in the same run —

    FAILED: [code=113] ci/meson/native/fastled.so.p/.._.._.._src_fl_build_fl.stl+.cpp.o
    FAILED: [code=113] ci/meson/native/fastled.so.p/.._.._.._src_fl_build_third_party+.cpp.o
    ninja: build stopped: subcommand failed.
    

    Immediately preceded by zccache[info][Q]: daemon under load: queued, position 2 of 3 queued, 3 in flight, which is present in the earlier reports too and is the most consistent correlate so far — the failures cluster when the daemon reports a full queue.

    Also visible in the same job, and possibly unrelated: error: Failed to spawn: clang-tool-chain-query``, which causes the combined AST ratchet to be skipped rather than fail.

    Re-running the failed job.

  3. zackees commented on Sep 3, 2026

    @zackees
    MemberAuthor

    Another occurrence, matching the reported pattern exactly.

    PR #4123, job 100469403724, 2026-09-02. The change under test is documentation comments in a single header (src/fl/task/task.h) — no code, no ci/ files. Both objects from the table failed in the same run:

    FAILED: [code=113] ci/meson/native/fastled.so.p/.._.._.._src_fl_build_third_party+.cpp.o
    FAILED: [code=113] ci/meson/native/fastled.so.p/.._.._.._src_fl_build_platforms+.cpp.o
    

    No compiler diagnostic on either, and the load signal is present in the surrounding lines:

    zccache[info][Q]: daemon under load: queued, position 1 of 3 queued, 3 in flight
    zccache[info][Q]: daemon under load: compiling, position 0 of 3 queued, 3 in flight
    

    This is a stronger version of signal #2 in the report: #4131 at least touched ci/, whereas this PR changes only /// comment text inside a header. The unity build of src/third_party/** cannot be affected by it.

    Worth noting for anyone triaging red CI this week: there is currently a second, unrelated repo-wide failure that also produces red test / build-adjacent jobs — running-process 4.10.10 shipped cp311-cp311 wheels instead of cp310-abi3, so jobs on CPython 3.12 fall back to an sdist build that fails under soldr. #4141 pins around that. The two are easy to conflate; the 113 signature (no diagnostic, moves between objects) is the one that belongs to this issue.

  4. moved this from Triage to Done in FastLED Trackeron Sep 5, 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