-
Notifications
You must be signed in to change notification settings - Fork 19
Add warning for spack-packages version compatibility #1064
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -54,6 +54,10 @@ For more information on the `spack.yaml` file, refer to [ACCESS-NRI's DevDocs]( | |||||||||||
|
|
||||||||||||
| The `config` directory contains a single `versions.json` file. This file allows customisation of both the version of [`access-nri/spack`](https://github.com/ACCESS-NRI/spack) used to deploy the model and the version of [`access-nri/spack-packages`](https://github.com/ACCESS-NRI/spack-packages) that will source the recipes for the _Spack_ packages. | ||||||||||||
|
|
||||||||||||
| !!! warning | ||||||||||||
| It is important that the version of [`access-nri/spack-packages`](https://github.com/ACCESS-NRI/spack-packages) is compatible with the environment. | ||||||||||||
| If there are concretization errors try checking this. | ||||||||||||
|
|
||||||||||||
|
Comment on lines
+57
to
+60
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Indentation problem.
Suggested change
What does "compatible" mean in this case? How would a user check that the spack-packages version is compatible with the spack environment? Instead of saying "... try checking this", could we quickly describe how a user would check for such compatibility?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I was deliberately vague because there is no easy answer to your question. They might need to use the most recent version because then they get all the most recent spack package changes. Or they might need to use an older version, because they need to remain consistent with the spack packages at an earlier time. There can be inter-dependency between the packages, where changes have to be made in sync so they are consistent. Perhaps this is the right time to ask @anton-seaice if he had any specific use-cases in mind.
I think the docs already cover where the spack packages version is set. Would it be sufficient to refer to that with a "see above" type direction? Other than that, to know what the "correct" version is depends on what they're trying to do. If it is to be consistent with a released version, then they should use what that environment did. If they're developing something new, then who knows? It would require some careful inspection of package recipes.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The main thing folks get stuck on is:
and then find it doesn't concretise/build, becuase spack-packages has had a breaking change since the model was last deployed Possibly if we are very careful with version dependencies going forward this won't continue to be a problem |
||||||||||||
| ## Trigger model prerelease and release build deployments | ||||||||||||
|
|
||||||||||||
| As mentioned above, prerelease build deployments are triggered by a push of one or more commits within a model deployment repository's open PR. When the PR is merged, a release build deployment is created.<br> | ||||||||||||
|
|
||||||||||||
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.
Should this be a seperate warning? Its not very clear having two warnings in the same box
Can we be more explicit? How do i check the version ?