Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Periodically clean up cached bundles directory #5976
base: master
Are you sure you want to change the base?
Periodically clean up cached bundles directory #5976
Changes from all commits
ecf2dc5
c563fd2
f8a7391
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This contradicts the logged info comment above, which should be improved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Up it says was removed for 0.0.0 here that that is left for 0.1.0?
Happy to simplify this, agree may be weird?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to loop twice, once over runtime IDs and then over manifests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically we only have few runtimeIDs and also manifests. I would argue is more readable now even though "inefficient"?
Maybe the store should have:*RegularManifests(runtimeID common.Namespace) []ExplodedManifest
instead ofManifests
* since these are already indexed inside registry.* Or we exposeGetVersions
from the registry instead ofManifests
* Note in these caseRemoveManifest
should acceptruntimeID
andversion
instead of a hash. A bit annoying since this is no longer generic with hash -> not able to remove detached albeit not used anywhere.What would you prefer?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer not to loop twice. Not because there is a performance issue, but because the code could be more readable and simpler.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree. Depending on the outcome of this thread it might not be possible though / would make it more complicated ?