summaryrefslogtreecommitdiff
path: root/.github/actions/add-maintainers-as-reviewers/Dockerfile
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2020-05-07 02:30:09 -0700
committerGitHub <noreply@github.com>2020-05-07 02:30:09 -0700
commitb196e4396a8d2bb21cc50d26114d34cdacb3b727 (patch)
tree1489f47a453a34845acf8d574c56ca76beb6ef98 /.github/actions/add-maintainers-as-reviewers/Dockerfile
parent05dcfe829ed5d71764ee7bd2465edb620e4938d5 (diff)
downloadspack-b196e4396a8d2bb21cc50d26114d34cdacb3b727.tar.gz
spack-b196e4396a8d2bb21cc50d26114d34cdacb3b727.tar.bz2
spack-b196e4396a8d2bb21cc50d26114d34cdacb3b727.tar.xz
spack-b196e4396a8d2bb21cc50d26114d34cdacb3b727.zip
bugfix: spack shouldn't fail in an incomplete environment (#16473)
Fixed #15884. Spack asks every package linked into an environment to tell us how environment variables should be modified when a spack environment is activated. As part of this, specs in an environment are symlinked into the environment's view (see #13249), and the package calculates environment modifications with *the default view as the prefix*. All of this works nicely for pointing the user's environment at the view *if* every package is successfully linked. Unfortunately, right now we only track what specs "should" be in a view, not which specs actually are. So we end up calculating environment modifications on things that aren't linked into thee view, and the exception isn't caught, so lots of spack commands end up failing. This fixes the issue by ignoring and warning about specs where calculating environment modifications fails. So we can still keep using Spack even if the current environment is incomplete. We should probably also just avoid computing env modifications *entirely* for unlinked packages, but right now that is a slow operation (requires a lot of YAML parsing). We should revisit that when we have some better state management for views, but the fix adopted here will still be necessary, as we want spack commands to be resilient to other types of bugs in `setup_run_environment()` and friends. That code is in packages and we have to assume it could be buggy when we call it outside of builds (as it might fail more than just the build).
Diffstat (limited to '.github/actions/add-maintainers-as-reviewers/Dockerfile')
0 files changed, 0 insertions, 0 deletions