From 18607a55f9d2232068aab875f27083f9fbef7d38 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Tue, 18 Nov 2025 19:14:05 +0000 Subject: [PATCH] add bumpmatrix command to make.sh --- .github/make.sh | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/.github/make.sh b/.github/make.sh index 79d785957..4a363e524 100755 --- a/.github/make.sh +++ b/.github/make.sh @@ -11,12 +11,13 @@ # # Targets: # --------------------------- -# assemble : build client artefacts with version -# bump : bump client internals to version -# codegen : generate endpoints -# docsgen : generate documentation -# examplegen : generate the doc examples -# clean : clean workspace +# assemble : build client artefacts with version +# bump : bump client internals to version +# bumpmatrix : bump stack version in test matrix to version +# codegen : generate endpoints +# docsgen : generate documentation +# examplegen : generate the doc examples +# clean : clean workspace # # ------------------------------------------------------- # @@ -24,7 +25,7 @@ # Bootstrap # ------------------------------------------------------- # -script_path=$(dirname "$(realpath -s "$0")") +script_path=$(dirname "$(realpath "$0")") repo=$(realpath "$script_path/../") # shellcheck disable=SC1090 @@ -100,6 +101,15 @@ case $CMD in # VERSION is BRANCH here for now TASK_ARGS=("$VERSION") ;; + bumpmatrix) + if [ -v $VERSION ]; then + echo -e "\033[31;1mTARGET: bumpmatrix -> missing version parameter\033[0m" + exit 1 + fi + echo -e "\033[36;1mTARGET: bump stack in test matrix to version $VERSION\033[0m" + TASK=bumpmatrix + TASK_ARGS=("$VERSION") + ;; *) echo -e "\nUsage:\n\t $CMD is not supported right now\n" exit 1 @@ -160,6 +170,13 @@ if [[ "$CMD" == "bump" ]]; then exit 0 fi +if [[ "$CMD" == "bumpmatrix" ]]; then + TEST_CONFIG_FILE=.buildkite/pipeline.yml + sed -E -i.bak 's/[0-9]+\.[0-9]+\.[0-9]+-SNAPSHOT/'$VERSION'/g' $TEST_CONFIG_FILE + rm ${TEST_CONFIG_FILE}.bak + exit 0 +fi + if [[ "$CMD" == "codegen" ]]; then docker run \ --rm -v $repo:/code/elasticsearch-py \