chore(release): Add prepare release script - #185
Conversation
E2E Test ResultsCommit: 26bf622 |
❌ 2 Tests Failed:
View the full list of 2 ❄️ flaky test(s)
To view more test analytics, go to the Test Analytics Dashboard |
janisz
left a comment
There was a problem hiding this comment.
Good structure — follows the same clean patterns as start-y-stream-release.sh. The regex escaping is consistently correct (all dots properly escaped), and the substitution ordering (X.Y.Z before X.Y) correctly avoids substring collisions. The WARNING-replace-before-create-WARNING snapshot placeholder is a nice safety mechanism. Two minor suggestions, no blocking issues.
6a8fe63 to
26bf622
Compare
Description
Adds a
scripts/prepare-release.shscript that automates patch release preparation for existing Y-stream release branches. The script discovers the next Z version from git tags (e.g., if0.2.1exists, next is0.2.2; if no tags exist, starts atX.Y.0), creates arelease-X-Y-Z-preparebranch, bumpsversionandappVersionincharts/stackrox-mcp/Chart.yaml, and generates Konflux Release resource YAMLs for both stage and production environments.Release resource files are generated from a single template (
scripts/templates/release-resource.yaml) usingyqpath-targetedsub()substitutions withX.Y/X-Y/X.Y.Z/X-Y-Zplaceholders. Output files are placed inreleases/X.Y.Z/at the repo root. The script does not commit or push — it prepares all changes for review.Validation
X.Y.0Chart.yamlhas correctversionandappVersionafter runningsnapshotfield isWARNING-replace-before-create-WARNINGrelease.appstudio.openshift.io/authoris set to current$USERgenerateNamefollows theagentic-cluster-security-suite-X-Y--X-Y-Z--{stage|prod}-patternAI-assisted development prompts
This PR was developed with AI assistance. Below are the prompts used: