-
Notifications
You must be signed in to change notification settings - Fork 241
feat(support): establish Java support policy and retire the Spring Boot 2 starter #820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7849291
ci: enforce Java version support policy
jbeckwith-oai 2b2a928
fix(ci): fail on invalid version support properties
jbeckwith-oai 5e5a2b8
fix(ci): gate releases on full runtime matrix
jbeckwith-oai 9f36ea1
fix(test): prevent SLF4J stderr races
jbeckwith-oai f2e1116
fix(build): enforce artifact-specific Java policy
jbeckwith-oai d0b1a1e
fix(release): freeze Spring Boot 2 starter
jbeckwith-oai 531eb7c
test(build): run policy tests in CI
jbeckwith-oai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| # Exercises representative consumer entry points on every supported JVM. It runs nightly to catch | ||
| # ecosystem drift and is reusable so automated and manual publications are gated by the same matrix. | ||
| name: Runtime compatibility | ||
|
|
||
| on: | ||
| workflow_call: | ||
| schedule: | ||
| - cron: '0 7 * * *' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: runtime-compatibility-${{ github.ref }} | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| version_support_matrix: | ||
| name: Runtime compatibility / version support matrix | ||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 5 | ||
|
|
||
| outputs: | ||
| runtime-matrix: ${{ steps.matrix.outputs.runtime-matrix }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Set up Java | ||
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 | ||
| with: | ||
| distribution: temurin | ||
| java-version: 21 | ||
|
|
||
| - name: Set up Gradle | ||
| uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # v5.0.2 | ||
|
|
||
| - name: Read version support policy | ||
| id: matrix | ||
| run: | | ||
| ./scripts/gradle generateVersionSupportMatrix -PversionSupportMatrix=full | ||
| echo "runtime-matrix=$(< build/version-support-matrix.json)" >> "$GITHUB_OUTPUT" | ||
|
|
||
| runtime_compatibility: | ||
| name: Runtime compatibility / Java ${{ matrix.java }} | ||
| needs: version_support_matrix | ||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 20 | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| java: ${{ fromJSON(needs.version_support_matrix.outputs.runtime-matrix) }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Set up consumer Java | ||
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 | ||
| with: | ||
| distribution: temurin | ||
| java-version: ${{ matrix.java }} | ||
|
|
||
| - name: Set up build Java | ||
| uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 | ||
| with: | ||
| distribution: temurin | ||
| java-version: 21 | ||
|
|
||
| - name: Set up Gradle | ||
| uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # v5.0.2 | ||
|
|
||
| - name: Run consumer compatibility smoke test | ||
| run: >- | ||
| ./scripts/gradle | ||
| :openai-java-runtime-compatibility:runRuntimeCompatibility | ||
| -PruntimeJavaVersion=${{ matrix.java }} | ||
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.