-
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
Draft PRs disable schema and package projection checks #244
Conversation
…n draft PRs Split projection checks into root spec and packages
What happens when a PR is closed or merged? Will the module file be deleted by one environment while it is still being used by another? |
No, I've found out that modulefiles aren't handled by |
I've verified that this PR works as it stands currently, so I'm setting it to Ready for Review - test details are in the PR description. |
What happens with |
It'd still bump the version. It doesn't care what state the PR is in |
Does that make sense for a draft PR which isn't checking the version stuff? |
Yes, and given we're going to have to create logic to remove the module files it is a problem if we remove a modulefile that is being used by another PR build. So we should probably prepend the PR namespace to the module file projection automagically so we can easily and safely clean them up when the pre-release is cleaned up. |
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
I mean, not really. But it'd have to be a conscious choice to
I think this should be a separate issue, because it might have implications for users outside of this PR. |
Closes #237
Background
Prereleases have evolved - sometimes they are used not to create a Release, but to have a sharable location to test out various builds. This means that the schema (and some of the checks) are unnessecarily restrictive. This PR removes schema checks and package projection checks for Draft PRs in Model Deployment Repositories.
Open Questions
Wouldn't mind @aidanheerdegen and @harshula s opinions on these questions:
mom5@development
with spack package hashabcdefg
. If we create another environment that reuses this package and therefore it's hash, will we have a modulefile clash even with a modulefile name{name}/development-{hash:7
(resolves tomom5/development-abcdefg
)?{name}/development
clashing the other, non-identical builds ofmom5@development
.Testing
Using
ACCESS-TEST
with branch237-skip-check-spack-yaml-check-on-draft_TEST
(which is the PR branch with all access-nri workflow refs replaced with the above branch). Did this withsed -E 's|uses: access-nri/build-cd/(.+)@v4|uses: access-nri/build-cd/$1@237-skip-check-spack-yaml-check-on-draft_TEST|g' -i .github/workflows/*
See ACCESS-NRI/ACCESS-TEST#31 - this contains a run of tests that validate:
!redeploy
-invoked Draft PRs skip schema and package projection checks ✔️!bump
continues to work) ✔️!redeploy
-invoked Non Draft PRs do NOT skip schema and package projection checks ✔️This verifies that this PR is working as expected.