Repository navigation
Conversation
…2bb317e24dd59494f4d32
…eature/spack-submodule
climbfuji
commented
Dec 3, 2026
| f.write(packages_definition) | ||
|
|
||
| # Clear the spack config cache | ||
| spack.config.CONFIG.clear_caches() |
Collaborator
Author
There was a problem hiding this comment.
This is required because spack.config.CONFIG is a singleton with its own memory.
climbfuji
requested review from
AlexanderRichert-NOAA,
RatkoVasic-NOAA,
eap,
jim-p-w and
mathomp4
December 3, 2026 17:58
6 of 11 tasks
mathomp4
approved these changes
Dec 3, 2026
5 of 11 tasks
AlexanderRichert-NOAA
approved these changes
Dec 4, 2026
AlexanderRichert-NOAA
left a comment
Collaborator
There was a problem hiding this comment.
This is great!
Collaborator
Author
|
@AlexanderRichert-NOAA @mathomp4 I had to push a small bug fix for It's harmless and only affects the auto-generated MODULEPATH addition to find the modules for packages that depend on the (one and only) MPI provider. See b255701. |
…irectory tree needs 7-digit hash
climbfuji
force-pushed
the
feature/spack-submodule
branch
from
December 4, 2026 21:56
9d30701 to
b255701
Compare
mathomp4
approved these changes
Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use of generative AI
Please refer to our temporary spack-stack AI policy for further information.
Description
This PR replaces our spack branch
spack-stack-devin https://github.com/jcsda/spack with the authoritativedevelopbranch in the mothership repo https://github.com/spack/spack. The commit used here is spack/spack@ab3f3ac from about 3 weeks ago (for no other reason than me starting this work three weeks ago).Switching from our fork/branch to the authoritative code means that the following customizations are no longer in the spack code.
spack containerizethanks to @eap's work - containers are now ordinary site configurations that are deployed like any other site.<case-preserving-package-name>_ROOTin auto-generated Spack modulefiles. Spack by default uppercases the package name. We've advocated for a long time to preserve the case, because this is what CMake expects. The Spack developers didn't want to make this change. With the help of GPT-5.6 Sol Gov, I came up with an elegant solution that uses Jinja template modifications of the Spack module templates. I am crediting GPT for the solution, but I reviewed it and understand it, and it's great in my opinion.source setup.shstep.Additional changes were required because of upstream changes in the Spack engine:
spack.config.CONFIGis now a singleton with its own memory/cache that replacesspack.config.spack.llnl.utilis nowspack.util.py-setuptools-scmpackages forcylc-dev, this is resolved by pinning the package to earlier versions@:7forcylc-devonly (other environments all use@8.2.1without having to pin it).spack.cmd.require_active_envis required, but it doesn't seem to make any difference what the value is as long as the command exists.spack stack setup-meta-modules.I also updated and tested most of the utilities in
./util, as well as the NRL batch install script. For the latter, no changes were required - which means that likely no changes are required for the GMAO and EPIC batch install scripts.Dependencies
None.
We should freeze/lock the
spack-stack-devbranch in https://github.com/jcsda/spack after merging this PR and adding aREADME.mdto the branch to document the change.Issues addressed
Closes #2218
Applications affected
None - as long as the implementation is correct, nothing will change downstream.
Systems affected
None - as long as the implementation is correct, nothing will change downstream.
Testing
Checklist
All dependency PRs/issues have been resolved and this PR can be merged.