mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-22 00:31:44 +00:00
fix: clear manifest cache between sessions and align PR gate pytest with cron
- Clear _manifest_feature_ids LRU cache in pytest_sessionstart so manifest changes between pytest.main() invocations within the same process are picked up, preventing silent result drops. - Add --ignore flags for the internal _*_unit_tests/ subdirectories to the Claude Code compat PR gate CircleCI job to match the cron run_daily.sh pytest invocation. Co-authored-by: Yassin Kortam <yassin@berri.ai>
This commit is contained in:
parent
b24059a92f
commit
c432c8d937
2 changed files with 5 additions and 0 deletions
|
|
@ -2372,6 +2372,10 @@ jobs:
|
|||
export LITELLM_PROXY_API_KEY="sk-1234"
|
||||
mkdir -p test-results
|
||||
uv run --no-sync python -m pytest -vv tests/claude_code/ \
|
||||
--ignore=tests/claude_code/_driver_unit_tests \
|
||||
--ignore=tests/claude_code/_builder_unit_tests \
|
||||
--ignore=tests/claude_code/_publisher_unit_tests \
|
||||
--ignore=tests/claude_code/_pr_gate_unit_tests \
|
||||
--junitxml=test-results/junit.xml \
|
||||
--durations=10
|
||||
no_output_timeout: 30m
|
||||
|
|
|
|||
|
|
@ -450,6 +450,7 @@ def pytest_sessionstart(session):
|
|||
the controller while it's wiping the directory.
|
||||
"""
|
||||
_COLLECTOR.items.clear()
|
||||
_manifest_feature_ids.cache_clear()
|
||||
|
||||
if _is_xdist_worker(session):
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue