From 74ab1bea06cbbde52ed5a969d8c0e957b7c9c246 Mon Sep 17 00:00:00 2001 From: Tamas Nemeth Date: Tue, 4 Jul 2023 19:19:39 +0200 Subject: [PATCH] fix(ingest/s3): Fix for flaky s3 test - uploading s3 files in consistent order (#8367) --- metadata-ingestion/tests/integration/s3/test_s3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata-ingestion/tests/integration/s3/test_s3.py b/metadata-ingestion/tests/integration/s3/test_s3.py index c896c8d60cfc6f..645593b1a46bb6 100644 --- a/metadata-ingestion/tests/integration/s3/test_s3.py +++ b/metadata-ingestion/tests/integration/s3/test_s3.py @@ -56,7 +56,7 @@ def s3_populate(pytestconfig, s3_resource, s3_client, bucket_names): pytestconfig.rootpath / "tests/integration/s3/test_data/local_system/" ) for root, _dirs, files in os.walk(test_resources_dir): - for file in files: + for file in sorted(files): full_path = os.path.join(root, file) rel_path = os.path.relpath(full_path, test_resources_dir) bkt.upload_file(full_path, rel_path)