This doc outlines the steps required for manually preparing and performing a DSP release.
Versioning for DSP follows semver:
Given a version number MAJOR.MINOR.PATCH, increment the:
MAJOR version when you make incompatible API changes
MINOR version when you add functionality in a backward compatible manner
PATCH version when you make backward compatible bug fixes
DSPO and DSP versioning is tied together, and DSP MAJOR
versions are tied to [kfp-tekton] upstream.
Note: In main branch all images should point to
latest
and not any specific versions, asmain
is rapidly moving, it is likely to quickly become incompatible with any specific tags/shas that are hardcoded.
Need GitHub repo admin permissions for DSPO and DSP repos.
Steps required for performing releases for MAJOR
, MINOR
, or PATCH
vary depending on type.
Given that MAJOR
releases often contain large scale, api breaking, changes. It is likely the release process will vary
between each MAJOR
release. As such, each MAJOR
release should have a specifically catered strategy.
Let x.y.z
be the latest
release that is highest DSPO/DSP version.
Steps on how to release x.y+1
- Ensure
compatibility.yaml
is upto date, and generate a newcompatibility.md
- Use release-tools to accomplish this
- Cut branch
vx.y+1
frommain/master
- Do this for DSPO and DSP repos
- Build images. Use the build-tags workflow, specifying the branches from above
- Retrieve the sha images from the resulting workflow (check quay.io for the digests)
- Using release-tools generate a
params.env
and submit a new pr tovx.y+1
branch - For images pulled from registry, ensure latest images are upto date
- Using release-tools generate a
- Perform any tests on the branch, confirm stability
- If issues are found, they should be corrected in
main/master
and be cherry-picked into this branch.
- If issues are found, they should be corrected in
- Create a tag release (using the branches from above) for
x.y+1.0
in DSPO and DSP (e.g.v1.3.0
)
DSP supports bug/security fixes for versions that are at most 1 MINOR
versions behind the latest MINOR
release.
For example, if v1.2
is the latest
DSP release, DSP will backport bugs/security fixes to v1.1
as PATCH
(z) releases.
Let x.y.z
be the latest
release that is the highest version.
Let x.y-1.a
be the highest version release that is one MINOR
version behind x.y.z
Example:
If the latest release that is the highest version is v1.2.0
Then:
x.y.z = v1.2.0
x.y-1.a = v1.1.0
vx.y.z+1 = v1.2.1
vx.y-1.a+1 = v1.1.1
Note
a
value inx.y-1.a
is arbitrarily picked here. It is not always the casez == a
, though it will likely be the case most of the time.
Following along our example, suppose a security bug was found in main
, x.y.z
, and x.y-1.a
.
And suppose that commit 08eb98d
in main
has resolved this issue.
Then the commit 08eb98d
needs to trickle to vx.y.z
and vx.y-1.a
as PATCH
(z) releases: vx.y.z+1
and vx.y-1.a+1
- Cherry-pick commit
08eb98d
onto relevant minor branchesvx.y
andvx.y-1
- Build images for
vx.y.z+1
andvx.y-1.a+1
(e.g.v1.2.1
andv1.1.1
) DSPO and DSP- Images should be built off the
vx.y
andvx.y-1
branches respectively - Use the build-tags workflow
- Images should be built off the
- Retrieve the sha image digests from the resulting workflow
- Using release-tools generate a params.env and submit a new pr to
vx.y
andvx.y-1
branches
- Using release-tools generate a params.env and submit a new pr to
- Cut
vx.y.z+1
andvx.y-1.a+1
releases in DSP and DSPO
Downstream maintainers of DSP should:
- ensure
odh-stable
branches in DSP/DSPO are upto date with bug/security fixes for the appropriate DSPO/DSP versions, and forward any changes fromodh-stable
to their downstream DSPO/DSP repos