Support spack.repos section in manifests - #317
Merged
Merged
Conversation
CodeGat
force-pushed
the
312-repos-section
branch
3 times, most recently
from
August 26, 2026 01:40
64e7987 to
a7ec54e
Compare
CodeGat
force-pushed
the
312-repos-section
branch
from
August 26, 2026 01:46
a7ec54e to
6b33740
Compare
Member
Author
|
This works, but there is a pretty significant slowdown when we update the |
Member
Author
|
After chatting with @aidanheerdegen, I note that we can get around the long update times for the image by always having a |
CodeGat
marked this pull request as ready for review
August 26, 2026 03:50
Closed
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.
Closes #312
Related to ACCESS-NRI/build-cd#404
Important
This is a major-level change to the
build-ciinfrastructure, due to the removal of entrypoint workflow inputsinputs.*-spack-packages-ref. CRs will need to be updated to support this change if they specified those inputs.Background
Similar to the above issue, now that we are using
spack > 1.0, we can leverage Spack to handle cloning ofgit-based repositories, rather than having our own infra do it.Unlike
build-cd, which requiresaccess-spack-packagesto be defined (and hence aspack.repossection at all),build-ciis a bit more lax - if versions foraccess-spack-packagesorbuiltinare not specified, we will take whatever is defined inspack-config(currently the branchesapi-v2andaccess/v1.1respectively). However, due to the magic of included configuration (see up the stack), thespack.repossection will always be defined.If either are specified in the manifest, we will clone those repos under
$env/package-repos(similar tobuild-cd) and they will be used instead.The PR
Updates required for CRs
inputs.*-spack-packages-refwas specified, one needs to add aspack.repossection similar to https://github.com/ACCESS-NRI/ACCESS-OM2/blob/d512fdfec7e95819ffbac66f6d7e653eebcc2c51/spack.yaml#L72-L76, depending on the repository.Testing
Note
This testing is no longer relevant after f212a89, but it does show that it indeed clones the correct repos.
All were tested in ACCESS-NRI/MOM6#74, with each of the below cases being a particular manifest in ACCESS-NRI/MOM6@5d7f56c
MOM6, No
spack.reposSection (oneapi_access-om3_asymm.spack.yaml.j2)Success, updated the
access-spack-packagesandbuiltin- see https://github.com/ACCESS-NRI/MOM6/actions/runs/32921190984/job/98035370629?pr=74#step:20:1 and how the next two steps ran as expected.MOM6,
spack.reposSection Specifyingaccesss-spack-packages(oneapi_access-om3_symm.spack.yaml.j2)Success, cloned the
access-spack-packagesrepo and updated thebuiltin- see https://github.com/ACCESS-NRI/MOM6/actions/runs/32921190984/job/98035370566?pr=74#step:20:1.MOM6,
spack.reposSection Specifyingbuiltin(oneapi_mom6_access3.spack.yaml.j2)Success, cloned the
builtinrepo and updated theaccess-spack-packages- see https://github.com/ACCESS-NRI/MOM6/actions/runs/32921190984/job/98035370547?pr=74#step:20:1.MOM6,
spack.reposSection Specifyingaccess-spack-packages,builtin(oneapi_mom6_solo.spack.yaml.j2)Success, cloned both. See https://github.com/ACCESS-NRI/MOM6/actions/runs/32921190984/job/98035370557?pr=74#step:20:1, and how neither of the steps ran, as expected