From c432c8d93710bb102754113db4c5d43fc991b45e Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 17 May 2026 07:04:49 +0000 Subject: [PATCH] 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 --- .circleci/config.yml | 4 ++++ tests/claude_code/conftest.py | 1 + 2 files changed, 5 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index fca7cf2fa91..f4b6d2b6b47 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/tests/claude_code/conftest.py b/tests/claude_code/conftest.py index 89bf5bfc529..f819b85a4dd 100644 --- a/tests/claude_code/conftest.py +++ b/tests/claude_code/conftest.py @@ -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