Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update release process #913

Merged
merged 6 commits into from
May 17, 2022
Merged

Update release process #913

merged 6 commits into from
May 17, 2022

Conversation

victorlin
Copy link
Member

@victorlin victorlin commented May 5, 2022

Description of proposed changes

Some changes prompted by the release of 15.0.2 – a first using the GitHub Actions workflow, which had some unexpected bumps.

Related issue(s)

N/A

Testing

Unable to test until next release.

Pre-merge

  • rebase commits

Post-merge

  • delete release branch

@victorlin victorlin requested a review from a team May 5, 2022 23:02
@victorlin victorlin self-assigned this May 5, 2022
Copy link
Contributor

@huddlej huddlej left a comment

Choose a reason for hiding this comment

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

This will make life a bit easier for us! As part of this PR, could you also remove references to the "release" branch from the DEV_DOCS and add a link to how to manually rebuild the Docker image (https://github.com/nextstrain/docker-base#rebuilding-an-image-and-pushing-to-docker-hub)?

Running this workflow against TestPyPI followed by PyPI does not work.

Publishing to TestPyPI was desirable initially when testing this out, but we ran into some unintended consequences when publishing to TestPyPI during an actual release.

On top of publishing as a final step, this workflow also does creates a git commit on master+release and creates a new tag, regardless of which PyPI instance is targeted. So, by running the 15.0.2 release against TestPyPI, the tag is created and a subsequent 15.0.2 release against PyPI would fail.

We have already released to PyPI using this so there is not much benefit keeping TestPyPI around anymore.
With the new GitHub Actions release process, this is no longer necessary since any failed tests will prevent tags from pushing. A subsequent run of the workflow will start from a clean slate.
The release process can function fine without a release branch, and he version tags should be sufficient for anyone looking for the latest release in git history.

If anything, we can replace the release branch with a git tag which is updated by the release script, but I don't see any immediate need for one.
@victorlin victorlin requested a review from huddlej May 6, 2022 22:20
Copy link
Contributor

@huddlej huddlej left a comment

Choose a reason for hiding this comment

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

Looks good to me! I'm sure we can refine more on the next release. :)

@huddlej huddlej merged commit bbd7535 into master May 17, 2022
@huddlej huddlej deleted the victorlin/fix-release branch May 17, 2022 23:11
@victorlin
Copy link
Member Author

Oops, I meant to rebase commits before merging, but no biggie.

@tsibley
Copy link
Member

tsibley commented May 23, 2022

The removal of the release branch broke the build of the Docker runtime image, which used the release branch to install the latest stable version of Augur. I'll fix that up, though there's a larger discussion to be had about if it makes any sense any more for Augur and Auspice to be installed from Git instead of PyPI/NPM.

tsibley added a commit to nextstrain/docker-base that referenced this pull request May 23, 2022
…ase" branch

The "release" branch was recently removed.¹  Instead, use the Git tag
for the latest stable version released to PyPI.

There's a larger discussion to be had about if it makes any sense any
more for Augur to be installed from Git instead of PyPI (and
correspondingly, Auspice from NPM), but that's for another time.

¹ nextstrain/augur#913
@victorlin victorlin added this to the Major release 16.0.0 milestone Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

3 participants