Repository navigation
test(security): pin the What's new catalog local in the canary egress rig - #45925
Merged
Merged
Conversation
… rig Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Contributor
|
bugbot run |
Contributor
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 67d02db. Configure here.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TLDR
Problem this solves:
mainat 5390199 in pipeline 91141, green in the scheduled pipeline 91130canary_rigtest fails withOwned proxy tried to reach external hosts: [b'CONNECT raw.githubusercontent.com:443 HTTP/1.1']How it solves it:
LOCAL_CATALOGSintests/integration/security/_sinks.pynow also setsLITELLM_LOCAL_WHATS_NEW, next to the cost map, blog posts, beta headers, auto-router presets and policy templatesCulprit is 55c8997 (#45912). It added
get_whats_new, which fetcheswhats_new.jsonfrom raw.githubusercontent.com unlessLITELLM_LOCAL_WHATS_NEWis true, and serves the bundled file on failure. The canary rig routes owned proxies through an egress trap and asserts no external host was contacted, so the new remote catalog trips that check on every rig. The rig already pins each sibling remote catalog to its bundled copy, so pinning this one keeps the egress assertion as strict as beforeFailing test ids include
tests/integration/security/test_config_deployment_key.py::test_config_deployment_api_key_reaches_only_the_provider,tests/integration/security/test_stored_config_slots.py::test_master_key_from_env_authorizes_admin_calls_only,tests/integration/security/test_passthrough_slots.py::test_upstream_credential_reaches_only_its_upstream,tests/integration/security/test_mcp_slots.py::test_mcp_credential_reaches_only_its_peerandtests/integration/security/test_callback_credentials.pycasesUser Flow
Before: a maintainer reading CircleCI on
mainseesintegration-securityredmainintegration-securityshows every canary test failing on raw.githubusercontent.com egressAfter: the same job is green again
integration-securitypasses and the egress assertion still guards every rigPre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
uv run pytest tests/unit/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more@greptileaito re-request a review after pushing changes)Delays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
Screenshots / Proof of Fix
This is a test-only fix, so the proof is the red CircleCI job passing on this branch
Before (5390199)
mainpipeline 91141 has integration-security 2256856 red on the egress assertionAfter (67d02db)
integration-accounting-coveragefailed once on 91142 and passed on rerunType
✅ Test
Caveats (if any)
Medium
main,test_lazy_routes_flag.py, the megabyte endpoint timing and hosted vLLMpredicate_rejectedtests, bedrock guardrail attachments, gemini stream scope, ande2e_ui_testingtest_concurrent_team_model_tpm_requests_reserve_tokens_before_reaching_the_providerhits a 429 race inintegration-providers, which is also red onmain91141 from the megabyte timing testFinal Attestation