Skip to content

Should all caches, not just disk-cache, take custom keys? (or one universal key for all caches) #73

@calebzulawski

Description

@calebzulawski

If you have multiple jobs (or a matrix), I find that the bazelisk and repository caches conflict on their initial creation. In the case of bazelisk, each job attempts to write an identical bazelisk cache, one succeeds, and the others all report a warning. This also occurs for the repository caches, but I think these shouldn't even be shared. Different jobs might build different targets and end up fetching different dependencies.

One solution might be to add a cache-key option that all caches use (but allow disk-cache to still override this, for backwards compatibility). An alternative solution would be to try to hide that warning for bazelisk, and recommend using an initial bazel fetch job to populate the cache.

Some example warnings:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions