fix(e2e): use uv run for import test Python scripts#845
Merged
jesseturner21 merged 3 commits intomainfrom Apr 14, 2026
Merged
Conversation
The pinned boto3==1.38.0 did not include the bedrock-agentcore-control service model, causing import-resources e2e tests to fail with UnknownServiceError. Using latest boto3 ensures new AWS services are always available.
The import e2e tests call python3 directly to run setup scripts that use boto3. On CI runners, the system-installed boto3 is too old to include the bedrock-agentcore-control service model. pip install boto3 installs to user site-packages which the child process doesn't pick up. Switch to uv run --with boto3 python3 so the scripts always get a current boto3 in an isolated environment. Remove the now-unnecessary pip install step from the workflow.
Contributor
Package TarballHow to installnpm install https://github.com/aws/agentcore-cli/releases/download/pr-845-tarball/aws-agentcore-0.8.0.tgz |
Contributor
Coverage Report
|
vivdalal
approved these changes
Apr 14, 2026
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.
Summary
python3calls withuv run --with boto3 python3in the import e2e testspip install boto3step from the full e2e workflow (no longer needed)/usr/lib/python3/dist-packages/that doesn't includebedrock-agentcore-control.pip install boto3installs to user site-packages which the spawnedpython3child process ignores.uv run --with boto3creates an isolated env with the correct version.Test plan
uv run --with 'boto3==1.38.0' python3 -c "import boto3; boto3.client('bedrock-agentcore-control')"→UnknownServiceErroruv run --with boto3 python3 -c "import boto3; boto3.client('bedrock-agentcore-control')"→ success