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:
Cursor Agent 2026-05-17 07:04:49 +00:00
parent b24059a92f
commit c432c8d937
No known key found for this signature in database
2 changed files with 5 additions and 0 deletions

View file

@ -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

View file

@ -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