-
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
Allow Rebases to Model Deployment PRs #141
Comments
Please see if there's a way to allow users to rebase their Pull Requests. |
I'm not convinced this is a good idea. Once you rebase there Is no longer a commit that is associated with previous pre-release deployments in the PR. They're effectively orphaned, and so kinda useless. If a user needs to rebase they should just make a new PR. |
The commit should still be in the repository, just not in the branch. Use-case:
I don't think we should then tell the user that they are not allowed to |
If we were to go down this path, we need to figure out a different bit of information to pin to the spack environment/modules for Prereleases. Currently, we use the commit number, for example, Alternatives could be:
I'd prefer number 1 if we were to change stuff. |
Could you use:
|
Hi @CodeGat , Where an old suffix was reused, the
|
Yeah, I suspect that would have happened...it would have failed to run |
@CodeGat and discussed this and I am on-board team-rebase. Or at least, I am on-board team "don't stop people rebasing". I support ordinal numbering because I think that is the best solution for users, and maximises "user delight" when all they have to do is change a single digit in their My caveats still stand about re-basing a deployment repo
|
Background
As per a conversation with @aidanheerdegen:
Model deployment repositories aren't able to rebase their pull request branches because the workflow makes use of the number of commits on a branch as the name of the
spack
environment (like<MODEL>-pr<PR NUMBER>-<COMMIT NUMBER>
, eg.access-om3-pr12-2
), seebuild-cd/.github/workflows/ci.yml
Lines 182 to 193 in ab2b346
Since it is a requirement for now that users can't rebase, make this explicit in both the documentation, and in the workflow itself.
Update
We are now allowing PRs to rebase because we are using the
deployment number + 1
instead ofcommit number
The text was updated successfully, but these errors were encountered: