From 6068a22dd8a45188481c212d53966e92bf4d236d Mon Sep 17 00:00:00 2001 From: ferruzzi Date: Mon, 8 Jun 2026 15:44:59 -0700 Subject: [PATCH] fix(tests): Use unique S3 bucket name in bedrock evaluation system test Include env_id in the bucket name to prevent collisions when the test runs concurrently (e.g. local run + executor run). The hardcoded bucket name caused ValueError('The key ... already exists') when two executions overlapped. --- .../tests/system/amazon/aws/example_bedrock_evaluation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/amazon/tests/system/amazon/aws/example_bedrock_evaluation.py b/providers/amazon/tests/system/amazon/aws/example_bedrock_evaluation.py index d64700cf02ac1..01b299b43a35d 100644 --- a/providers/amazon/tests/system/amazon/aws/example_bedrock_evaluation.py +++ b/providers/amazon/tests/system/amazon/aws/example_bedrock_evaluation.py @@ -55,7 +55,7 @@ test_context = sys_test_context_task() env_id = test_context[ENV_ID_KEY] role_arn = test_context[ROLE_ARN_KEY] - bucket_name = "airflow-system-test-bedrock-eval" + bucket_name = f"{env_id}-bedrock-eval" # TEST SETUP create_bucket = S3CreateBucketOperator(