-
Notifications
You must be signed in to change notification settings - Fork 165
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
chore: Define check in release process ensuring migration guide is defined in a major version #2171
Conversation
e58f47d
to
d50eb1d
Compare
d50eb1d
to
22cfb52
Compare
2588302
to
a5477ea
Compare
UPGRADE_GUIDE_PATH="website/docs/guides/$MAJOR.$MINOR.$PATCH-upgrade-guide.html.markdown" | ||
echo "Checking for the presence of $UPGRADE_GUIDE_PATH" | ||
if [ ! -f "$UPGRADE_GUIDE_PATH" ]; then | ||
echo "Stopping release process, upgrade guide $UPGRADE_GUIDE_PATH does not exist. Please visit our releasing documentation for more details." |
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 we add the link or do you think it's not necessary?
https://github.com/mongodb/terraform-provider-mongodbatlas/blob/master/RELEASING.md#verify-upgrade-guide-is-defined
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.
Preferred to keep it more generic so the reference does not breaking moving forward, but no strong opinion
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.
we could add a link to the RELEASE.md instead of the exact section
|
||
update-examples-reference-in-docs: | ||
needs: [ release-config, validate-version-input ] | ||
needs: [ release-config, validate-inputs ] |
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.
knit: similary to validate-inputs i don't know if it would be better to have an update job with both references in doc and changelog header. or maybe it's better as it is now
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.
Since the commits are being done by calling an external workflow we do not have the possibility of having both in a single job
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.
"Verify upgrade guide is defined" section in RELEASING.md can be updated or deleted
knit: look at this PR I was thinking that it might be useful to have a way to know if the release process will probably success without running it, e.g.:
this could help to anticipate and fix problems in the release |
@lantoli responding here:
While it can be completely deleted, prefered to keep it as it describes what the upgrade guide must have. In the failure of the job we referencing to the releasing docs for more info.
A prerelease would be the most similar to a dry run process. However I doubt we will likely make use of this in a regular release, maybe in case we encounter specific issues and want to do a test run. |
at least i would comment in the doc that there is an automatic check |
Description
Link to any related issue(s): CLOUDP-244149
If we ever forget to define the migration guide for a major version (vX.Y.0) the release process will stop automatically. This is already stated in our docs.
Testing
Type of change:
Required Checklist:
Further comments