Skip to content

feat(cache-maintenance): always prune obsolete caches - #187

Merged
AlexanderLanin merged 1 commit into
mainfrom
cache-fix
Aug 10, 2026
Merged

feat(cache-maintenance): always prune obsolete caches#187
AlexanderLanin merged 1 commit into
mainfrom
cache-fix

Conversation

@AlexanderLanin

Copy link
Copy Markdown
Member

There is absolutely no harm in always pruning obsolete caches. We want to do that after every cache upload anyway. Adding this here will hopefully allow different applications of this workflow.

Incl small refactoring: simplify logic via DRY_RUN variable. This is a no-op change.

ans simplify logic via DRY_RUN variable

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates cache maintenance so obsolete cache generations are pruned after every cache-writing run.

Changes:

  • Centralizes read-only detection in DRY_RUN.
  • Separates conditional disk-cache deletion from unconditional obsolete-generation pruning.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@lurtz lurtz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to prune the caches, when I know new ones have been created to have a fast workflow. Even if pruning caches is a noop it will take some seconds.

@AlexanderLanin

Copy link
Copy Markdown
Member Author

yeah thats very true. generic usage means its not super optimized for one use case.

@AlexanderLanin
AlexanderLanin merged commit c2c7e6d into main Aug 10, 2026
5 checks passed
@AlexanderLanin
AlexanderLanin deleted the cache-fix branch August 10, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants