This commit is contained in:
Mateo Wang 2026-10-19 02:45:07 +00:00 • committed by GitHub
commit 184c32903c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View file

@ -34,7 +34,7 @@ def langfuse_vars(audit_sinks: SpanSinks) -> dict[str, JsonValue]:
return langfuse_callback_variables(audit_sinks)
@pytest.fixture(scope="session")
@pytest.fixture(scope="module")
def capped(tmp_path_factory: pytest.TempPathFactory) -> Iterator[CapRig]:
"""A two-worker proxy capped at three series per metric, with three keys already holding a series each."""
with series_cap_rig(

View file

@ -305,12 +305,12 @@ class RigFactory:
yield Rig(owned.gateway, owned, model, self.provider, self.sink)
@pytest.fixture(scope="session")
@pytest.fixture(scope="module")
def rig(provider: Wire, collector: Collector, tmp_path_factory: pytest.TempPathFactory) -> Iterator[Rig]:
yield from RigFactory(provider, collector, tmp_path_factory.mktemp("otel"), {}, 2).start()
@pytest.fixture(scope="session")
@pytest.fixture(scope="module")
def generating_rig(provider: Wire, collector: Collector, tmp_path_factory: pytest.TempPathFactory) -> Iterator[Rig]:
factory: Final = RigFactory(
provider, collector, tmp_path_factory.mktemp("otel-generate"), {"missing_session_id": "generate"}, 2
@ -318,7 +318,7 @@ def generating_rig(provider: Wire, collector: Collector, tmp_path_factory: pytes
yield from factory.start()
@pytest.fixture(scope="session")
@pytest.fixture(scope="module")
def two_worker_rig(provider: Wire, collector: Collector, tmp_path_factory: pytest.TempPathFactory) -> Iterator[Rig]:
yield from RigFactory(provider, collector, tmp_path_factory.mktemp("otel-workers"), {}, 2).start()

View file

@ -424,7 +424,7 @@ class RigFactory:
yield Rig(owned.gateway, owned, model, self.provider, self.sink, self.tenant_sink)
@pytest.fixture(scope="session")
@pytest.fixture(scope="module")
def rig(
provider: Wire, operator_sink: Collector, tenant_sink: Collector, tmp_path_factory: pytest.TempPathFactory
) -> Iterator[Rig]:
@ -434,7 +434,7 @@ def rig(
yield from factory.start()
@pytest.fixture(scope="session")
@pytest.fixture(scope="module")
def v2_rig(
provider: Wire, operator_sink: Collector, tenant_sink: Collector, tmp_path_factory: pytest.TempPathFactory
) -> Iterator[Rig]: