Skip to content

Commit

Permalink
Merge #4388 from aws/fixci
Browse files Browse the repository at this point in the history
fix(ci): "deadsnakes" causes unreliable CI
  • Loading branch information
justinmk3 authored Feb 5, 2024
2 parents 819e63a + 44cb30c commit cdabc7f
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions buildspec/linuxIntegrationTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ phases:
- '>/dev/null apt-get -qq update'
- '>/dev/null apt-get -qq install -y ca-certificates'
- 'apt-get install --reinstall ca-certificates'
- 'add-apt-repository -y ppa:deadsnakes/ppa'
# Other dependencies.
- 'apt-get -qq install -y jq python3.7 python3.8 python3-pip'
# Fail early if any of these not found.
- 'python3.7 --version'
- 'python3.8 --version'
- 'apt-get -qq install -y jq'
- |
curl --silent -LO https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip
unzip -q aws-sam-cli-linux-x86_64.zip -d samcli
sudo ./samcli/install
rm -rf samcli
# login to DockerHub so we don't get throttled
# - docker login --username $(echo $DOCKER_HUB_TOKEN | jq -r '.username') --password $(echo $DOCKER_HUB_TOKEN | jq -r '.password') || true
# increase file watcher count so CodeLens tests do not fail unexpectedly (ENOSPC error)
Expand All @@ -51,13 +52,10 @@ phases:
- export HOME=/home/codebuild-user
- bash buildspec/shared/setup-github-token.sh
- bash buildspec/shared/linux-pre_build.sh
# Where non-root "pip3 install" puts things:
- 'export PATH="$HOME/.local/bin:$PATH"'
- '>/dev/null pip3 install --upgrade aws-sam-cli'
- '>/dev/null pip3 install --upgrade awscli'
# Print info about sam (version, location, …).
- 'pip3 show aws-sam-cli'
- 'sam --version'
# Print info (version, location, …) or fail early.
- |
python3 --version
sam --version
# Install latest version of Go (known to 'goenv')
# - eval "$(goenv init -)"
# - 'export PATH="$GOROOT/bin:$PATH:$GOPATH/bin"'
Expand Down

0 comments on commit cdabc7f

Please sign in to comment.