Skip to content

Commit

Permalink
Merge pull request #571 from laughingman7743/reduce_costs
Browse files Browse the repository at this point in the history
Comment out some test cases because of the high cost of AWS for testing
  • Loading branch information
laughingman7743 authored Dec 28, 2024
2 parents 16a9d69 + fe4c2fe commit 707c4d5
Showing 1 changed file with 42 additions and 35 deletions.
77 changes: 42 additions & 35 deletions tests/pyathena/filesystem/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 707c4d5

Please sign in to comment.