From 4806d561ff3c4b0399389c4f75652da2b125c1a3 Mon Sep 17 00:00:00 2001 From: Rujun Chen Date: Mon, 15 Jun 2026 09:12:23 +0800 Subject: [PATCH] Timeline: only list current-major SUPPORTED versions The compatibility tests only run SUPPORTED versions whose Spring Boot major version matches the current one, so derive that major from the 'current' entry and filter the timeline lines accordingly. --- .../update-spring-cloud-azure-support-file.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-spring-cloud-azure-support-file.yml b/.github/workflows/update-spring-cloud-azure-support-file.yml index b7988de..598ee63 100644 --- a/.github/workflows/update-spring-cloud-azure-support-file.yml +++ b/.github/workflows/update-spring-cloud-azure-support-file.yml @@ -57,7 +57,16 @@ jobs: cd azure-sdk-for-java TODAY=$(date +%Y-%m-%d) TIMELINE_FILE=docs/spring/Spring-Cloud-Azure-Timeline.md - SUPPORTED_LINES=$(jq -r '.[] | select(.supportStatus == "SUPPORTED") | " - spring-boot-dependencies:\(.["spring-boot-version"]) and spring-cloud-dependencies:\(.["spring-cloud-version"])."' sdk/spring/pipeline/spring-cloud-azure-supported-spring.json) + # The compatibility tests only run the SUPPORTED versions whose Spring Boot + # major version matches the current one (see compatibility_update_supported_version_matrix_json.py), + # so only list those here. + SUPPORTED_LINES=$(jq -r ' + (map(select(.current == true)) | .[0]["spring-boot-version"] | split(".")[0]) as $major + | .[] + | select(.supportStatus == "SUPPORTED") + | select(.["spring-boot-version"] | startswith($major + ".")) + | " - spring-boot-dependencies:\(.["spring-boot-version"]) and spring-cloud-dependencies:\(.["spring-cloud-version"])." + ' sdk/spring/pipeline/spring-cloud-azure-supported-spring.json) NEW_ENTRY=$(printf ' - **%s**: In "java - spring - compatibility - tests" pipeline, run unit tests:\n%s' "$TODAY" "$SUPPORTED_LINES") awk -v entry="$NEW_ENTRY" ' { print }