-
Notifications
You must be signed in to change notification settings - Fork 7
Add instructions for failure #6
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
mpkorstanje
wants to merge
1
commit into
main
Choose a base branch
from
mpkorstanje-patch-1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
@mattwynne you suggested #3 (comment). Though I'm wondering, if we force push to the release branch, what happens to the git tag? Shouldn't that also be forced pushed?
Sounds like a recipe for problems.
Uh oh!
There was an error while loading. Please reload this page.
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.
I'm not sure. It's possible that the github release action will move the tag (it certainly adds a tag if there isn't one already) but we'd need to try it to establish that for sure.
This isn't something that happens very often, and I'd expect that the person doing it would be able to figure it out. I just thought it was nice to leave them a clue!
If we want to be clear we could add:
Uh oh!
There was an error while loading. Please reload this page.
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.
Well, what's the point of a forced push here?
If there is something wrong which does not involve a new commit, the workflow should be re-triggered manually using the github UI rather than forcing a push. That would be less error-prone
And if a commit is involved: push to main, then push to the release branch, as usual, that should do the trick
And if any doubt, call for help on slack
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.
I'm talking specifically about when you need to fix something in one of the release workflow yaml files and re-run it. I've been in that loop a few times, especially when setting up a new repo.
I can imagine we'll get regressions, especially in repos that haven't been released for a while.
Uh oh!
There was an error while loading. Please reload this page.
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.
I've been there.
Pushing on main, then on the release branch, without forcing the push, is working fine. There is no need to force push here
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.
So just delete the existing release branch first? Yes, that sounds good.
Could you express your workflow in words?
Maybe this deserves its own little section in the doc.
Uh oh!
There was an error while loading. Please reload this page.
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.
Why would you delete the release branch first?
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.
I guess I'm getting confused between your workflow and mine. I think yours sounds better!
Uh oh!
There was an error while loading. Please reload this page.
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.
What I have in mind is that:
At first, you have your main branch that you want to deploy, so:
git pushto push main to origingit push origin main:release/vX.Y.Zto push the exact same head to a release branchSomething went wrong, you fix it, you commit to main, and then your do the exact same thing:
git pushto push main to origingit push origin main:release/vX.Y.Zto update the release branch accordinglyNo need to force push becaus the release branch is actually an exact copy of main. If it is possible to push to main, it is possible to push to the release branch without forcing it or deleting it. The release workflow will be triggered the exact same way. The only thing that still has to be fixed is the tag, but that is not even mandatory in the case where you fix nothing else than a workflow: the released package itself should not be impacted