Skip to content

build(deps): bump Shadow to 9.2.2 - #904

Merged
dpiet-oai merged 4 commits into
mainfrom
dependabot/gradle/openai-java-proguard-test/com.gradleup.shadow-9.6.1
Sep 24, 2026
Merged

dpiet-oai merged 4 commits into
mainfrom
dependabot/gradle/openai-java-proguard-test/com.gradleup.shadow-9.6.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Reviewed upgrade

Updates Shadow from 8.3.8 to 9.2.2. This supersedes the original Dependabot 9.6.1 target: 9.2.2 supports the existing Gradle 8.12 / JDK 21 build.

  • Preserve the shrinker fixture's non-multi-release manifest behavior. Shadow 9 otherwise adds Multi-Release automatically, exposing versioned Kotlin reflection classes that R8 does not rewrite and causing the existing smoke test to fail.
  • Keep the SDK toolchain and published artifacts unchanged.

Validation: buildSrc tests, Kotlin lint, ProGuard and R8 smoke tests. Compared Shadow 8.3.8 and 9.2.2 fat JAR entries; the upgrade removes module-info and adds the manifest flag, and disabling the latter restores both smoke tests.

Original Dependabot proposal (superseded target)

Bumps com.gradleup.shadow from 8.3.8 to 9.6.1.

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps com.gradleup.shadow from 8.3.8 to 9.6.1.

---
updated-dependencies:
- dependency-name: com.gradleup.shadow
  dependency-version: 9.6.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update java code labels Aug 20, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner August 20, 2026 00:03
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update java code labels Aug 20, 2026
@openai-sdks

openai-sdks Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

OkTest Summary

✅ 236/236 SDK tests passed in 17.519s for Java SDK PR #904.

Test results — 42 files
Test Result Time
tests/chat-completions-complex-body.test.ts ✅ Passed 554ms
tests/chat-completions-create.test.ts ✅ Passed 980ms
tests/chat-completions-stream.test.ts ✅ Passed 550ms
tests/files-content-binary.test.ts ✅ Passed 269ms
tests/files-create-multipart.test.ts ✅ Passed 402ms
tests/files-list-pagination.test.ts ✅ Passed 360ms
tests/initialize-config.test.ts ✅ Passed 279ms
tests/instance-isolation.test.ts ✅ Passed 154ms
tests/models-list.test.ts ✅ Passed 380ms
tests/responses-background-lifecycle.test.ts ✅ Passed 328ms
tests/responses-body-method-errors.test.ts ✅ Passed 586ms
tests/responses-cancel-timeout.test.ts ✅ Passed 283ms
tests/responses-cancel.test.ts ✅ Passed 321ms
tests/responses-compact-retries.test.ts ✅ Passed 308ms
tests/responses-compact.test.ts ✅ Passed 387ms
tests/responses-create-advanced-stream.test.ts ✅ Passed 234ms
tests/responses-create-advanced.test.ts ✅ Passed 1.23s
tests/responses-create-disconnect.test.ts ✅ Passed 1.009s
tests/responses-create-errors.test.ts ✅ Passed 297ms
tests/responses-create-malformed-api-responses.test.ts ✅ Passed 282ms
tests/responses-create-retries.test.ts ✅ Passed 396ms
tests/responses-create-stream-failures.test.ts ✅ Passed 1.695s
tests/responses-create-stream-timeout.test.ts ✅ Passed 227ms
tests/responses-create-stream-wire.test.ts ✅ Passed 6.268s
tests/responses-create-stream.test.ts ✅ Passed 249ms
tests/responses-create-terminal-states.test.ts ✅ Passed 360ms
tests/responses-create-timeout.test.ts ✅ Passed 267ms
tests/responses-create.test.ts ✅ Passed 340ms
tests/responses-delete.test.ts ✅ Passed 359ms
tests/responses-input-items-errors.test.ts ✅ Passed 263ms
tests/responses-input-items-list.test.ts ✅ Passed 329ms
tests/responses-input-items-options.test.ts ✅ Passed 241ms
tests/responses-input-tokens-count-timeout.test.ts ✅ Passed 316ms
tests/responses-input-tokens-count.test.ts ✅ Passed 378ms
tests/responses-malformed-inputs.test.ts ✅ Passed 5.327s
tests/responses-not-found-errors.test.ts ✅ Passed 425ms
tests/responses-parse.test.ts ✅ Passed 593ms
tests/responses-retrieve-retries.test.ts ✅ Passed 331ms
tests/responses-retrieve.test.ts ✅ Passed 352ms
tests/responses-stored-method-errors.test.ts ✅ Passed 1.094s
tests/retry-behavior.test.ts ✅ Passed 3.323s
tests/sdk-error-shape.test.ts ✅ Passed 455ms

View OkTest run #36026579007

SDK merge (58a87b955df1) · head (5484e643b38d) · base (fc188194e7e0) · OkTest (bc2ef6ca05ab)

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: abda53b330

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread openai-java-proguard-test/build.gradle.kts Outdated

@jbeckwith-oai jbeckwith-oai 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.

Overview

This changes the ProGuard/R8 test fixture from Shadow 8.3.8 to 9.6.1. The fat JAR produced by this plugin is a required input to both shrinker compatibility tests, so plugin configuration and archive semantics must remain compatible with the repository Gradle wrapper.

Confirmed Findings

  1. [High] Shadow 9.6.1 is incompatible with Gradle 8.12
    • Location: openai-java-proguard-test/build.gradle.kts:3; wrapper remains gradle/wrapper/gradle-wrapper.properties:3.
    • Why: Shadow 9.5+ requires Gradle 9.2+, but this repository is pinned to Gradle 8.12. Exact-head CI fails during configuration with the missing AdhocComponentWithVariants.addVariantsFromConfiguration(Provider, Action) API, so build, test, API, and runtime jobs cannot run. Failed CI
    • Suggested fix: Keep 8.3.8 or choose a release compatible with Gradle 8.12. Treat 9.6.1 as part of a separately reviewed Gradle 9.2+ migration, including a fat-JAR output comparison for Shadow 9 breaking changes.

Rejected Findings

None.

Residual Risks

None beyond the confirmed build blocker. Requesting changes; this PR must not merge in its current form.

@dpiet-oai dpiet-oai changed the title build(deps): bump com.gradleup.shadow from 8.3.8 to 9.6.1 in /openai-java-proguard-test build(deps): bump Shadow to 9.2.2 Sep 24, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-24T16:21:30.844545Z 5484e64 New commits
🔒 Security Review ✅ Completed 2026-09-24T16:22:25.357869Z 5484e64 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Castiron custom code

✅ No new custom-code files detected.

87 mixed files remain; 0 existing customizations changed.

Compared fc188194e7e0 → 5484e643b38d. Generated baselines verified.

87 existing customizations unchanged
  • openai-java-core/src/main/kotlin/com/openai/models/audio/AudioResponseFormat.kt
  • openai-java-core/src/main/kotlin/com/openai/models/beta/agents/vaults/credentials/CredentialAuth.kt
  • openai-java-core/src/main/kotlin/com/openai/models/beta/agents/vaults/credentials/CredentialAuthCreateParam.kt
  • openai-java-core/src/main/kotlin/com/openai/models/beta/agents/vaults/credentials/CredentialAuthRotateParam.kt
  • openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseStreamEvent.kt
  • openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponsesServerEvent.kt
  • openai-java-core/src/main/kotlin/com/openai/models/chat/completions/ChatCompletionCreateParams.kt
  • openai-java-core/src/main/kotlin/com/openai/models/chat/completions/ChatCompletionMessageFunctionToolCall.kt
  • openai-java-core/src/main/kotlin/com/openai/models/chat/completions/ChatCompletionToolMessageParam.kt
  • openai-java-core/src/main/kotlin/com/openai/models/embeddings/Embedding.kt
  • openai-java-core/src/main/kotlin/com/openai/models/embeddings/EmbeddingCreateParams.kt
  • openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseCreateParams.kt
  • openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseFunctionToolCall.kt
  • openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseFunctionWebSearch.kt
  • openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseInputItem.kt
  • openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseStreamEvent.kt
  • openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseTextConfig.kt
  • openai-java-core/src/main/kotlin/com/openai/models/responses/ResponsesServerEvent.kt
  • openai-java-core/src/main/kotlin/com/openai/models/videos/Video.kt
  • openai-java-core/src/main/kotlin/com/openai/models/webhooks/UnwrapWebhookEvent.kt
  • openai-java-core/src/main/kotlin/com/openai/models/webhooks/WebhookEndpointWithSecret.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/BetaServiceAsync.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/BetaServiceAsyncImpl.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/ImageServiceAsyncImpl.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/ResponseServiceAsync.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/ResponseServiceAsyncImpl.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/SkillServiceAsyncImpl.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/VideoServiceAsyncImpl.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/WebhookServiceAsync.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/WebhookServiceAsyncImpl.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/audio/TranscriptionServiceAsyncImpl.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/beta/agents/SessionServiceAsync.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/beta/agents/SessionServiceAsyncImpl.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/chat/ChatCompletionServiceAsync.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/finetuning/checkpoints/PermissionServiceAsyncImpl.kt
  • openai-java-core/src/main/kotlin/com/openai/services/async/skills/VersionServiceAsyncImpl.kt
  • openai-java-core/src/main/kotlin/com/openai/services/blocking/BetaService.kt
  • openai-java-core/src/main/kotlin/com/openai/services/blocking/BetaServiceImpl.kt
  • openai-java-core/src/main/kotlin/com/openai/services/blocking/ResponseService.kt
  • openai-java-core/src/main/kotlin/com/openai/services/blocking/ResponseServiceImpl.kt

47 more in the full report.

A changed generated baseline means this report cannot reliably identify which handwritten lines changed.

Inspect the custom-code diff

Download the exact patch produced by this run (requires repository access):

gh run download 36026630514 --repo openai/openai-java \
  --name castiron-custom-code-36026630514-1 --dir /tmp/castiron-custom-code-36026630514-1
git apply --stat /tmp/castiron-custom-code-36026630514-1/custom-code.patch
cat /tmp/castiron-custom-code-36026630514-1/custom-code.patch

Or reproduce it from an SDK checkout containing the vendored reporter:

git fetch --no-tags origin fc188194e7e016dfd8dd327d6f855dfe48c08b1c 5484e643b38df1d7f9167b608daa5e46265a31a5
python3 scripts/castiron/custom_code_report.py report \
  --base fc188194e7e016dfd8dd327d6f855dfe48c08b1c \
  --head 5484e643b38df1d7f9167b608daa5e46265a31a5 --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-5484e643b38d
cat /tmp/castiron-custom-code-5484e643b38d/custom-code.patch

This is the current full custom patch for mixed files, not an attribution of only the handwritten lines changed by this PR.

Full report and patch

@markstuart-oai markstuart-oai 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.

Reviewed 5484e643b38df1d7f9167b608daa5e46265a31a5; no remaining actionable findings.

Shadow 9.2.2 supports the existing Gradle 8.12/JDK 21 build. The documented addMultiReleaseAttribute = false option preserves the shrinker fixture’s prior manifest behavior without changing SDK toolchains, published artifacts, or the ProGuard/R8 task wiring. This is a small, direct fix to the earlier compatibility feedback.

Source review included the surrounding Gradle conventions, fixture tests, and Shadow 9.2.2’s implementation. Current CI checks pass; the hosted test log confirms both testProGuard and testR8 executed successfully. I did not run builds or tests locally or independently repeat the reported fat-JAR comparison.

@jbeckwith-oai
jbeckwith-oai dismissed their stale review September 24, 2026 16:34

Re-reviewed current head 5484e64. My original Gradle compatibility finding is fixed: Shadow 9.2.2 supports the unchanged Gradle 8.12 / JDK 21 build. The fixture opts out of automatic Multi-Release manifest inheritance while retaining both shrinker smoke tests. Reviewed the complete one-file change and versioned upstream implementation; 11 static base/head and wiring checks passed. Exact-head CI36026576009 is green, and logs confirm both testProGuard and testR8 executed successfully. No remaining actionable findings; local Gradle/archive comparison was not rerun. Mark and Dan already approved this exact head, so I am withdrawing only my outdated change request instead of duplicating their approvals.

@dpiet-oai
dpiet-oai added this pull request to the merge queue Sep 24, 2026
Merged via the queue into main with commit 09b8c60 Sep 24, 2026
17 checks passed
@dependabot
dependabot Bot deleted the dependabot/gradle/openai-java-proguard-test/com.gradleup.shadow-9.6.1 branch September 24, 2026 17:25
@openai-sdks openai-sdks Bot mentioned this pull request Sep 24, 2026
arimu1 pushed a commit to arimu1/openai-java that referenced this pull request Sep 27, 2026
Automated Release PR
---


##
[4.69.3](openai/openai-java@v4.69.2...v4.69.3)
(2026-09-25)


### Chores

* **api:** document files and uploads error responses
([openai#1081](openai#1081))
([69a4e21](openai@69a4e21))
* **api:** document Responses not-found errors
([openai#1080](openai#1080))
([e8cbf5d](openai@e8cbf5d))


### Build System

* **deps:** bump Maven Publish to 0.34.0
([openai#910](openai#910))
([2cbf22c](openai@2cbf22c))
* **deps:** bump Shadow to 9.2.2
([openai#904](openai#904))
([09b8c60](openai@09b8c60))
* **deps:** upgrade Kotlin declarations together to 2.2.21
([openai#1079](openai#1079))
([465742d](openai@465742d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: openai-sdks[bot] <284451331+openai-sdks[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file java Pull requests that update java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants