-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Release script for downstream OTP forks #6345
base: dev-2.x
Are you sure you want to change the base?
Conversation
83f13fb
to
0e4a19f
Compare
I will add a check on the environment to the |
There are formatting issues. |
b58fcc8
to
77a9ed5
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #6345 +/- ##
=============================================
- Coverage 69.85% 69.78% -0.07%
- Complexity 17922 17926 +4
=============================================
Files 2035 2036 +1
Lines 76495 76585 +90
Branches 7824 7833 +9
=============================================
+ Hits 53435 53445 +10
- Misses 20324 20400 +76
- Partials 2736 2740 +4 ☔ View full report in Codecov by Sentry. |
I have improved the error handling in the scripts and simplified a bit. Ready for review. |
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 would prefer if there was a directory under the script directory for these files so you can have just a regular README for it.
Also note that the CI configuration is changed (c2) and this change needs to be included in the | ||
new release (v3). | ||
|
||
> **Note!** OTP ignore config it does not understand it. This allows us to roll out config for new |
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.
> **Note!** OTP ignore config it does not understand it. This allows us to roll out config for new | |
> **Note!** OTP ignores config it does not understand it. This allows us to roll out config for new |
|
||
You should create a branch in the local git repository where you keep your deployment-specific | ||
config. The `ext_config` branch should have **one** commit with all changes needed. If you need to | ||
change the config, you will have to amend the changes. This is because the release script chery-pick |
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.
change the config, you will have to amend the changes. This is because the release script chery-pick | |
change the config, you will have to amend the changes. This is because the release script cherry-pick |
Run the `prepare_release` script. The script does the following: | ||
- Reset main to the right latest commit on `dev-2.x` | ||
- Rebase and merge in the `ext_config` extension branches into the local release branch. You will | ||
be prompted for each step allowing you to perform/skip the steps you want. Also. the script keeps |
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.
be prompted for each step allowing you to perform/skip the steps you want. Also. the script keeps | |
be prompted for each step allowing you to perform/skip the steps you want. Also, the script keeps |
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.
Shouldn't this file have .sh
file extension?
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.
Same as above.
Summary
This PR contain two scripts
prepare_release
andrelease
to make a release in a DOWNSTREAM fork of OTP. These scripts are not intended for releasing the main OTP repository.See the (RELEASE_README)[script/RELEASE_README.md] for documentation of these scripts.
Issue
🟥 There is not issue for this. But, these scripts is requested from time to time. This PR provides a common place to maintain them.
Unit tests
🟥 There is a Java class in the utils module in this PR. It does not have tests, but it should be converted to a script. Not sure if we needs unit-tests on scripts.
Documentation
✅ The scripts are documented in the readme, se above.
Changelog
✅ This is relevant for advanced deplyments.
Bumping the serialization version id
🟥 Not relevant.