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

Initializing the remote caches as needed #1983

Open
abderrahim opened this issue Jan 16, 2025 · 0 comments
Open

Initializing the remote caches as needed #1983

abderrahim opened this issue Jan 16, 2025 · 0 comments

Comments

@abderrahim
Copy link
Contributor

Currently, remote caches are initialized pretty early in the buildstream start sequence. At least for checkout operations, this is often too early to know whether the caches are actually needed.

There are a few situations:

  • target directory is not empty: Loading elements -> Resolving elements -> Initializing remote caches -> target directory is not empty
    • this wastes time before reporting the error
  • artifacts are cached locally: Loading elements -> Resolving elements -> Initializing remote caches -> Query cache -> Staging dependencies -> Integrating sandbox -> Checking out files
    • We don't need remote caches here, so it also wastes time
  • artifacts aren't cached: Loading elements -> Resolving elements -> Initializing remote caches -> Query cache -> Attempting to fetch missing or incomplete artifact(s) ...
    • This is the case that needs initializing remote caches. However it makes more sense to do it after the "Attempting to fetch", not before.
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

No branches or pull requests

1 participant