Skip to content

more fine-grained --cache-check-probability #13205

@Alizter

Description

@Alizter

In Dune we have --cache-check-probability which when provided gives a way of invalidating the cache a certain amount of time aiding with reproducibility. As code bases scale, it becomes more unwieldy to allow cache invalidation to happen anywhere.

For example, one might have a bunch of tests that flake. With the cache enabled, it becomes impossible to observe, however setting --cache-check-probability will likely cause slow rebuilds elsewhere, making it unsuitable for observing just those tests.

It would be nice if we were able to have a more fine-grained version of --cache-check-probability so that certain directories can have the probability applied. This would likely be a sensible addition to the (env) stanza.

This would be useful in dune for our flaky cram tests allow developers to see the issues more often locally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions