CI build fails to connect to cache and decides to build everything
Summary
If the connection to the cache server in the beginning fail, then BuildStream warns and never tries to download anything from cache.
The issue is that for a CI build, it is a big loss of time to rebuild everything. The build is useless and will not push any artifact to the cache. It would be better to have a failed build.
Steps to reproduce
- Disable cache server.
- Launch a
bst build
. - Re-enable cache server.
What is the current bug behavior?
Nothing is pulled from cache server. But builds continue anyway.
What is the expected correct behavior?
Either it should retry to pull after first element built. Or it should fail completely.
Relevant logs and/or screenshots
https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/jobs/184722540
Possible fixes
Other relevant information
- BuildStream version affected: /milestone %BuildStream_v1.x