Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dune cache trim --since <time interval> for CI workflows #10992

Open
nojb opened this issue Oct 4, 2024 · 2 comments
Open

dune cache trim --since <time interval> for CI workflows #10992

nojb opened this issue Oct 4, 2024 · 2 comments
Labels
feature-request shared-cache Shared artefacts cache

Comments

@nojb
Copy link
Collaborator

nojb commented Oct 4, 2024

For integration in CI workflows, it would be useful to have a flag telling dune cache trim to perform the trimming, but only if sufficient time has passed since the last trim: eg dune cache trim --since 1week. One can then execute this command as often as one would like, knowing that the trim will never happen more frequently than every week.

@ElectreAAS ElectreAAS added shared-cache Shared artefacts cache feature-request labels Oct 16, 2024
@Alizter
Copy link
Collaborator

Alizter commented Oct 19, 2024

How would you record when the last trim happened? You can't do this in the _build directory since there are potentially multiple. You can't do this in the config, because dune might not be running with the correct permissions to edit to config. The cache folder could potentially be a place for a last trim timestamp.

@nojb
Copy link
Collaborator Author

nojb commented Oct 19, 2024

The cache folder could potentially be a place for a last trim timestamp.

Indeed, this is the natural place for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request shared-cache Shared artefacts cache
Projects
None yet
Development

No branches or pull requests

3 participants