Repository navigation
fix: install awslocal with pipx to avoid distro botocore - #78
Merged
Merged
Conversation
On Ubuntu 26.04 runners, `pip install awscli-local[ver1]` reuses the Debian-packaged botocore, which strips `botocore.vendored`. awscli v1 imports it, so every `awslocal` call crashed and the state/cloud-pod CI jobs failed. Install into an isolated pipx venv when pipx is available, falling back to pip otherwise. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The ephemeral instance for the application preview has been shut down |
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
Scheduled CI on
mainhas failed every week since at least October 11. On the Ubuntu 26.04 runner,pip install awscli-local[ver1]reuses the distro-packagedbotocore, which hasbotocore.vendoredremoved. awscli v1 imports it, so everyawslocalcall crashes.awslocalis now installed into its own pipx environment, which comes with a completebotocorefrom PyPI:The step is also renamed from "Start LocalStack" to "Install tools", which matches what it does.
Evidence
Run AWS commands, and the two load jobs are skipped.python:3.14-slimwith a system-widebotocore==1.40.72andvendored/deleted, as on the runner:Merge Danger
Door: two-way
Reverting is a one-file change.
Blast Radius: small
Only affects users with
install-awslocal: trueon runners whereawslocalisn't already installed. With pipx,awslocallands in~/.local/bin, the same placepip install --userput it. awscli v1 and its dependencies now live in a pipx environment, so later steps thatimport awsclifrom the system Python won't find it. Without pipx, the old pip behaviour is kept.🤖 Generated with Claude Code