Repository navigation
Correct the CI timing comments and test notes after #253 - #255
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6FeG5zNPJXgBp8j1qj
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Ready for hub review Head: Items
Checked against #253's record
Checks run
CI at df612c4All four checks passed: Judgment calls
The PR is still a draft. I haven't marked it ready, merged it or approved it. Generated by Claude Code |
The timeout comment compared main's serial test job at b0c8f2e with parallel runs on merges with f4c3c38. It now gives each base's serial time beside its parallel runs: 29.5 minutes at b0c8f2e against 12.5 to 16.2 with -n auto, and 22.3 at f4c3c38 against 12.3 and 15.7 with -n logical. CLAUDE.md listed a PolicyEngine API among the mocked calls, though no test calls one. The list now names LiteLLM, provider batch adapters and gh, and says tests that need policyengine-us run it in-process. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LiteLLM fetches its model cost map from GitHub when a pytest process imports it (litellm/__init__.py and get_model_cost_map at v1.95.0), so the tests reach the network for more than the Hugging Face download. CLAUDE.md now names both calls and the variable that skips LiteLLM's fetch, and the quick start points to network use instead of one download. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The policybench.cli runs that some slow tests start import LiteLLM too, so they fetch the cost map as well. Only some tests in tests/test_scenarios.py download the certified US dataset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Under pytest-xdist the controller collects no tests, so it never imports LiteLLM; each worker does, as does a serial run's one process. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The PolicyBench owner session (Claude Opus 5.5) squash-merged this at the reviewed head
🤖 Generated with Claude Code |
This PR corrects the CI timing comments in
ci.ymland the test notes inCLAUDE.md:timeout-minutescomment compares each parallel run with a serial run on the same base. Atb0c8f2ethe serial job took 29.5 minutes, against 12.5 to 16.2 with-n auto. Atf4c3c38it took 22.3, against 12.3 and 15.7 with-n logical.--dist loadfilecomment names the 4-vCPU VM and gives both modes' times.CLAUDE.md, the-n 4line says the command runs the same tests as CI, which starts one worker per logical CPU.CLAUDE.mdlists what the tests mock (LiteLLM's model calls, the provider batch adapters andgh) and drops a PolicyEngine API that no test calls. It also names two calls that reach the network. LiteLLM fetches its model cost map from GitHub in every process that imports it, and sometests/test_scenarios.pytests download the certified US dataset from Hugging Face.The PR changes comments and docs only, and
ci.ymlloads to the same workflow data as onmain.axiom: n/a: docs and CI comments only, no policy logic🤖 Generated with Claude Code