Migrate Spring update workflows to azure-sdk-for-java#49686
Open
rujche wants to merge 21 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates Spring dependency update automation (previously in spring-cloud-azure-tools) into azure-sdk-for-java by adding GitHub Actions workflows and helper scripts to generate version metadata, update dependency pins, and refresh the Spring compatibility support matrix.
Changes:
- Added a nightly workflow to detect new Spring Boot GA releases, update
external_dependencies.txtand versions, and open a PR. - Added workflows/scripts to regenerate
spring-cloud-azure-supported-spring.json(and update the Spring timeline doc) and to create a draft PR for testing Spring Boot RC releases. - Introduced two Python generators to fetch Spring metadata/Initializr compatibility info and emit workflow inputs (versions + PR body snippets).
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| sdk/spring/scripts/generate_spring_versions_and_pr_description.py | New generator for Spring versions + PR description (release notes) used by update workflows. |
| sdk/spring/scripts/generate_spring_cloud_azure_support_file.py | New generator for spring-cloud-azure-supported-spring.json based on Spring metadata and Initializr compatibility. |
| .github/workflows/update-spring-dependencies.yml | Nightly workflow to update Spring dependency pins and open a PR (GA-only). |
| .github/workflows/update-spring-cloud-azure-support-file.yml | Nightly workflow to regenerate Spring support JSON, update timeline, and open a PR if changes exist. |
| .github/workflows/test-spring-boot-rc-version.yml | Manual workflow to generate a draft PR for validating Spring Boot RC versions. |
Comment on lines
+29
to
+31
| - name: Generate Spring Cloud Azure Support File | ||
| run: | | ||
| python ./sdk/spring/scripts/generate_spring_cloud_azure_support_file.py --include-rc |
| raise SystemExit(0) | ||
|
|
||
| with matrix_path.open("w", encoding="utf-8") as f: | ||
| json.dump(entries, f, indent=2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Follow-up of Azure/spring-cloud-azure-tools#55.
What this PR does
azure-sdk-for-java:.github/workflows/update-spring-cloud-azure-support-file.yml.github/workflows/update-spring-dependencies.yml.github/workflows/test-spring-boot-rc-version.ymlsdk/spring/scripts/for:origin/main.Not completed yet / follow-up items
Update Spring Cloud Azure Support Filelatest run failed at Create Pull Request:Create Pull RequestComment on Pull Request403: not permitted to create or approve pull requests).Update Spring Dependencieslatest run finished successfully, but update/PR steps were skipped because no GA upgrade target was detected:Generate spring_boot_managed_external_dependencies.txt,Update external_dependencies.txt,Update Versions,Update ChangeLog,Push Commit,Create Pull Request,Comment on Pull RequestTest Spring Boot RC Versionlatest run finished successfully, but RC-specific update/PR steps were skipped because no RC target was detected:Generate spring_boot_managed_external_dependencies.txt,Update external_dependencies.txt,Update Versions,Update ChangeLog,Push Commit,Create Pull Request,Comment on Pull RequestNo RC version, cancel update!.Required follow-up before automation can fully complete PR creation paths:
Workflow permissions = Read and writeandAllow GitHub Actions to create and approve pull requests.