From bff3febf95b51f6f55492af82dcf37555ce034b7 Mon Sep 17 00:00:00 2001 From: sd109 Date: Tue, 18 Feb 2025 14:56:45 +0000 Subject: [PATCH] Fix vLLM update workflow to handle new chart structure --- .github/workflows/update-dependencies.yml | 17 +++++++++++++++-- charts/azimuth-chat/values.schema.json | 2 +- .../azimuth-image-analysis/values.schema.json | 2 +- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml index c879627..59fcc00 100644 --- a/.github/workflows/update-dependencies.yml +++ b/.github/workflows/update-dependencies.yml @@ -37,13 +37,26 @@ jobs: export OLD_VLLM_TAG=$(yq '.api.image.version' $CHART_VALUES) export NEW_VLLM_TAG=$(curl -s https://api.github.com/repos/vllm-project/vllm/releases/latest | jq .tag_name | sed s/\"//g) if [[ $OLD_VLLM_TAG != $NEW_VLLM_TAG ]]; then + # Set new release tag output echo new_vllm_tag=$NEW_VLLM_TAG >> $GITHUB_OUTPUT + # Update yaml in-place with yq yq e -i '.api.image.version = strenv(NEW_VLLM_TAG)' $CHART_VALUES + + # Replace version default in Azimuth UI schema files # Can't use in-place editing with jq - jq --indent 4 --arg tag $NEW_VLLM_TAG '.properties.api.properties.image.properties.version.default = $tag' charts/azimuth-llm/values.schema.json > charts/azimuth-llm/values.schema.json.new - mv charts/azimuth-llm/values.schema.json{.new,} + FILENAME=charts/azimuth-llm/values.schema.json + jq --indent 4 --arg tag $NEW_VLLM_TAG '.properties.api.properties.image.properties.version.default = $tag' $FILENAME > $FILENAME.new + mv $FILENAME{.new,} + + FILENAME=charts/azimuth-chat/values.schema.json + jq --indent 4 --arg tag $NEW_VLLM_TAG '.properties.api.properties.image.properties.version.default = $tag' $FILENAME > $FILENAME.new + mv $FILENAME{.new,} + + FILENAME=charts/azimuth-image-analysis/values.schema.json + jq --indent 4 --arg tag $NEW_VLLM_TAG '.properties.api.properties.image.properties.version.default = $tag' $FILENAME > $FILENAME.new + mv $FILENAME{.new,} fi - name: Create Pull Request diff --git a/charts/azimuth-chat/values.schema.json b/charts/azimuth-chat/values.schema.json index ebc2622..aff4029 100644 --- a/charts/azimuth-chat/values.schema.json +++ b/charts/azimuth-chat/values.schema.json @@ -40,7 +40,7 @@ "type": "string", "title": "Backend vLLM version", "description": "The vLLM version to use as a backend. Must be a version tag from [this list](https://github.com/vllm-project/vllm/tags)", - "default": "v0.6.3" + "default": "v0.7.2" } } } diff --git a/charts/azimuth-image-analysis/values.schema.json b/charts/azimuth-image-analysis/values.schema.json index f4eca39..a20a1e0 100644 --- a/charts/azimuth-image-analysis/values.schema.json +++ b/charts/azimuth-image-analysis/values.schema.json @@ -36,7 +36,7 @@ "type": "string", "title": "Backend vLLM version", "description": "The vLLM version to use as a backend. Must be a version tag from [this list](https://github.com/vllm-project/vllm/tags)", - "default": "v0.6.3" + "default": "v0.7.2" } } },