-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from h-vetinari/s3
add work-around for recurring aarch failures
- Loading branch information
Showing
3 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
From d1ea231aeb2daa8c742effae14e1ee9f011833c9 Mon Sep 17 00:00:00 2001 | ||
From 0ee0f802918c8627ad67c1cfb3c75d492fda8f49 Mon Sep 17 00:00:00 2001 | ||
From: "H. Vetinari" <[email protected]> | ||
Date: Wed, 13 Sep 2023 21:34:29 +1100 | ||
Subject: [PATCH 1/4] fixture teardown should not fail test | ||
Subject: [PATCH 1/2] fixture teardown should not fail test | ||
|
||
--- | ||
python/pyarrow/tests/test_fs.py | 10 ++++++++-- | ||
1 file changed, 8 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/python/pyarrow/tests/test_fs.py b/python/pyarrow/tests/test_fs.py | ||
index d0fa253e3..de179855d 100644 | ||
index 845f1ecce..58a73dec4 100644 | ||
--- a/python/pyarrow/tests/test_fs.py | ||
+++ b/python/pyarrow/tests/test_fs.py | ||
@@ -255,7 +255,10 @@ def s3fs(request, s3_server): | ||
|
@@ -23,7 +23,7 @@ index d0fa253e3..de179855d 100644 | |
|
||
|
||
@pytest.fixture | ||
@@ -357,7 +360,10 @@ def py_fsspec_s3fs(request, s3_server): | ||
@@ -386,7 +389,10 @@ def py_fsspec_s3fs(request, s3_server): | ||
allow_move_dir=False, | ||
allow_append_to_file=True, | ||
) | ||
|
23 changes: 23 additions & 0 deletions
23
recipe/patches/0002-try-harder-to-set-up-s3_server-fixture.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
From 15e5b62f4fda72e255436723c60299c2092fa058 Mon Sep 17 00:00:00 2001 | ||
From: "H. Vetinari" <[email protected]> | ||
Date: Thu, 9 May 2024 11:24:26 +1100 | ||
Subject: [PATCH 2/2] try harder to set up s3_server fixture | ||
|
||
it only happens once per session, so we may as well take the time | ||
--- | ||
python/pyarrow/tests/conftest.py | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/python/pyarrow/tests/conftest.py b/python/pyarrow/tests/conftest.py | ||
index 57bc3c8fc..f9396b898 100644 | ||
--- a/python/pyarrow/tests/conftest.py | ||
+++ b/python/pyarrow/tests/conftest.py | ||
@@ -192,7 +192,7 @@ def retry(attempts=3, delay=1.0, max_delay=None, backoff=1): | ||
|
||
@pytest.fixture(scope='session') | ||
def s3_server(s3_connection, tmpdir_factory): | ||
- @retry(attempts=5, delay=0.1, backoff=2) | ||
+ @retry(attempts=10, delay=1, backoff=2) | ||
def minio_server_health_check(address): | ||
resp = urllib.request.urlopen(f"http://{address}/minio/health/cluster") | ||
assert resp.getcode() == 200 |