test(groq,openai): add retries for flaky tests (#33914)

This commit is contained in:
Mason Daugherty
2025-11-10 10:36:11 -05:00
committed by GitHub
parent 733299ec13
commit 69c7d1b01b
4 changed files with 26 additions and 5 deletions

View File

@@ -1134,6 +1134,7 @@ def test_o1_stream_default_works() -> None:
assert len(result) > 0
@pytest.mark.flaky(retries=3, delay=1)
def test_multi_party_conversation() -> None:
llm = ChatOpenAI(model="gpt-5-nano")
messages = [

View File

@@ -1,5 +1,5 @@
version = 1
revision = 2
revision = 3
requires-python = ">=3.10.0, <4.0.0"
resolution-markers = [
"python_full_version >= '3.13' and platform_python_implementation == 'PyPy'",
@@ -544,7 +544,7 @@ wheels = [
[[package]]
name = "langchain"
version = "1.0.3"
version = "1.0.5"
source = { editable = "../../langchain_v1" }
dependencies = [
{ name = "langchain-core" },
@@ -556,6 +556,7 @@ dependencies = [
requires-dist = [
{ name = "langchain-anthropic", marker = "extra == 'anthropic'" },
{ name = "langchain-aws", marker = "extra == 'aws'" },
{ name = "langchain-azure-ai", marker = "extra == 'azure-ai'" },
{ name = "langchain-community", marker = "extra == 'community'" },
{ name = "langchain-core", editable = "../../core" },
{ name = "langchain-deepseek", marker = "extra == 'deepseek'" },
@@ -565,6 +566,7 @@ requires-dist = [
{ name = "langchain-groq", marker = "extra == 'groq'" },
{ name = "langchain-huggingface", marker = "extra == 'huggingface'" },
{ name = "langchain-mistralai", marker = "extra == 'mistralai'" },
{ name = "langchain-model-profiles", marker = "extra == 'model-profiles'" },
{ name = "langchain-ollama", marker = "extra == 'ollama'" },
{ name = "langchain-openai", marker = "extra == 'openai'", editable = "." },
{ name = "langchain-perplexity", marker = "extra == 'perplexity'" },
@@ -573,7 +575,7 @@ requires-dist = [
{ name = "langgraph", specifier = ">=1.0.2,<1.1.0" },
{ name = "pydantic", specifier = ">=2.7.4,<3.0.0" },
]
provides-extras = ["community", "anthropic", "openai", "google-vertexai", "google-genai", "fireworks", "ollama", "together", "mistralai", "huggingface", "groq", "aws", "deepseek", "xai", "perplexity"]
provides-extras = ["model-profiles", "community", "anthropic", "openai", "azure-ai", "google-vertexai", "google-genai", "fireworks", "ollama", "together", "mistralai", "huggingface", "groq", "aws", "deepseek", "xai", "perplexity"]
[package.metadata.requires-dev]
lint = [{ name = "ruff", specifier = ">=0.12.2,<0.13.0" }]
@@ -606,7 +608,7 @@ typing = [
[[package]]
name = "langchain-core"
version = "1.0.2"
version = "1.0.4"
source = { editable = "../../core" }
dependencies = [
{ name = "jsonpatch" },
@@ -640,6 +642,7 @@ test = [
{ name = "blockbuster", specifier = ">=1.5.18,<1.6.0" },
{ name = "freezegun", specifier = ">=1.2.2,<2.0.0" },
{ name = "grandalf", specifier = ">=0.8.0,<1.0.0" },
{ name = "langchain-model-profiles", directory = "../../model-profiles" },
{ name = "langchain-tests", directory = "../../standard-tests" },
{ name = "numpy", marker = "python_full_version < '3.13'", specifier = ">=1.26.4" },
{ name = "numpy", marker = "python_full_version >= '3.13'", specifier = ">=2.1.0" },
@@ -656,6 +659,7 @@ test = [
]
test-integration = []
typing = [
{ name = "langchain-model-profiles", directory = "../../model-profiles" },
{ name = "langchain-text-splitters", directory = "../../text-splitters" },
{ name = "mypy", specifier = ">=1.18.1,<1.19.0" },
{ name = "types-pyyaml", specifier = ">=6.0.12.2,<7.0.0.0" },
@@ -751,7 +755,7 @@ typing = [
[[package]]
name = "langchain-tests"
version = "1.0.0"
version = "1.0.1"
source = { editable = "../../standard-tests" }
dependencies = [
{ name = "httpx" },