Skip to content

docs(cache-maintenance): enhance documentation - #189

Open
AlexanderLanin wants to merge 1 commit into
mainfrom
cache-fix
Open

docs(cache-maintenance): enhance documentation#189
AlexanderLanin wants to merge 1 commit into
mainfrom
cache-fix

Conversation

@AlexanderLanin

Copy link
Copy Markdown
Member

This describes both ways which we currently have, how this workflow can be used.

@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 guess documentation / behavior is not what is actually happening

Omitting rarely used configurations keeps the repository cache smaller and
faster to restore. In automatic mode, independently running Bazel jobs may each
download the delta needed for their targets. In ordered mode, maintenance
fetches all variants once before the build warmups start.

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.

IMHO automatic mode also skips repository cache downloads, when the MODULE.bazel.lock has changed. This is not a delta, but instead a full download.

I guess we need to be able to skip restoration of each cache individually.

The job which rebuilds the repository cache must skip the repository cache. All other jobs must skip the disk cache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants