-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add a GitHub workflow to prepare a release pull request #6972
Conversation
CC @azhavoro |
Codecov Report
@@ Coverage Diff @@
## develop #6972 +/- ##
========================================
Coverage 82.58% 82.58%
========================================
Files 360 360
Lines 38914 38924 +10
Branches 3570 3570
========================================
+ Hits 32137 32146 +9
- Misses 6777 6778 +1
|
I also see that it would be nice to have some validation on the version number that prevents increasing one of X, Y or Z on more than 1. Or was it already implemented and I missed it? |
IMO, this isn't needed. There's no requirement that versions have to be sequential, and we might end up wanting to skip a version for whatever reason. Although now that you mention it, maybe I should at least add a check that the release does not already exist... |
41b59bd
to
50a5949
Compare
This automates the first half of the current release process. The second half will be implemented by another workflow. The reason why it can't all be done in a single workflow is that it's useful to let developers inspect what'll go into the release before actually publishing it, and to apply any last-minute fixes, if necessary. It also allows CI to complete for the release PR. To support the new workflow, add a `--set` option to `update_version.py` that sets the version to a custom value.
50a5949
to
046aa62
Compare
This automates the first half of the current release process. The second half will be implemented by another workflow. The reason why it can't all be done in a single workflow is that it's useful to let developers inspect what'll go into the release before actually publishing it, and to apply any last-minute fixes, if necessary. It also allows CI to complete for the release PR. To support the new workflow, add a `--set` option to `update_version.py` that sets the version to a custom value.
Motivation and context
This automates the first half of the current release process. The second half will be implemented by another workflow.
The reason why it can't all be done in a single workflow is that it's useful to let developers inspect what'll go into the release before actually publishing it, and to apply any last-minute fixes, if necessary. It also allows CI to complete for the release PR.
To support the new workflow, add a
--set
option toupdate_version.py
that sets the version to a custom value.How has this been tested?
Manual testing on my fork of CVAT. See a test run here: https://github.com/SpecLad/cvat/actions/runs/6459901481.
Checklist
develop
branch[ ] I have created a changelog fragment[ ] I have updated the documentation accordingly[ ] I have added tests to cover my changes[ ] I have linked related issues (see GitHub docs)[ ] I have increased versions of npm packages if it is necessary(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)
License
Feel free to contact the maintainers if that's a concern.