Skip to content

setup action: fbuild cache restore-keys fallback crosses fbuild versions and doubles the saved cache #1843

Closed

Description

@zackees

In FastLED after the 2.5.47 -> 2.5.49 upgrade, two fbuild-v1-Linux-X64-<hash>-... cache entries (kitchensink, clone-and-compile) were saved at 3.49 GB each, over the consumer's declared 2304 MB per-entry max, pushing the repo over its Actions cache budget (CI board selection: live 10849324609B / budget 9663676416B).

Likely cause: the fbuild cache step's last restore key is fbuild-${{ cache-version }}-${{ runner.os }}-${{ runner.arch }}-, which matches entries from any fbuild hash. A new fbuild release restores the previous release's package/toolchain tree, fetches its own, and saves both under the new key, so every upgrade roughly doubles the entry until it is evicted.

Mitigation applied in FastLED: deleted the two bloated entries (total cache 0.77 GB after). Suggested fix: drop the cross-hash fallback key, or prune packages not referenced by the current fbuild before save.

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