Skip to content

test: table-drive the request-body quirk matrix - #11

Merged
TheGreatAxios merged 1 commit into
cl-9256-openai-responses-add-env-gated-live-responses-api-testfrom
cl-9254-openai-responses-trim-responsestestts-to-the-quirk-matrix
Sep 27, 2026
Merged

TheGreatAxios merged 1 commit into
cl-9256-openai-responses-add-env-gated-live-responses-api-testfrom
cl-9254-openai-responses-trim-responsestestts-to-the-quirk-matrix

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Replaces the per-quirk request-body tests with one table-driven test over quirk flags, expected body fields, absent fields and the accept header; adds store, instructions, maxOutputTokens and temperature rows.
  • Deletes the OpenAI-shaped usage test, which src/e2e.test.ts already asserts through runInference.
  • Stacked on test: add an opt-in live Responses API test #12.

Verification

  • bun run check (typecheck, lint, format:check, test): 39 pass, 2 skip, 0 fail.
  • bun run build passes.

Closes CL-9254

@TheGreatAxios TheGreatAxios left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Reviewed the full diff. Quirk table covers every boolean/verbatim quirk that shapes the body plus the accept header; deleted cases are asserted in e2e.test.ts (response.created passthrough, cache_write usage split). Edge-case usage clamps and the fully populated mapping stay since e2e does not cover them. No findings.

@TheGreatAxios
TheGreatAxios force-pushed the cl-9254-openai-responses-trim-responsestestts-to-the-quirk-matrix branch from 0eaf109 to f38c6c9 Compare September 25, 2026 06:01
@TheGreatAxios

Copy link
Copy Markdown
Contributor Author

Independent review findings addressed and force-pushed: commit message reworded, unknown-event forward-compat test restored (not covered by e2e). check passes.

@TheGreatAxios
TheGreatAxios force-pushed the cl-9254-openai-responses-trim-responsestestts-to-the-quirk-matrix branch from cc51a94 to 81c6c2a Compare September 25, 2026 17:29
@TheGreatAxios
TheGreatAxios force-pushed the cl-9254-openai-responses-trim-responsestestts-to-the-quirk-matrix branch from 81c6c2a to a9a9f1d Compare September 25, 2026 22:48
@TheGreatAxios
TheGreatAxios changed the base branch from main to cl-9256-openai-responses-add-env-gated-live-responses-api-test September 25, 2026 22:48
@TheGreatAxios TheGreatAxios changed the title test(responses): table-drive the quirk matrix Table-drive the request-body quirk matrix Sep 25, 2026
Collapse the per-quirk request-body tests into one typed table over
quirk flags and expected body fields, adding store, instructions,
maxOutputTokens, and temperature rows. Delete the OpenAI-shaped usage
test, whose cache-write split the end-to-end suite already asserts.
@TheGreatAxios
TheGreatAxios force-pushed the cl-9254-openai-responses-trim-responsestestts-to-the-quirk-matrix branch from a9a9f1d to 1da6b65 Compare September 26, 2026 01:33
@TheGreatAxios TheGreatAxios changed the title Table-drive the request-body quirk matrix test: table-drive the request-body quirk matrix Sep 26, 2026
@TheGreatAxios
TheGreatAxios added this pull request to stack #19 September 26, 2026 01:58
@TheGreatAxios
TheGreatAxios merged commit 0e67683 into main Sep 27, 2026
1 check passed
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