Skip to content

test: restore streaming coverage and remove obsolete disables - #1197

Closed
jbeckwith-oai wants to merge 1 commit into
mainfrom
castiron/promotions/pr-286
Closed

jbeckwith-oai wants to merge 1 commit into
mainfrom
castiron/promotions/pr-286

Conversation

@jbeckwith-oai

@jbeckwith-oai jbeckwith-oai commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Restore Java streaming service coverage by removing 20 obsolete Prism-related test disables. Generated streaming tests validate every received event and require at least one event, so an empty stream can no longer pass silently. Existing agent delta assertions remain intact.

Add SSE response declarations for Completions, Responses retrieval, and Assistants run operations. SDK runtime code, JSON response contracts, and compact schemas remain unchanged.

Validation

Formatting and 95 shared tooling regressions passed. The restored service suite passed before the baseline refresh; current-head public CI reruns the Java tests and compatibility checks before merge.

Castiron-Internal-PR: openai/openai-java-internal#286
Castiron-Source-SHA: 79d4fdb282c05ce76488dd30614a8ad7615566b2
Castiron-Public-Base-SHA: 848ef53
@jbeckwith-oai
jbeckwith-oai marked this pull request as ready for review October 16, 2026 15:38
@jbeckwith-oai
jbeckwith-oai requested a review from a team as a code owner October 16, 2026 15:38
@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Castiron custom code

Evaluated main: 848ef53c94498e795587d571900202ea383601d4.

Trusted main policy: 848ef53c94498e795587d571900202ea383601d4.

✅ No new custom-code files detected.

80 mixed files remain; 4 existing customizations changed; 16 customizations removed.

Compared 848ef53c9449 → 42083d2360b2. Generated baselines verified.

File Result Current custom patch
openai-java-core/src/test/kotlin/com/openai/services/async/CompletionServiceAsyncTest.kt Customization removed None
openai-java-core/src/test/kotlin/com/openai/services/async/ImageServiceAsyncTest.kt Customization removed None
openai-java-core/src/test/kotlin/com/openai/services/async/ResponseServiceAsyncTest.kt Customization removed None
openai-java-core/src/test/kotlin/com/openai/services/async/audio/TranscriptionServiceAsyncTest.kt Customization removed None
openai-java-core/src/test/kotlin/com/openai/services/async/beta/ResponseServiceAsyncTest.kt Customization removed None
openai-java-core/src/test/kotlin/com/openai/services/async/beta/ThreadServiceAsyncTest.kt Customization removed None
openai-java-core/src/test/kotlin/com/openai/services/async/beta/agents/SessionServiceAsyncTest.kt Existing customization changed +10 / −2
openai-java-core/src/test/kotlin/com/openai/services/async/beta/agents/sessions/EventServiceAsyncTest.kt Existing customization changed +20 / −2
openai-java-core/src/test/kotlin/com/openai/services/async/beta/threads/RunServiceAsyncTest.kt Customization removed None
openai-java-core/src/test/kotlin/com/openai/services/async/chat/ChatCompletionServiceAsyncTest.kt Customization removed None
openai-java-core/src/test/kotlin/com/openai/services/blocking/CompletionServiceTest.kt Customization removed None
openai-java-core/src/test/kotlin/com/openai/services/blocking/ImageServiceTest.kt Customization removed None
openai-java-core/src/test/kotlin/com/openai/services/blocking/ResponseServiceTest.kt Customization removed None
openai-java-core/src/test/kotlin/com/openai/services/blocking/audio/TranscriptionServiceTest.kt Customization removed None
openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/ResponseServiceTest.kt Customization removed None
openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/ThreadServiceTest.kt Customization removed None
openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/agents/SessionServiceTest.kt Existing customization changed +9 / −2
openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/agents/sessions/EventServiceTest.kt Existing customization changed +19 / −2
openai-java-core/src/test/kotlin/com/openai/services/blocking/beta/threads/RunServiceTest.kt Customization removed None
openai-java-core/src/test/kotlin/com/openai/services/blocking/chat/ChatCompletionServiceTest.kt Customization removed None
76 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/environments/EnvironmentCreateParams.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/BetaResponse.kt
  • openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseError.kt
  • openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseInjectEvent.kt
  • openai-java-core/src/main/kotlin/com/openai/models/beta/responses/BetaResponseInjectFailedEvent.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/BetaResponseToolSearchOutputItemParam.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/conversations/ConversationCreateParams.kt
  • openai-java-core/src/main/kotlin/com/openai/models/conversations/items/ItemCreateParams.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/live/ResponseItemCreateEvent.kt
  • openai-java-core/src/main/kotlin/com/openai/models/realtime/RealtimeResponseStatus.kt
  • openai-java-core/src/main/kotlin/com/openai/models/responses/Response.kt
  • openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseCreateParams.kt
  • openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseError.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/ResponseToolSearchOutputItemParam.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/videos/VideoCreateError.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

36 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 38925751840 --repo openai/openai-java \
  --name castiron-custom-code-38925751840-1 --dir /tmp/castiron-custom-code-38925751840-1
git apply --stat /tmp/castiron-custom-code-38925751840-1/custom-code.patch
cat /tmp/castiron-custom-code-38925751840-1/custom-code.patch

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

git fetch --no-tags origin 848ef53c94498e795587d571900202ea383601d4 42083d2360b222b94c60e647299f735e91e0e5f4
python3 scripts/castiron/custom_code_report.py report \
  --base 848ef53c94498e795587d571900202ea383601d4 \
  --head 42083d2360b222b94c60e647299f735e91e0e5f4 --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-42083d2360b2
cat /tmp/castiron-custom-code-42083d2360b2/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

@openai-sdks

openai-sdks Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

OkTest Summary

🟡 Running for Java SDK PR #1197.

View OkTest run #38925615092

SDK merge (pending) · head (42083d2360b2) · base (848ef53c9449) · OkTest (34e505148f02)

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 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-10-16T15:42:02.396767Z 42083d2 Draft marked ready
🔒 Security Review ✅ Completed 2026-10-16T15:41:26.839648Z 42083d2 Draft marked ready
ℹ️ 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.

@jbeckwith-oai
jbeckwith-oai marked this pull request as draft October 16, 2026 15:43
@jbeckwith-oai

Copy link
Copy Markdown
Contributor Author

Closing this scope expansion. The Java-only handwritten test extraction is already merged in #1190.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant