The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
revert: drop the collection gate and keep the import fix
Yuneng Jiang79cdcbf6c633
diff --git a/.github/workflows/test-code-quality.yml b/.github/workflows/test-code-quality.ymlindex 58809e1ef29..987f66773f2 100644--- a/.github/workflows/test-code-quality.yml+++ b/.github/workflows/test-code-quality.yml@@ -83,9 +83,6 @@ jobs:- name: test_e2e_changed_gaterun: uv run --no-sync pytest -q --noconftest -p no:cacheprovider -c /dev/null tests/code_coverage_tests/test_e2e_changed_gate.py tests/code_coverage_tests/test_e2e_idp_stack.py- - name: test_integration_suite_imports- run: uv run --no-sync pytest -q --noconftest -p no:cacheprovider -c /dev/null tests/code_coverage_tests/test_integration_suite_imports.py-- name: router_code_coveragerun: uv run --no-sync python ./tests/code_coverage_tests/router_code_coverage.pydiff --git a/tests/code_coverage_tests/test_integration_suite_imports.py b/tests/code_coverage_tests/test_integration_suite_imports.pydeleted file mode 100644index 246dffa6a5d..00000000000--- a/tests/code_coverage_tests/test_integration_suite_imports.py+++ /dev/null@@ -1,66 +0,0 @@-from __future__ import annotations--import os-import re-import subprocess-import sys-from pathlib import Path-from typing import Final--import pytest--REPO_ROOT: Final = Path(__file__).resolve().parents[2]-INTEGRATION_ROOT: Final = REPO_ROOT / "tests" / "integration"-COLLECTION_SUMMARY: Final = re.compile(- r"^(?P<collected>\d+) tests? collected(?:, (?P<errors>\d+) errors?)?", re.MULTILINE-)---def _integration_test_files() -> tuple[Path, ...]:- return tuple(sorted(INTEGRATION_ROOT.rglob("test_*.py")))---def _collect_without_injected_pythonpath(target: str) -> subprocess.CompletedProcess[str]:- env: Final = {key: value for key, value in os.environ.items() if key != "PYTHONPATH"}- return subprocess.run(- (sys.executable, "-m", "pytest", target, "--collect-only", "-q", "-p", "no:cacheprovider"),- cwd=REPO_ROOT,- env=env,- capture_output=True,- text=True,- check=False,- )---def _assert_collected(result: subprocess.CompletedProcess[str], target: str) -> None:- # Both a healthy collection and a failed import exit 4 here, because conftest.py's- # CircleCI-ownership guard fires under GITHUB_ACTIONS; only the summary separates them.- match: Final = COLLECTION_SUMMARY.search(result.stdout)- assert match is not None, (- f"{target} never reached a collection summary, so its imports did not resolve\n"- f"{result.stdout}\n{result.stderr}"- )- assert int(match.group("collected")) > 0, (- f"{target} collected nothing, so nothing was verified\n{result.stdout}"- )- # One broken file among many still reports a count: "83 tests collected, 1 error".- assert match.group("errors") is None, (- f"{target} reported {match.group('errors')} collection error(s)\n{result.stdout}\n{result.stderr}"- )---def test_the_integration_suite_still_has_files_to_guard() -> None:- assert _integration_test_files()--- "target",- [str(path.relative_to(REPO_ROOT)) for path in _integration_test_files()],-)-def test_each_integration_file_collects_the_way_its_docs_document_it(target: str) -> None:- _assert_collected(_collect_without_injected_pythonpath(target), target)---def test_the_whole_integration_directory_collects_without_an_injected_pythonpath() -> None:- target: Final = "tests/integration"- _assert_collected(_collect_without_injected_pythonpath(target), target)