Project

Profile

Help

Task #6600

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

Automation should bump the versions and generate the changelog

Added by daviddavis over 1 year ago. Updated over 1 year 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


Subtasks

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

<a title="Actions" class="icon-only icon-actions js-contextmenu" href="#">Actions</a>

Associated revisions

Revision 38656526 View on GitHub
Added by Fabricio Aguiar over 1 year ago

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

History

#1 Updated by daviddavis over 1 year ago

  • Subject changed from Automation should bump the versions and generate to Automation should bump the versions and generate the changelog

#2 Updated by fao89 over 1 year 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

#3 Updated by daviddavis over 1 year 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?

#4 Updated by fao89 over 1 year 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

#5 Updated by rchan over 1 year ago

  • Sprint set to Sprint 72

#7 Updated by fao89 over 1 year ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to fao89

#8 Updated by fao89 over 1 year ago

  • Status changed from ASSIGNED to POST

#9 Updated by bmbouter over 1 year ago

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

#11 Updated by rchan over 1 year ago

  • Sprint changed from Sprint 72 to Sprint 73

#12 Updated by Anonymous over 1 year ago

  • Status changed from POST to MODIFIED
  • % Done changed from 50 to 100

#13 Updated by daviddavis over 1 year ago

  • Status changed from MODIFIED to CLOSED - COMPLETE

Please register to edit this issue

Also available in: Atom PDF