This repository has been archived by the owner on Jun 20, 2023. It is now read-only.
ci: add new release candidate semi-automation #90
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.
This commit adds semi-automation to help maintainers create release candidate branches in preparation for a new version release. The intent here is that RC branch preparation (manifests, etc.) and conformance tests themselves are automated, but with the user still having control over when to actually move forward with promoting the RC and publishing the release.
Usage:
The user manually triggers the
prepare-test-rc
workflow, passing in the version number (e.g.1.12.3
).The workflow first checks if an RC branch for this version already exists. If it does not, it will create it.
The workflow then runs the usual lint / build / validate (previously ran on
pull_request
events, i.e. when a PR was manually opened) against the RC branch. Just as before, this pushes an image with the corresponding commit SHA toquay.io/cilium/cilium-olm
, which can be used for manual testing.The workflow then sets up an OpenShift cluster on AWS using the manifests from the RC branch, tweaked as required in order to run conformance tests, and runs the conformance tests. In case of failure, the OpenShift log bundle is uploaded as an artifact for manual inspection.
The user can then open an PR from the RC branch, and iterate on it, re-triggering tests via the
prepare-test-rc
workflow as necessary. Just as before, the user merges the PR once satisfied, and can run thepublish
workflow.