-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creation of a Common Version Provenance File #111
Merged
Merged
Conversation
This file contains 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
79c653d
to
de74681
Compare
855c8de
to
67342ea
Compare
… to include spack hashes
…ployment-settings action code
…in release are in prerelease, updated hash equality check to exclude majors that are not in both pre/release
62c4c15
to
a34bb0b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work. I have mostly questions.
…ired and no default, updated usages in repo
aidanheerdegen
approved these changes
Sep 13, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just some follow up questions.
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.
Background
This is a big one, which all stemmed from the want to be able to control more finely the version of
spack
that was used for a givenreleases/VERSION
branch.This evolved into a
config/settings.json
file that is the source of truth for versions of repositories that we do not want people to modify freely on a model repository basis.This then allowed various checks on the versions of
spack
installed (for example, warning the user that thePrerelease
spack
has a different hash to theRelease
spack
.This then evolved into workflow that, based on modifications to said
config/settings.json
, would update the versions ofspack
on the deployment target, so we don't have to get our hands dirty.Thanks to @harshula for the conversations that led to this.
Outline
In this PR:
config/settings.json
(andsettings.schema.json
) file that has the git commit ofaccess-nri/spack
that is used for allrelease/VERSION
s. See b5424bf.github/CODEOWNERS
file that requires a member of Model Release to sign off on modifications toconfig/settings.json
. See a888e5f.github/actions/validate-deployment-settings
action that verifies the correctness of variousconfig/settings.json
fields, and added this action to bothci.yml
andcd.yml
. See d10f21fsettings-*.yml
that fires on modification ofconfig/settings.json
, that updates the versions ofspack
used on the deployment target (like Gadi). See de74681Testing
jq
was tested locally on the same file for validityCloses #98