From a067bd092b489498caeab64fea72ae941cdbc64e Mon Sep 17 00:00:00 2001 From: avr2002 Date: Sat, 3 Jan 2026 23:21:38 +0530 Subject: [PATCH] fix: unsetting AWS_PROFILE while running tests to see if it doesn't fail in CI --- run | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/run b/run index cf39055..08fea73 100755 --- a/run +++ b/run @@ -111,7 +111,7 @@ run-local() { uv run -- uvicorn 'files_api.main:create_app' --factory --host 0.0.0.0 --port 8000 --reload # Unset the environment variables - unset $OPENAI_API_KEY + unset OPENAI_API_KEY } # start the FastAPI app, pointed at a mocked aws endpoint @@ -258,6 +258,9 @@ test:ci() { run-tests() { PYTEST_EXIT_STATUS=0 + # Unset AWS credentials + unset AWS_PROFILE + # Disable AWS X-Ray and AWS EMF export AWS_XRAY_SDK_ENABLED="false" export AWS_EMF_DISABLE_METRIC_EXTRACTION="true" # Disable EMF