Skip to content
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 19 commits into from
Sep 13, 2024
Merged

Conversation

CodeGat
Copy link
Contributor

@CodeGat CodeGat commented Jul 29, 2024

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 given releases/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 the Prerelease spack has a different hash to the Release spack.
This then evolved into workflow that, based on modifications to said config/settings.json, would update the versions of spack 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:

  • Created a config/settings.json (and settings.schema.json) file that has the git commit of access-nri/spack that is used for all release/VERSIONs. See b5424bf
  • Added a .github/CODEOWNERS file that requires a member of Model Release to sign off on modifications to config/settings.json. See a888e5f
  • Added a .github/actions/validate-deployment-settings action that verifies the correctness of various config/settings.json fields, and added this action to both ci.yml and cd.yml. See d10f21f
  • Minor job restructuring. See 287fa28
  • Added a new workflow settings-*.yml that fires on modification of config/settings.json, that updates the versions of spack used on the deployment target (like Gadi). See de74681

Testing

Closes #98

@CodeGat CodeGat self-assigned this Jul 29, 2024
@CodeGat CodeGat force-pushed the 98-spack-version-provenance branch from 79c653d to de74681 Compare July 31, 2024 01:22
@CodeGat CodeGat marked this pull request as ready for review July 31, 2024 01:24
@CodeGat CodeGat marked this pull request as draft July 31, 2024 05:41
@CodeGat CodeGat marked this pull request as ready for review August 8, 2024 04:23
@CodeGat CodeGat force-pushed the 98-spack-version-provenance branch from 855c8de to 67342ea Compare August 28, 2024 00:16
@CodeGat CodeGat force-pushed the 98-spack-version-provenance branch from 62c4c15 to a34bb0b Compare August 29, 2024 04:45
Copy link
Member

@aidanheerdegen aidanheerdegen left a 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.

.github/CODEOWNERS Show resolved Hide resolved
config/settings.schema.json Outdated Show resolved Hide resolved
.github/actions/validate-deployment-settings/action.yml Outdated Show resolved Hide resolved
.github/workflows/settings-1-update.yml Show resolved Hide resolved
.github/workflows/settings-2-deploy.yml Show resolved Hide resolved
.github/workflows/settings-1-update.yml Show resolved Hide resolved
.github/workflows/settings-2-deploy.yml Show resolved Hide resolved
.github/workflows/settings-2-deploy.yml Show resolved Hide resolved
Copy link
Member

@aidanheerdegen aidanheerdegen left a 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.

@CodeGat CodeGat merged commit 118c4f5 into main Sep 13, 2024
2 checks passed
@CodeGat CodeGat deleted the 98-spack-version-provenance branch September 13, 2024 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support using tags when cloning a Spack repository
2 participants