aws / aws-cli

Universal Command Line Interface for Amazon Web Services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Local environment variables interfere with tests

j0ni opened this issue · comments

Describe the issue

When running the test suite, if the AWS_PROFILE version is set to something locally reasonable, some tests fail.

I'd like to suggest going through the list of supported variables and unsetting all of them as part of a global test setup step - to ensure more repeatable builds. It also seems possible that this problem may cause local test success for developers where tests should really fail, as well as the reverse, which is the symptom I've encountered.

Additional Information/Context

This came up on the AUR - you can see the discussion on the AWS CLI project there.

CLI version used

2.15.40

Environment details (OS name and version, etc.)

Arch GNU/Linux, current, installed using AUR package (kernel 6.8.7)

Thanks for reaching out. From the linked discussion you shared it looks like this is the test that is failing. If there are any other details you want to share here please let us know. Otherwise, per discussion with the team this looks like a reasonable ask.