Project

Profile

Help

Task #6600

closed

Task #5529: [Epic] Automate parts of the release process

Automation should bump the versions and generate the changelog

Added by daviddavis over 4 years ago. Updated over 4 years ago.

Status:
CLOSED - COMPLETE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

100%

Estimated time:
(Total: 0:00 h)
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
CI/CD
Sprint:
Sprint 73
Quarter:

Description

Basically handle steps 1-6 of the release guide:

https://pulp.plan.io/projects/pulp/wiki/Pulp3_Release_Guide


Sub-issues 4 (0 open4 closed)

Task #6804: introduce release script on pulpcoreCLOSED - COMPLETEfao89

Actions
RPM Support - Task #6841: Introduce release script on pulp_rpmCLOSED - CURRENTRELEASEfao89

Actions
Container Support - Task #6842: Introduce release script on pulp_containerCLOSED - CURRENTRELEASE

Actions
Ansible Plugin - Task #6850: Introduce release script on pulp_ansibleCLOSED - CURRENTRELEASE

Actions

Related issues

Has duplicate Pulp - Task #6294: Add release automation to plugin_templateCLOSED - DUPLICATE

Actions
Actions #1

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
Actions #2

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
Actions #3

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?

Actions #4

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

Actions #5

Updated by rchan over 4 years ago

  • Sprint set to Sprint 72
Actions #7

Updated by fao89 over 4 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to fao89
Actions #8

Updated by fao89 over 4 years ago

  • Status changed from ASSIGNED to POST
Actions #9

Updated by bmbouter over 4 years ago

  • Has duplicate Task #6294: Add release automation to plugin_template added
Actions #11

Updated by rchan over 4 years ago

  • Sprint changed from Sprint 72 to Sprint 73

Added by Fabricio Aguiar over 4 years ago

Revision 38656526 | View on GitHub

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

Actions #12

Updated by Anonymous over 4 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 50 to 100
Actions #13

Updated by daviddavis over 4 years ago

  • Status changed from MODIFIED to CLOSED - COMPLETE

Also available in: Atom PDF