Skip to content

Migrate Spring update workflows to azure-sdk-for-java#49686

Open
rujche wants to merge 21 commits into
mainfrom
rujche/main/move-some-github-actions-to-current-repo
Open

Migrate Spring update workflows to azure-sdk-for-java#49686
rujche wants to merge 21 commits into
mainfrom
rujche/main/move-some-github-actions-to-current-repo

Conversation

@rujche

@rujche rujche commented Jul 1, 2026

Copy link
Copy Markdown
Member

Description

Follow-up of Azure/spring-cloud-azure-tools#55.

What this PR does

  • Migrates Spring automation workflows into 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.yml
  • Adds Spring helper scripts under sdk/spring/scripts/ for:
    • generating target Spring versions and PR description content,
    • regenerating the Spring support matrix.
  • Hardens workflows and scripts based on review feedback:
    • use fixed action tags,
    • improve shell safety and output handling,
    • avoid unsafe template-literal interpolation for release-note content,
    • make branch-dispatch behavior work with scripts on the PR branch while still creating update branches from origin/main.

Not completed yet / follow-up items

  • Update Spring Cloud Azure Support File latest run failed at Create Pull Request:

  • Update Spring Dependencies latest run finished successfully, but update/PR steps were skipped because no GA upgrade target was detected:

  • Test Spring Boot RC Version latest run finished successfully, but RC-specific update/PR steps were skipped because no RC target was detected:

    • Run: https://github.com/Azure/azure-sdk-for-java/actions/runs/28496303691
    • Skipped: Generate spring_boot_managed_external_dependencies.txt, Update external_dependencies.txt, Update Versions, Update ChangeLog, Push Commit, Create Pull Request, Comment on Pull Request
    • Current upstream Spring metadata does not expose an active 4.x RC release, so the workflow exits via No RC version, cancel update!.
  • Required follow-up before automation can fully complete PR creation paths:

    • Enable repository/org Actions setting: Workflow permissions = Read and write and Allow GitHub Actions to create and approve pull requests.
    • Re-run workflows after permissions are enabled; re-run RC workflow again when a valid 4.x RC release is available.

Copilot AI review requested due to automatic review settings July 1, 2026 04:49
@rujche rujche requested review from a team, Netyyyy, moarychan and saragluna as code owners July 1, 2026 04:49
@rujche rujche self-assigned this Jul 1, 2026
@github-actions github-actions Bot added the azure-spring All azure-spring related issues label Jul 1, 2026
@rujche rujche moved this to In Progress in Spring Cloud Azure Jul 1, 2026
@rujche rujche added this to the 2026-07 milestone Jul 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.txt and 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 thread sdk/spring/scripts/generate_spring_cloud_azure_support_file.py
Comment thread sdk/spring/scripts/generate_spring_versions_and_pr_description.py
Comment thread .github/workflows/update-spring-cloud-azure-support-file.yml Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.

Comment thread sdk/spring/scripts/generate_spring_versions_and_pr_description.py Outdated
Comment thread sdk/spring/scripts/generate_spring_cloud_azure_support_file.py Outdated
Comment thread .github/workflows/update-spring-dependencies.yml Outdated
Comment thread .github/workflows/update-spring-dependencies.yml
Comment thread .github/workflows/update-spring-cloud-azure-support-file.yml
Comment thread .github/workflows/test-spring-boot-rc-version.yml

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Comment thread sdk/spring/scripts/generate_spring_versions_and_pr_description.py Outdated
Comment thread sdk/spring/scripts/generate_spring_versions_and_pr_description.py
Comment thread .github/workflows/test-spring-boot-rc-version.yml

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Comment thread .github/workflows/update-spring-dependencies.yml Outdated
Comment thread .github/workflows/test-spring-boot-rc-version.yml Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/update-spring-cloud-azure-support-file.yml

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.

Comment thread .github/workflows/update-spring-dependencies.yml Outdated
Comment thread .github/workflows/test-spring-boot-rc-version.yml Outdated
Comment thread .github/workflows/test-spring-boot-rc-version.yml
Comment thread .github/workflows/test-spring-boot-rc-version.yml Outdated
Comment thread sdk/spring/scripts/generate_spring_versions_and_pr_description.py
Comment thread sdk/spring/scripts/generate_spring_cloud_azure_support_file.py

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Comment thread sdk/spring/scripts/generate_spring_versions_and_pr_description.py Outdated
Comment thread sdk/spring/scripts/generate_spring_cloud_azure_support_file.py
Comment thread .github/workflows/update-spring-cloud-azure-support-file.yml Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Comment thread sdk/spring/scripts/generate_spring_cloud_azure_support_file.py Outdated
Comment thread .github/workflows/update-spring-dependencies.yml
Comment thread .github/workflows/update-spring-cloud-azure-support-file.yml

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

azure-spring All azure-spring related issues

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants