or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing
xxxxxxxxxx
Carvel Tools Release Process
Table of Contents
Release Process Proposal
Goals
ytt
,kapp
,kbld
,kapp-controller
,kwt
,imgpkg
andvendir
Anti Goals
Develop tooling to help with the process
Solution on said tooling
Release decision
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →see if it is enough to explain the why we should create a release (click to reveal)
We assume that there will be 4 major categories of reasons to release:
There is a critical bug fixed
The product achieved a milestone
A Milestone can be a Big Feature of a Chunk of that Big Feature. An example of this would be the Schema Feature for
ytt
, another example can be the MVP release ofimgpkg
There is a set of features/bugs that warrant a new version
These set of features can be random issues or bugs that make sense to group in a new version.
A user asked for a new official release
For each one of the above categories, there are considerations that we should make before we release:
Is there work in-flight on
develop
that would impact GA functionality? If so, consider waiting until "feature complete" or patching on the previous release.Does it make sense to release a new version today?
If we release today and an urgent issue is discovered tomorrow can we solve it?
Do we have enough time today to do the full release process?
Not releasing today is going to cause major problems for the tool? (Community or user wise)
What steps to take to decide:
How to release
Release Checklist
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Grab a copy of the Markdown format of this checklist and create a GitHub issue to track progress of a release.
Bump version
Automatically Created Draft Release
imgpkg
,kapp
,kbld
,vendir
, andytt
all use a GitHub Action to create the Draft Release. They trigger when a tag in the shape of a version number is pushed to the repo.(for all other tools, see Manually Created Draft Release)
develop
branch (automation watches this branch, exclusively):- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →When tagging a patch release after another
has already been released…
GitHub determines the order of releases based on the timestamp of the tags that mark each release. So, the most recently tagged release becomes the "latest" release (i.e. is the version users are redirected to from http://github.com/user/repo/releases/latest).
In git, a tag is a light-weight reference to a commit. So, the timestamp of the tag is the timestamp of the commit it points to.
"Latest" is as expected if a patch release immediately follows its minor (e.g. from v0.37.0 to v0.37.1). However, if a patch release is preceeded by some other minor release (e.g. v0.38.0), then "latest" becomes v0.37.1, when semver latest (and what users would expect) is v0.38.0.
To work around this, one needs to create an "annotated tag" (which has among other data a creation date) and set the date to position the tag in the timeline:
2013-12-31 00:00
with the time you've calculated (note: this field supports multiple formats)v0.37.x
with your versionb217332279
with the commit you want to release atv0.37.x
with your minor version branch- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Manually Created Draft Release
kapp-controller
andkwt
have no automation for creating the Draft Release. For these tools, the version constant is updated manually.Steps:
develop
branchdevelop
branchCreate Draft Github Release
For tools that use github actions to create the draft release (imgpkg, ytt, kbld, kapp, vendir), check to see if the new draft release has been added to GH by the goreleaser. Then continue to the next section for more information on how to tailor the text to add in the
Describe Release
field.For other tools (kapp, kwt, vendir):
Steps:
Using the Github UI, create a new release and tag the 'version bump' commit with the tag
vX.X.X
Releases
Draft a New Release
or access https://github.com/vmware-tanzu/REPOSITORY/releases/newDescribe Release
fieldCreate the Release Notes
For imgpkg, ytt, kapp, vendir and kbld, the release notes should come with a list of changes made since the last release, this is not the case for kapp, kwt, and vendir. Read the commit messages and issues that have been closed since the last release.
Choose and include the most relevant feature changes or bugs
Follow the below proposed template for our release notes.
Title:
v1.2.3
To note:
\
on the shasum sectionImage after rendering the template (click to reveal)
Steps for not automated tools on generate Binaries and upload them to the release
[Not required] Generate Binaries and Checksum
Note: We have github actions running which takes care of it.
For tools that use github actions to create the draft release (imgpkg, ytt, kbld, kapp, vendir):
For other tools (kapp, kbld, kwt, vendir): On each repository there is a
hack/build-binaries.sh
file that we can use to generate the binaries and the checksumRunning
hack/build-binaries.sh
will generate a binary per platform and in the Standard Output prints the checksum for each file.kapp-controller: This is a little bit of a different process because what we want to distribute is the configuration file and a OCI Image. To archive this run
hack/build-release.sh
.This script will generate 2 artifacts, the OCI Image and the configuration YAML. The OCI Image is pushed to Github Package Registry automatically by
kbld
, but the configuration YAML will have to be attached to the Github Release as per the next step[Not Required] Upload Binaries and Checksum
Note: We have a Github action which takes care of it.
For tools that use github actions to create the release (imgpkg, ytt, kbld, kapp, vendir):
checksums.txt
file../
(if you don't subsequent steps will fail)For other tools (kapp, kbld, kwt, vendir):
Add the generated binaries to the Github Release, and edit the Release Notes to add the Checksums of the binaries
kapp-controller: The artifact that will be uploaded is the configuration file and the Checksum of the configuration file
Publish the draft release
Click on the publish button… profit!
Wait for the Github Action
Checks after any release is published
to run successfully.Update Homebrew
In the Homebrew Tap repository each tool has a file that contains the version and the checksum for Linux and MacOS binaries. These values need to be updated per release.
For tools that dispatch the GH action to update homebrew upon a release (
ytt
,kbld
,kapp
,vendir
, andimgpkg
):To update homebrew manually (click to reveal):
Update Website Installation Script
This file is located in: https://github.com/vmware-tanzu/carvel/blob/develop/site/static/install.sh
For tools that dispatch the GH action to update the installation script upon a release (
ytt
,kbld
, andimgpkg
):To update installation script manually (click to reveal):
site/static/install.sh
Update Chocolatey
https://community.chocolatey.org/packages/ytt
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →This means we currently do not maintain the package ourselves.
The "instructions" herein are a sketch of what we would do, should we obtain ownership.
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →At some point, perhaps we should consider requesting the owner to donate the package to this project.
It would be housed at: https://github.com/vmware-tanzu/carvel-chocolatey
Possible Process (click to reveal)
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →tool-name.nuspec
for the correct tool. Update the release notes url to the correct version.tools/VERIFICATION.txt
for the correct tool- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Update Github Action
There is no need to do any update on the action. Nevertheless there is a Github Action called
Checks after release is published
that will run when a new Release is published. When releasing we should ensure that this check passes.This Github Action is present in the repositories of each tool and will run automatically.
e.g. https://github.com/vmware-tanzu/carvel-ytt/actions/workflows/release-published.yml
Generate new docs version
This is a semi automated process that contains a script that will allow us to generate new documentation based on a version that already exist.
Clone the Carvel repository
Clone the repository
https://github.com/vmware-tanzu/carvel
using the command:Enter the site folder
Generate the documentation
Verify and commit the changes
Check that the files added to git are the ones intended to be changed (ex: config.yaml will only be change when updating latest or doing a patch to the latest version)
Push changes and create a Pull Request
When the PR is merge, contact Nanci or Jonas or Joao so that they can rerun the crawler in the website to ensure the search will be updated
Push OCI Images to Registry
The only(?) tool that require an OCI Image is
kapp-controller
and the scripts that build the Image and generate the Configuration already pushes the image to the Github Package Registry. The other tools are packages in a docker image for consumption and the repository is in https://github.com/vmware-tanzu/carvel-docker-image We should create a new version of this image at least once every quarter.Communicate in Slack
Please coordinate with Nanci (@nancil in Slack) for communicating releases. She'll announce them on twitter and then link to them in slack.
For larger releases, we'll try to anticipate these releases so that we can prepare a blog post.
The message template we should use is:
Image after rendering:
Announce in community meeting
Update the next community meeting Announcements section in https://hackmd.io/F7g3RT2hR3OcIh-Iznk2hw.
Example:
Versioning
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →Heuristics to bump versions:
These Guidelines are flexible and we should discuss before each bump to ensure that we are bumping the correct number.
Deprecation of functionality
When deprecating functionality we should provide the users with enough time to prepare for this change. The recommendation for this is:
What is not true today in the process above
Possible improvements on the process
Easy wins
Automation of parts of the release process
Slack notifications
It would be interesting to provide a way to send automatic messages to both Slack channels when a release is published
Generation and inclusion of binaries in release notes
Automate the generation of the binaries and attachment to the release notes
Simple way to gather all changes since last release
It would be helpfull to create a way to gather all the issues/stories that where finished since the last release. Even if this does not create the release note it would help us not forget any issue.
Update all the places an artifact needs to be updated
Having to update 4 or 5 different places with the same information is tedius and error prune. If we could automate the commit process in all the needed repositories would be awesome.
For some of these maybe we can leverage things like dependabot.
Packaging tool files automation
If there was a file in all the packaging repositories that contained the version and checksums. It would make the update easier, we could generate the final files using
ytt
.