Skip to content

Commit

Permalink
update release documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
neufeldtech committed Mar 4, 2022
1 parent 5cfb64c commit 82f7a28
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 6 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -616,9 +616,4 @@ For example, `shopify_test_redis_master` or `shopify_development_mysql_1`.

### Release

1. Update `CHANGELOG.md`
1. Change versions in `README.md`
1. Create a release commit and a signed tag.
1. [Bump version for Homebrew](https://github.com/Shopify/homebrew-shopify/blob/master/toxiproxy.rb#L9)

[blog]: https://shopifyengineering.myshopify.com/blogs/engineering/building-and-testing-resilient-ruby-on-rails-applications
See [RELEASE.md](./RELEASE.md)
69 changes: 69 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Releasing
- [Releasing](#releasing)
- [Before You Begin](#before-you-begin)
- [Local Release Preparation](#local-release-preparation)
- [Update the CHANGELOG.md](#update-the-changelogmd)
- [Create Release Commit and Tag](#create-release-commit-and-tag)
- [Run Pre-Release Tests](#run-pre-release-tests)
- [Submit Release Pull Request](#submit-release-pull-request)
- [Push Release Tag](#push-release-tag)
- [Verify Github Release](#verify-github-release)
- [Update Homebrew versions](#update-homebrew-versions)

## Before You Begin

Ensure your local workstation is configured to be able to [Sign Commits](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits)

## Local Release Preparation

### Update the [CHANGELOG.md](CHANGELOG.md)

- Add a new version header at the top of the document, just after `# [Unreleased]`
- Update links at bottom of changelog

### Create Release Commit and Tag

```bash
git checkout master
git pull origin master
git commit -S -m 'Release 2.x.y'
git tag -s v2.x.y -m 'Release 2.x.y'
```

### Run Pre-Release Tests

```bash
make test-release
```

## Submit Release Pull Request

- Submit a PR of your Release commit on Github
- Merge it to master (after approval)

## Push Release Tag

- On your local machine again, push your tag to github

```bash
git push origin v2.x.y
```

## Verify Github Release

- Github Actions should kick off a build and release after the tag is pushed.
- Verify that a [Release gets created in Github](https://github.com/Shopify/toxiproxy/releases) and verify that the release notes look correct
- Github Actions should also attatch the built binaries to the release (it might take a few mins)

## Update Homebrew versions

- Update [homebrew-shopify toxiproxy.rb](https://github.com/Shopify/homebrew-shopify/blob/master/toxiproxy.rb#L9) manifest
1. Update `app_version` string to your released version
2. Update hashes for all platforms (find the hashes in the checksums.txt from your release notes)

- Do a manual check of installing toxiproxy via brew
1. While in the homebrew-shopify directory...
```bash
brew install ./toxiproxy.rb --debug
```
Note: it's normal to get some errors when homebrew attempts to load the file as a Cask instead of a formula, just make sure that it still gets installed.

0 comments on commit 82f7a28

Please sign in to comment.