mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-27 01:22:18 +00:00
Wrap the pytest call in run_daily.sh in `env -i` with the same minimal allowlist the PR-gate already uses, mirroring the CircleCI step. The systemd EnvironmentFile injects ANTHROPIC_API_KEY / AWS_BEARER_TOKEN_BEDROCK / VERTEXAI_* / AZURE_FOUNDRY_* / AGENT_SHIN_GITHUB_TOKEN / GITHUB_TOKEN into the script for the proxy to consume; pytest inherits them by default but only needs the loopback proxy URL/key. Scrubbing them closes two paths: PR-controlled test code reading them out of os.environ, and model-directed Read tool calls reaching /proc/<pytest-pid>/environ during PDF/vision cells. Add a pin test mirroring the existing version-probe one. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_run_daily_pytest_scrubs_env.py | ||
| test_run_daily_release_pagination.py | ||
| test_run_daily_version_probe_scrubs_env.py | ||
| test_systemd_unit_credential_isolation.py | ||