Skip to content

Feature: Retry build locally after remote failure #2745

Open

Description

@ahartmetz

A remote build may fail for several reasons, the most common ones being:

  • Missing support for a compiler / build system feature in sccache, for example a required file isn't included in the file set sent to the remote builder
  • A flaky remote builder, for hardware or other (usually) spurious reasons

In such situations, it would be very nice to retry jobs locally in order to avoid blocking the development work that sccache is supposed to accelerate. It is mandatory that the user can see that and why (as far as possible) a build was rerun locally. Optionally, the information could be included in the statistics that sccache gathers.

A tricky aspect is that using sccache has the nice side effect of limiting the total number of parallel jobs running on a machine, including the machine initiating a build. It would be nice to retain that somewhat accidental feature, probably by still allocating jobs through the server.

Activity

  1. AJIOB commented on Jun 24, 2026

    @AJIOB
    Contributor

    This issue looks like a possible solution for #2700

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

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions