The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
hotfix(openai): skip Codex live integration tests in CI (#38124)
Mason Daugherty454e19588c02
diff --git a/libs/partners/openai/tests/integration_tests/chat_models/conftest.py b/libs/partners/openai/tests/integration_tests/chat_models/conftest.pyindex 17f66be204..1c48ff7c5f 100644--- a/libs/partners/openai/tests/integration_tests/chat_models/conftest.py+++ b/libs/partners/openai/tests/integration_tests/chat_models/conftest.py@@ -15,6 +15,7 @@ leaves non-Codex tests in the directory untouched.from __future__ import annotations+import osfrom datetime import datetime, timedelta, timezonefrom typing import Any@@ -61,6 +62,17 @@ def _vcr_record_mode(config: pytest.Config) -> str | None:return None[email protected](autouse=True)+def _skip_codex_live_ci(request: pytest.FixtureRequest) -> None:+ """Skip Codex tests in CI unless they are replaying VCR cassettes."""+ if "codex" not in request.module.__name__:+ return+ if _vcr_record_mode(request.config) == "none":+ return+ if os.getenv("CI"):+ pytest.skip("Codex tests require VCR playback in CI.")++@pytest.fixture(autouse=True)def _fake_codex_oauth_token(request: pytest.FixtureRequest, monkeypatch: pytest.MonkeyPatch