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

Add a basic buildcache pruning application #605

Closed

Conversation

scottwittenburg
Copy link
Collaborator

Similar to #415 but developed independently. Currently used to cross-check pruning lists generated by that PR.

@scottwittenburg
Copy link
Collaborator Author

fyi @kwryankrattiger

scottwittenburg and others added 2 commits September 13, 2023 13:43
By ensuring at least one space before "develop", we avoid associating
testing urls with some of the hashes in the mirror, which can cause
failure to prune those hashes from the actual mirrors.  Example of
bogus url in the bucket that triggered this issue:

    s3://spack-binaries/rheltest/develop/tutorial/build_cache/...
There was one issue in this script that would only check timestamps on
the pipeline but not the archive, which lead to race conditions when
pruning using a time stamp provided by the other pruning method.

Now the timestamp cutoff for "updated-before" is respected by both the
get_pipelines and generate_pruning_lists methods.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants