-
Notifications
You must be signed in to change notification settings - Fork 121
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
✨ Release 1.0.0 ✨ #6877
Merged
Merged
✨ Release 1.0.0 ✨ #6877
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as off-topic.
This comment was marked as off-topic.
teor2345
reviewed
Jun 12, 2023
teor2345
reviewed
Jun 12, 2023
teor2345
reviewed
Jun 12, 2023
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
c55c71e
to
a003b9f
Compare
Co-authored-by: teor <[email protected]>
Co-authored-by: teor <[email protected]>
Co-authored-by: teor <[email protected]>
Co-authored-by: teor <[email protected]>
Release Drafter draft:
|
dconnolly
commented
Jun 13, 2023
teor2345
reviewed
Jun 14, 2023
dconnolly
commented
Jun 14, 2023
Co-authored-by: teor <[email protected]>
teor2345
reviewed
Jun 14, 2023
teor2345
approved these changes
Jun 14, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, let's do this!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-dependencies
Area: Dependency file updates
A-docs
Area: Documentation
C-trivial
Category: A trivial change that is not worth mentioning in the CHANGELOG
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Prepare for the Release
These release steps can be done a week before the release, in separate PRs.
They can be skipped for urgent releases.
Checkpoints
For performance and security, we want to update the Zebra checkpoints in every release.
Missed Dependency Updates
Sometimes
dependabot
misses some dependency updates, or we accidentally turned them off.Here's how we make sure we got everything:
cargo update
on the latestmain
branch, and keep the outputcargo update
to that PR as a commentMake Release Changes
These release steps can be done a few days before the release, in the same PR:
Versioning
How to Increment Versions
Zebra follows semantic versioning. Semantic versions look like: MAJOR.MINOR.PATCH[-TAG.PRE-RELEASE]
Choose a release level for
zebrad
based on the changes in the release that users will see:major
releasesminor
releasespatch
releaseZebra's Rust API doesn't have any support or stability guarantees, so we keep all the
zebra-*
andtower-*
crates on a betapre-release
version.Update Crate Versions
If you're publishing crates for the first time:
cargo-release
:cargo install cargo-release
owners
group on GitHubcargo release version --verbose --workspace --exclude zebrad beta
cargo release version --verbose --package zebrad [ major | minor | patch ]
cargo release publish --verbose --workspace --dry-run
git
:cargo release commit --verbose --workspace
README
README updates can be skipped for urgent releases.
Update the README to:
Check for changes in the
Dockerfile
since the last tag:git diff <previous-release-tag> docker/Dockerfile
.Cargo.toml
sYou can use a command like:
Change Log
Important: Any merge into
main
deletes any edits to the draft changelog.Once you are ready to tag a release, copy the draft changelog into
CHANGELOG.md
.We use the Release Drafter workflow to automatically create a draft changelog. We follow the Keep a Changelog format.
To create the final change log:
CHANGELOG.md
(there can be multiple draft releases)Update End of Support
The end of support height is calculated from the current blockchain height:
ESTIMATED_RELEASE_HEIGHT
inend_of_support.rs
with the height you estimate the release will be tagged.Optional: calculate the release tagging height
1152
blocks for each day until the release1152 * 3
to the current Mainnet block heightCreate the Release PR
for example:
bump-v1.0.0
- this needs to be different to the tag name&template=release-checklist.md
to the comparing url (Example).batched
queue using Mergify.Critical
priority, so they go in theurgent
Mergify queue.Release Zebra
Create the GitHub Pre-Release
for example:
v1.0.0
main
branchZebra
followed by the version tag,for example:
Zebra 1.0.0
starting just after the title
## [Zebra ...
of the current version being released,and ending just before the title of the previous release.
Test the Pre-Release
main
, and the quick tests have passed.(You can ignore the full sync and
lightwalletd
tests, because they take about a day to run.)Publish Release
Publish Crates
cargo login
cargo release publish --verbose --workspace --execute
crates.io
:cargo install --force --version 1.0.0 zebrad && ~/.cargo/bin/zebrad
Publish Docker Images
docker run --tty --interactive zfnd/zebra:v1.0.0
,and put the output in a comment on the PR.
(You can use gcloud cloud shell)
batched
queue using Mergify.Release Failures
If building or running fails after tagging:
patch
releaseCHANGELOG.md
with details about the fixClose #6692
Close #6149
Close #6939