Skip to content

[CI] [AMD] deps: Install openai 2.8.0 in AMD CI for the Responses API - #46774

Merged
michaelzhang-ai merged 1 commit into
sgl-project:mainfrom
michaelzhang-ai:ci-fix/amd-ci-openai-2.8
Oct 27, 2026
Merged

michaelzhang-ai merged 1 commit into
sgl-project:mainfrom
michaelzhang-ai:ci-fix/amd-ci-openai-2.8

Conversation

@michaelzhang-ai

@michaelzhang-ai michaelzhang-ai commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

Since #45254, serving_responses.py imports responses_tools/beam.py at module level, and beam.py uses ResponseFunctionShellToolCall, which only exists in openai>=2.8.0. #45291 moved python/pyproject.toml to 2.8.0 but left pyproject_other.toml at 2.6.1, and AMD CI installs from pyproject_other.toml. On AMD the Responses handler now fails to import at startup:

OpenAI Responses API (/v1/responses) disabled: OpenAIServingResponses init failed (ImportError: cannot import name 'ResponseFunctionShellToolCall' from 'openai.types.responses')

Every /v1/responses request returns 500. TestOpenAIServerv1Responses.test_error in test/registered/openai_server/basic/test_openai_server.py expects 400, so stage-b-test-1-gpu-small-amd fails on main (example job). The same shard passed on main before #45254 landed.

Modifications

scripts/ci/amd/amd_ci_install_dependency.sh installs openai==2.8.0 after the sglang install. This applies to the AMD CI installer only: pyproject_other.toml, the other platforms that use it, and non-CI installs are unchanged. The step can go once pyproject_other.toml moves to 2.8.0.

Test plan

  • stage-b-test-1-gpu-small-amd on rocm10, dispatched on this commit: test_openai_server.py passes, 53 tests OK including TestOpenAIServerv1Responses.test_error (job). Shard 0 of that run lost its self-hosted runner, which is unrelated to this change.

CI States

Latest PR Test (Base): ✅ Run #40470472759
Latest PR Test (Extra): ❌ Run #40470472709
Latest PR Test (AMD ROCm 10): ❌ Run #40470472630

serving_responses.py now imports responses_tools/beam.py at module level
(sgl-project#45254), which needs ResponseFunctionShellToolCall from openai>=2.8.0.
AMD CI installs pyproject_other.toml (openai==2.6.1), so the Responses
handler fails to import and TestOpenAIServerv1Responses.test_error gets
500 instead of 400. Pin openai 2.8.0 in the AMD CI installer only.
@github-actions github-actions Bot added the amd label Oct 27, 2026
@michaelzhang-ai
michaelzhang-ai marked this pull request as ready for review October 27, 2026 09:15
@michaelzhang-ai michaelzhang-ai added the run-ci CI: run the baseline test suite on this PR label Oct 27, 2026

@yctseng0211 yctseng0211 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@michaelzhang-ai
michaelzhang-ai merged commit cb55d77 into sgl-project:main Oct 27, 2026
207 of 225 checks passed
@michaelzhang-ai
michaelzhang-ai deleted the ci-fix/amd-ci-openai-2.8 branch October 27, 2026 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

amd run-ci CI: run the baseline test suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants