Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Document the release procedure #345

Merged
merged 5 commits into from
Feb 15, 2018
Merged

Document the release procedure #345

merged 5 commits into from
Feb 15, 2018

Conversation

glasserc
Copy link
Contributor

I've found instructions like these incredibly helpful in Kinto-related projects. This is just the set of steps I understood from Mathieu in chat this morning.

@glasserc glasserc requested review from Natim and leplatrem February 15, 2018 15:59
README.md Outdated

We don't use `zest.releaser` right now because of some problems with
releasing a package that is not at the root of the repo (`jobs/`), but
this could change if we figure out how.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's also because we don't really need pypi. It runs in a lambda that we publish as a zip on the release page

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right, I forgot to mention about the release page, thanks.

@peterbe
Copy link
Contributor

peterbe commented Feb 15, 2018

It's been a while since I wrote this but it's really served me well. Whenever I want to upgrade Stage I just type ./bin/make-tag.py and hit Enter. (CloudOps have it set up to upgrade Stage immediately when a new release tag is created)

It's good to have instructions but it's sometimes even better to have it all automated away.

@peterbe
Copy link
Contributor

peterbe commented Feb 15, 2018

What I'm suggesting is that we look at that make-tag.py and copy it into the buildhub repo and rewrite the parts that need to be different. Then we can extend it with some of the stuff about filing bugs in bugzilla. That too can easily be automated.

@glasserc glasserc mentioned this pull request Feb 15, 2018
@glasserc
Copy link
Contributor Author

I agree that it's valuable to have these processes automated. Let's look into what it would take to get zest.releaser working on this project, and extending it with hooks to do the Github/Bugzilla bits. I've opened #346 about this.

README.md Outdated
The current procedure is:

* Bump version in `jobs/setup.py`
* `git tag x.y.z`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about updating the release date in the CHANGELOG.rst and running make build-dependencies

* `git tag x.y.z`
* `git push --tags origin`
* `make lambda.zip`
* Add a release on Github with the lambda.zip attached
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this mean? Going to https://github.com/mozilla-services/buildhub/releases/new and manually upload the lambda.zip file with the browser?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on previous releases, I think so, but I've never done it myself.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, manual upload so far.

README.md Outdated
* `git push --tags origin`
* `make lambda.zip`
* Add a release on Github with the lambda.zip attached
* Open a ticket like https://bugzilla.mozilla.org/show_bug.cgi?id=1426340 to get it deployed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, the only variable is the tag name?
A link to create the bug can be made with this as a query string variable.

See how the "Bugzilla" tab on Crash-stats have links to enter a new bug with lots of the stuff already filled in.
https://crash-stats.mozilla.com/report/index/19ef17b4-3864-4a55-b9a6-ae6e30180204#tab-bugzilla

@glasserc glasserc merged commit 462c350 into mozilla-services:master Feb 15, 2018
@glasserc glasserc deleted the document-releasing branch February 15, 2018 17:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants