eth-cscs / stackinator

https://eth-cscs.github.io/stackinator/
BSD 3-Clause "New" or "Revised" License
19 stars 15 forks source link

Add an option to recipe to blacklist packages from buildcache #167

Closed simonpintarelli closed 8 months ago

simonpintarelli commented 9 months ago

When building packages from a git branch, for example sirius@git.my-branch=develop, the package will be fetched from buildcache even if the branch has been updated in the meantime.

Is it possible to add an option to config.yaml or environments.yaml to exclude packages from the buildcache?

bcumming commented 8 months ago

In cases like this, ideally you want to never push @branch builds to the build cache in the first place. So should the option be applied here: https://github.com/eth-cscs/stackinator/blob/master/stackinator/templates/Makefile.environments#L20-L24

We already try to exclude cuda and nvhpc from the build cache, because

However, this feature broke at some point - I could add support for optionally excluding packages by name when I fix the this?

simonpintarelli commented 8 months ago

Thank you. It's not an important feature, but nice to have. I'll have a look too, perhaps its possible to exclude packages installed via pkg@git.<branch>=..., excluding package by name via an additional entry would be the 2nd best option.