Skip to content

Fix OpenAI 3 changes rhoai 3.3 - #716

Merged
jonburdo merged 5 commits into
red-hat-data-services:rhoai-3.3from
jonburdo:fix-openai-3-changes-rhoai-3.3
Sep 10, 2026
Merged

jonburdo merged 5 commits into
red-hat-data-services:rhoai-3.3from
jonburdo:fix-openai-3-changes-rhoai-3.3

Conversation

@jonburdo

@jonburdo jonburdo commented Sep 3, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Describe the change and why it is needed.
  • Link the related Jira or GitHub issue, if applicable.

Upstream / Downstream Impact

  • Downstream-only change for opendatahub-io/mlflow
  • Also affects upstream mlflow/mlflow
  • No upstream impact / not applicable

If relevant, add any upstream issue or follow-up link here:

RHOAIENG-91803

Testing

  • CI
  • Unit tests
  • Manual testing
  • Not run (explain why)

Testing details:

TomeHirata and others added 2 commits September 2, 2026 22:14
openai migrated its HTTP client from httpx (1.x) to httpx2 (2.x, a separate
distribution). Backport master's fix so the lock tests accept either family
for unpinned openai. The openai==1.82.0 constraints test still expects httpx.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Tomu Hirata <tomu.hirata@gmail.com>
Use a version-compatible HTTP mock for OpenAI 1.x/2.x and 3.x.
Select httpx or httpx2 and inject MockTransport through OpenAI's public
http_client interface, avoiding real requests and private SDK fields.

Signed-off-by: Jon Burdo <jon@jonburdo.com>
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

Post-Codefreeze Gatekeeper — FAILED (evaluation)

Advisory only — this check does not block merging. Please review the results before merging.

Target branch: rhoai-3.3
Required Jira version: 3.3 GA RHOAI RELEASE

❌ The following issues were found:

  • No Jira issue found in PR description. Expected format: RHOAIENG-1234, RHAIENG-1234, or AIPCC-1234

After resolving issues, push a commit, re-edit the PR description, or add the run-gatekeeper label to re-trigger this check.

harupy and others added 3 commits September 3, 2026 11:01
This takes the change to:

  mlflow/tracing/processor/inference_table.py

From commit:

  dc391d3

See mlflow#22867

Without this the upgraded opentelemetry-sdk version results in the
following error:

  AttributeError: 'InferenceTableSpanProcessor' object has no attribute '_metrics'

Signed-off-by: Jon Burdo <jon@jonburdo.com>
Signed-off-by: Jon Burdo <jon@jonburdo.com>
Signed-off-by: Jon Burdo <jon@jonburdo.com>

Copilot AI 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.

🟢 Approval recommended

The compatibility fixes are focused, consistent with the affected APIs, and covered by existing tests.

Pull request overview

Updates the RHOAI 3.3 branch for newer OpenAI, OpenTelemetry, and CI dependency behavior.

Changes:

  • Supports OpenAI 3.x’s httpx2 transport.
  • Initializes OpenTelemetry processors correctly.
  • Stabilizes CI networking, dependency constraints, logging assertions, and schema metadata.
File summaries
File Description
tests/tracing/test_otel_logging.py Updates exporter error assertion.
tests/server/auth/test_auth.py Uses explicit IPv4 loopback.
tests/pyfunc/test_model_export_with_class_and_artifacts.py Accepts httpx or httpx2 locks.
tests/genai/utils/test_trace_utils.py Adds version-compatible OpenAI mock transport.
requirements/constraints.txt Pins AnyIO below 4.15.
mlflow/tracing/processor/inference_table.py Calls the parent processor initializer.
mlflow/store/tracking/dbmodels/models.py Aligns constraint metadata with migrations.
Review details
  • Files reviewed: 7/7 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@jonburdo
jonburdo merged commit 247ede3 into red-hat-data-services:rhoai-3.3 Sep 10, 2026
36 of 38 checks passed
@jonburdo
jonburdo deleted the fix-openai-3-changes-rhoai-3.3 branch September 10, 2026 22:44
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.

5 participants