This directory contains several scripts useful in the development process of Knative Eventing.
boilerplate/add-boilerplate.shAdds license boilerplate to txt or go files in a directory, recursively.release.shCreates a new release of Knative Eventing.update-codegen.shUpdates auto-generated client libraries.update-deps.shUpdates Go dependencies.verify-codegen.shVerifies that auto-generated client libraries are up-to-date.
Note: only Knative leads can create versioned releases.
See https://github.com/knative/test-infra/blob/main/ci for more information on creating releases.
-
Click the Branch dropdown.
-
Type the desired
release-X.Ybranch name into the search box. -
Click the
Create branch: release-X.Y from 'master'button. You must have write permissions to the repo to create a branch.Prow will detect the new release branch and run the
release.shscript. If the build succeeds, a new tagvX.Y.0will be created and a GitHub release published. If the build fails, logs can be retrieved from https://testgrid.knative.dev/eventing#auto-release. -
Write release notes and add them to the release.
-
Fetch the upstream remote.
git fetch upstream
-
Create a
release-X.Ybranch fromupstream/master.git branch --no-track release-X.Y upstream/master
-
Push the branch to upstream.
git push upstream release-X.Y
You must have write permissions to the repo to create a branch.
Prow will detect the new release branch and run the
release.shscript. If the build succeeds, a new tagvX.Y.0will be created and a GitHub release published. If the build fails, logs can be retrieved from https://testgrid.knative.dev/eventing#auto-release. -
Write release notes and add them to the release.
The major version release job is currently called
ci-knative-eventing-auto-release and runs
every alternate hour.
-
Fetch the upstream remote.
git fetch upstream
-
Create a branch based on the desired
release-X.Ybranch.git co -b my-backport-branch upstream/release-X.Y
-
Cherry-pick desired commits from master into the new branch.
git cherry-pick <commitid>
-
Push the branch to your fork.
git push origin
-
Create a PR for your branch based on the
release-X.Ybranch.Once the PR is merged, Prow will detect the new commits in the release branch and run the
release.shscript. If the build succeeds, a new tagvX.Y.Zwill be created (whereZis the current minor version number + 1) and a GitHub release published. If the build fails, logs can be retrieved from https://testgrid.knative.dev/eventing#dot-release. -
Write release notes and add them to the release.
The minor version release job is currently called
ci-knative-eventing-dot-release and runs
every Tuesday at 09:56 Pacific time.