Skip to content

Don't cache host tools failures

Summary

When building a project in BuildStream and a host tool is missing or failing (for example, bwrap wasn't installed before running), the error will get cached and subsequent runs (after installing bwrap) will fail in the same way.

This behavior is counter intuitive and has already bitten multiple developers.

Steps to reproduce

  1. uninstall bubblewrap
  2. bst build whatever.bst # this fails
  3. reinstall bubblewrap
  4. bst build whatever.bst # this fails... again

What is the current bug behavior?

Host tools failures are cached

What is the expected correct behavior?

Since they are dependent on the external environment, we shouldn't cache host tools failures.

Relevant logs and/or screenshots

Possible fixes

Other relevant information

I added a MR to reproduce the bug (!895 (merged)) and can fix the bug if the issue is accepted.

  • BuildStream version affected: /milestone %BuildStream_v1.x

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information