File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,10 +89,15 @@ ORIGINAL_WORKING_BRANCH=$(git branch --show-current)
8989replaceInFile () {
9090 local EXPRESSION=$1
9191 local FILE=$2
92- ${SED} -i -e " ${EXPRESSION} " " ${FILE} "
92+ ${SED} -E - i -e " ${EXPRESSION} " " ${FILE} "
9393 git add " ${FILE} "
9494}
9595
96+ updateVersionInBenchmarks () {
97+ replaceInFile " s|KROXYLICIOUS_VERSION:-[0-9]+\.[0-9]+\.[0-9]+|KROXYLICIOUS_VERSION:-${1} |g" \
98+ kroxylicious-openmessaging-benchmarks/scripts/setup-cluster.sh
99+ }
100+
96101cleanup () {
97102 if [[ -n ${ORIGINAL_WORKING_BRANCH} ]]; then
98103 git checkout " ${ORIGINAL_WORKING_BRANCH} " || true
@@ -147,6 +152,8 @@ replaceInFile "s_:KroxyliciousGitRef:.*_:KroxyliciousGitRef: v${RELEASE_VERSION}
147152
148153replaceInFile " s_image: 'quay.io/kroxylicious/proxy:.*'_image: 'quay.io/kroxylicious/proxy:${RELEASE_VERSION} '_g" compose/kafka-compose.yaml
149154
155+ updateVersionInBenchmarks " ${RELEASE_VERSION} "
156+
150157echo " Validating things still build"
151158mvn -q -B clean install -Pquick
152159
@@ -191,6 +198,8 @@ replaceInFile "s_:KroxyliciousGitRef:.*_:KroxyliciousGitRef: main_g" kroxyliciou
191198
192199replaceInFile " s_image: 'quay.io/kroxylicious/proxy:.*'_image: 'quay.io/kroxylicious/proxy:${NEXT_VERSION} '_g" compose/kafka-compose.yaml
193200
201+ updateVersionInBenchmarks " ${NEXT_VERSION} "
202+
194203# bump the reference version in kroxylicious-api
195204mvn -q -B -pl :kroxylicious-api versions:set-property -Dproperty=" ApiCompatability.ReferenceVersion" -DnewVersion=" ${RELEASE_VERSION} " -DgenerateBackupPoms=false
196205# reset kroxylicious-api to enable semver checks if they have been disabled
You can’t perform that action at this time.
0 commit comments