Skip to content

ci: install e2e AWS CLI outside the scanned test folder - #15017

Merged
sarayev merged 1 commit into
devfrom
sarayev/install-aws-cli-outside-scan-folder
Dec 1, 2026
Merged

sarayev merged 1 commit into
devfrom
sarayev/install-aws-cli-outside-scan-folder

Conversation

@sarayev

@sarayev sarayev commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Description

Install the AWS CLI used by the Linux e2e shards into /tmp/awscliv2 instead of the current directory.

setAwsAccountCredentials runs from packages/amplify-e2e-tests/, so the latest AWS CLI v2 was unzipped into packages/amplify-e2e-tests/aws/. _scanArtifacts greps that folder for the mock value abc123xyz. The current AWS CLI release (2.43.0) ships example docs for amplifygen3 that contain that string, for example aws/dist/awscli/examples/amplifygen3/deployment/get.rst. Since then every Linux e2e shard fails at _scanArtifacts after its tests pass. Windows shards are not affected.

Testing

  • Ran the new install steps locally: the CLI unzips to the target directory and aws --version reports 2.43.0. The unzipped CLI contains 6 files with the mock value, all amplifygen3 example docs, now outside the scanned folder.
  • bash -n on the changed script passes.
  • A CodeBuild debug run of auth_2e on the current code listed those 6 files as the only matches in packages/amplify-e2e-tests/.

The Linux e2e shards unzipped the AWS CLI into packages/amplify-e2e-tests/aws/,
which _scanArtifacts greps for its mock value. AWS CLI 2.43.0 example docs
contain that value, so every Linux shard failed the scan after its tests
passed. Install into /tmp/awscliv2 instead.
@sarayev
sarayev requested a review from a team as a code owner December 1, 2026 15:34
@sarayev
sarayev merged commit 95b0089 into dev Dec 1, 2026
6 checks passed
@sarayev
sarayev deleted the sarayev/install-aws-cli-outside-scan-folder branch December 1, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants