-
Notifications
You must be signed in to change notification settings - Fork 204
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
Deploying a release that is not the latest merge to master can fail #810
Comments
Jenkins is trying to do a release commit on top of the latest commit that it has (which is the commit that Jenkins has tested, and that the developer has tested on QA). Wouldn't merging with other commits from GitHub mean the release commit would not represent the same code that has been tested? |
After some Slack discussion we concluded that avoiding having to commit to master as part of the release would be best. We can do this by:
|
Ensure that the release tag is only pushed to GitHub if the release commit can also be pushed to master. We are likely to change the release process soon to avoid the need to push to master at all (see #810) but in the meantime this prevents a scenario where: - A tag vX.Y.Z gets created - The package version is still at X.Y.(Z-1) on master - Subsequent builds of master fail because they try and fail to create a tag vX.Y.Z which already exists
The first part of this, removing the CHANGELOG, is happening in #911 |
Attempting to deploy a release from Jenkins which is not the latest merge to master can fail as follows:
Step 4 will create a Git tag and a commit on the master branch for the release and attempt to push that to GitHub. However this will fail because the release commit was not made against the latest version of master, but the commit before PR B was merged.
See also this Slack discussion
To resolve this, we'll either need to change the release process to avoid actually creating commits in the process, or ensure that Jenkins merges the release commit to master rather than attempting to force-push it.
The text was updated successfully, but these errors were encountered: