Skip to content

Ensure environment is active before concretizing - #662

Merged
sebrowne merged 5 commits into
sandialabs:mainfrom
sebrowne:main
Jul 27, 2026
Merged

Ensure environment is active before concretizing#662
sebrowne merged 5 commits into
sandialabs:mainfrom
sebrowne:main

Conversation

@sebrowne

@sebrowne sebrowne commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Whether or not it needs to be is still somewhat unclear to me, but the behavior when not active was definitely missing pieces of the configuration. Activating it via context manager prior to concretizing seems perfectly fine and fixes the issues I'm seeing.

Also added compatibility fixes for current Spack develop version.

@sebrowne
sebrowne requested a review from jnhealy2 July 23, 2026 17:12
@sebrowne
sebrowne force-pushed the main branch 2 times, most recently from e054e58 to 53f373a Compare July 23, 2026 17:23
Whether or not it needs to be is still somewhat unclear to me, but the
behavior when not active was definitely missing pieces of the
configuration.  Activating it via context manager prior to concretizing
seems perfectly fine and fixes the issues I'm seeing.

Signed-off-by: Samuel E. Browne <sebrown@sandia.gov>
@sebrowne
sebrowne force-pushed the main branch 2 times, most recently from dc790dd to 7e6b20e Compare July 23, 2026 20:19
Signed-off-by: Samuel E. Browne <sebrown@sandia.gov>
Works on old and new versions of Spack.

Signed-off-by: Samuel E. Browne <sebrown@sandia.gov>
@sebrowne
sebrowne force-pushed the main branch 2 times, most recently from 6d49c2f to bcecb35 Compare July 27, 2026 12:55
sebrowne added 2 commits July 27, 2026 12:05
Spack added a concretization cache plugin for pytest with
spack/spack#52717, which requires all extensions
to load as well (extensions don't get the root-level spack conftest.py).

Signed-off-by: Samuel E. Browne <sebrown@sandia.gov>
Concretization settings matter in the generated environment, and were
recently changed to have the environment be active prior to setting
them.  So assert on them in the relevant environment as well.

Signed-off-by: Samuel E. Browne <sebrown@sandia.gov>
@sebrowne
sebrowne merged commit cbceeb9 into sandialabs:main Jul 27, 2026
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants