Repository navigation
test(bedrock): expect an authentication error when the AWS profile is missing in the bearer token test - #54044
Merged
mateo-berri merged 1 commit intoNov 24, 2026
Conversation
… missing in the bearer token test Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
mateo-berri
enabled auto-merge (squash)
November 24, 2026 03:11
Contributor
PR overviewNo security issues were found in this pull request. Reviews
|
mateo-berri
deleted the
litellm_flakeheal_20261123_test_bearer_only_sdk_sync_async_requests_do
branch
November 24, 2026 03:17
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.
Handwritten 1-3 sentence description
An integration test for Bedrock bearer tokens has failed in the last two scheduled runs on main because it still expected a missing AWS profile to come back as a connection error. Since #53362 the gateway reports that case as an authentication error on purpose, so callers stop retrying a login problem. The test now expects the authentication error, with the same message check and no product change
Details
Link to Devin session: https://app.devin.ai/sessions/45b545a61eaf40c9945d955acf8478cb
Open in Devin Desktop: https://app.devin.ai/desktop/session/45b545a61eaf40c9945d955acf8478cb?variant=devin
Requested by: @mateo-berri
TLDR
Problem this solves:
test_bearer_only_sdk_sync_async_requests_do_not_require_aws_credentialsfailed 2 of the last 2 scheduledintegrationrunsAuthenticationError(401) on purposeAPIConnectionErrorHow it solves it:
litellm.AuthenticationErrorwith the sameconfig profile .* could not be foundmatchRelevant issues
Failing job: https://github.com/BerriAI/litellm/actions/runs/45303623789/job/138141974988
The first red scheduled run is at 0aa3a92, the first one that contains #53362 (9a09c65). The run before it at 5fc0c58 is green
Screenshots / Proof of Fix
E2E exception at 0eb9dab: test-only change to one expected exception class, run on the local integration rig (Postgres, Redis, owned services per worker, no retries) with
INTEGRATION_WORKERS=2 uv run --no-sync python tests/integration/run.py providers <node>, the fewest workers at which the runner starts its own services1 failed, with the CI error above1 passed, five runs in a rowtests/integration/providers/test_bedrock_auth_wire.py:3 passed_map_aws_credential_errortemporarily disabled, the test fails withlitellm.APIConnectionError; revertedType
✅ Test