Skip to content

Refresh UpdateSdkManTest fixtures after SDKMAN CSV update#1073

Merged
steve-aom-elliott merged 1 commit intomainfrom
fix/sdkman-test-fixtures
Apr 27, 2026
Merged

Refresh UpdateSdkManTest fixtures after SDKMAN CSV update#1073
steve-aom-elliott merged 1 commit intomainfrom
fix/sdkman-test-fixtures

Conversation

@steve-aom-elliott
Copy link
Copy Markdown
Contributor

Summary

Today's auto-update of sdkman-java.csv (commit 9664adb, "[Auto] SDKMAN! Java candidates as of 2026-04-27T1141") removed several patch versions that UpdateSdkManTest had hard-coded, breaking three tests on main:

Test Was Now
updateVersionExact 17.0.18-tem 17.0.19-tem
updateDistributionOnly 11.0.30-tem11.0.30-amzn 11.0.31-zulu11.0.31-amzn
upgradeIfNewVersionIsStillSameVersionBasisAndDifferentDistribution 23.0.1-open23.0.2-amzn 21.0.10-jbr21.0.11-tem

The pairs were chosen to keep demonstrating the same recipe behavior (exact-version pin, distribution-only swap, and major-pinned upgrade across distributions) using versions present in the current CSV.

Test plan

  • ./gradlew test --tests UpdateSdkManTest.updateVersionExact --tests UpdateSdkManTest.updateDistributionOnly --tests UpdateSdkManTest.upgradeIfNewVersionIsStillSameVersionBasisAndDifferentDistribution passes locally

The 2026-04-27 auto-update of sdkman-java.csv removed several
patch versions that the test fixtures hard-coded:

- 17.0.18-tem → only 17.0.19-tem now ships
- 11.0.30-amzn → only 11.0.31-amzn now ships
- 23.0.1-open and 23.0.2-amzn → no Java 23 entries remain

Update the three failing tests to use versions present in the
current CSV, choosing pairs that still demonstrate the same
recipe behavior.
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Apr 27, 2026
@steve-aom-elliott steve-aom-elliott moved this from In Progress to Ready to Review in OpenRewrite Apr 27, 2026
@steve-aom-elliott steve-aom-elliott merged commit 83f0156 into main Apr 27, 2026
1 check passed
@steve-aom-elliott steve-aom-elliott deleted the fix/sdkman-test-fixtures branch April 27, 2026 19:22
@github-project-automation github-project-automation Bot moved this from Ready to Review to Done in OpenRewrite Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant