Task #6600
closedTask #5529: [Epic] Automate parts of the release process
Automation should bump the versions and generate the changelog
100%
Description
Basically handle steps 1-6 of the release guide:
Related issues
Updated by daviddavis over 4 years ago
- Subject changed from Automation should bump the versions and generate to Automation should bump the versions and generate the changelog
Updated by fao89 over 4 years ago
Copying the steps here:
1. Build the changelog with the towncrier --version x.y.z --draft command. If it looks good rebuild with towncrier --version x.y.z. This will stage git changes for you.
2. Commit the changelog by itself. (first commit)
3. Increment the versions in setup.py and pulpcore/__init__.py to the release versions. e.g. 3.0.1
4. Commit the version bump (second commit). Note the hash of this commit.
5. Increment the versions in setup.py and pulpcore/__init__.py to the next, unreleased version for that branch. For a y-release of 3.1.0 on 'master' would be 3.2.0.dev. For a z-release 3.0.1 on the 3.0 branch, the next unreleased version would be 3.0.2.dev. If you're making a new y-release, also bump the value for stable_branch in template_config.yml.
6. Commit the version bump (third commit).
What defines " If it looks good" from the first step and how can we automate it?
What can be used to trigger these steps?
- I thought about opening an issue on pulp-ci, and then it will have a job for parsing the issue with pygithub and execute the steps, making pulpbot to open a PR
Updated by daviddavis over 4 years ago
What defines " If it looks good" from the first step and how can we automate it?
Great question. What if the release nanny runs towncrier --version x.y.z --draft
locally before kicking off the release process?
What can be used to trigger these steps? I thought about opening an issue on pulp-ci, and then it will have a job for parsing the issue with pygithub and execute the steps, making pulpbot to open a PR
My thought was that this script would initially be triggered by a user (ie the release nanny). Then later we could move it to a CI environment. Thoughts?
Updated by fao89 over 4 years ago
- Groomed changed from No to Yes
- Sprint Candidate changed from No to Yes
- Tags CI/CD added
I agree with both answers, thanks @daviddavis
Updated by fao89 over 4 years ago
Updated by fao89 over 4 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to fao89
Updated by fao89 over 4 years ago
- Status changed from ASSIGNED to POST
Updated by bmbouter over 4 years ago
- Has duplicate Task #6294: Add release automation to plugin_template added
Updated by pulpbot over 4 years ago
Added by Fabricio Aguiar over 4 years ago
Updated by Anonymous over 4 years ago
- Status changed from POST to MODIFIED
- % Done changed from 50 to 100
Applied in changeset plugin_template|3865652668eb1c6f2fb2f4288fe8f99865fa5b39.
Updated by daviddavis over 4 years ago
- Status changed from MODIFIED to CLOSED - COMPLETE
Introducing release script
which executes the first 6 steps of https://pulp.plan.io/projects/pulp/wiki/Pulp3_Release_Guide
https://pulp.plan.io/issues/6600 closes #6600