From fe4c2fee01783b3c81ac7dfc13b40ef812333870 Mon Sep 17 00:00:00 2001 From: laughingman7743 Date: Sat, 28 Dec 2024 23:29:59 +0900 Subject: [PATCH] Comment out some test cases because of the high cost of AWS for testing. --- tests/pyathena/filesystem/test_s3.py | 77 +++++++++++++++------------- 1 file changed, 42 insertions(+), 35 deletions(-) diff --git a/tests/pyathena/filesystem/test_s3.py b/tests/pyathena/filesystem/test_s3.py index 5995ab12..4d2dab5a 100644 --- a/tests/pyathena/filesystem/test_s3.py +++ b/tests/pyathena/filesystem/test_s3.py @@ -167,13 +167,14 @@ def test_read(self, fs, start, end, target_data): @pytest.mark.parametrize( ["base", "exp"], [ + # TODO: Comment out some test cases because of the high cost of AWS for testing. (1, 2**10), - (10, 2**10), - (100, 2**10), + # (10, 2**10), + # (100, 2**10), (1, 2**20), - (10, 2**20), - (100, 2**20), - (1024, 2**20), + # (10, 2**20), + # (100, 2**20), + # (1024, 2**20), # TODO: Perhaps OOM is occurring and the worker is shutting down. # The runner has received a shutdown signal. # This can happen when the runner service is stopped, @@ -197,13 +198,14 @@ def test_write(self, fs, base, exp): @pytest.mark.parametrize( ["base", "exp"], [ + # TODO: Comment out some test cases because of the high cost of AWS for testing. (1, 2**10), - (10, 2**10), - (100, 2**10), + # (10, 2**10), + # (100, 2**10), (1, 2**20), - (10, 2**20), - (100, 2**20), - (1024, 2**20), + # (10, 2**20), + # (100, 2**20), + # (1024, 2**20), # TODO: Perhaps OOM is occurring and the worker is shutting down. # The runner has received a shutdown signal. # This can happen when the runner service is stopped, @@ -498,13 +500,14 @@ def test_touch(self, fs): @pytest.mark.parametrize( ["base", "exp"], [ + # TODO: Comment out some test cases because of the high cost of AWS for testing. (1, 2**10), - (10, 2**10), - (100, 2**10), + # (10, 2**10), + # (100, 2**10), (1, 2**20), - (10, 2**20), - (100, 2**20), - (1024, 2**20), + # (10, 2**20), + # (100, 2**20), + # (1024, 2**20), # TODO: Perhaps OOM is occurring and the worker is shutting down. # The runner has received a shutdown signal. # This can happen when the runner service is stopped, @@ -538,13 +541,14 @@ def test_cat_ranges(self, fs): @pytest.mark.parametrize( ["base", "exp"], [ + # TODO: Comment out some test cases because of the high cost of AWS for testing. (1, 2**10), - (10, 2**10), - (100, 2**10), + # (10, 2**10), + # (100, 2**10), (1, 2**20), - (10, 2**20), - (100, 2**20), - (1024, 2**20), + # (10, 2**20), + # (100, 2**20), + # (1024, 2**20), # TODO: Perhaps OOM is occurring and the worker is shutting down. # The runner has received a shutdown signal. # This can happen when the runner service is stopped, @@ -570,13 +574,14 @@ def test_put(self, fs, base, exp): @pytest.mark.parametrize( ["base", "exp"], [ + # TODO: Comment out some test cases because of the high cost of AWS for testing. (1, 2**10), - (10, 2**10), - (100, 2**10), + # (10, 2**10), + # (100, 2**10), (1, 2**20), - (10, 2**20), - (100, 2**20), - (1024, 2**20), + # (10, 2**20), + # (100, 2**20), + # (1024, 2**20), # TODO: Perhaps OOM is occurring and the worker is shutting down. # The runner has received a shutdown signal. # This can happen when the runner service is stopped, @@ -605,13 +610,14 @@ def test_put_with_callback(self, fs, base, exp): @pytest.mark.parametrize( ["base", "exp"], [ + # TODO: Comment out some test cases because of the high cost of AWS for testing. (1, 2**10), - (10, 2**10), - (100, 2**10), + # (10, 2**10), + # (100, 2**10), (1, 2**20), - (10, 2**20), - (100, 2**20), - (1024, 2**20), + # (10, 2**20), + # (100, 2**20), + # (1024, 2**20), # TODO: Perhaps OOM is occurring and the worker is shutting down. # The runner has received a shutdown signal. # This can happen when the runner service is stopped, @@ -736,12 +742,13 @@ def test_pandas_read_csv(self): @pytest.mark.parametrize( ["line_count"], [ + # TODO: Comment out some test cases because of the high cost of AWS for testing. (1 * (2**20),), # Generates files of about 2 MB. - (2 * (2**20),), # 4MB - (3 * (2**20),), # 6MB - (4 * (2**20),), # 8MB - (5 * (2**20),), # 10MB - (6 * (2**20),), # 12MB + # (2 * (2**20),), # 4MB + # (3 * (2**20),), # 6MB + # (4 * (2**20),), # 8MB + # (5 * (2**20),), # 10MB + # (6 * (2**20),), # 12MB ], ) def test_pandas_write_csv(self, line_count):