Skip to content

[Python][Release] test_s3_options takes 11 minutes to complete on wheels verification for almalinux #49757

@raulcd

Description

@raulcd

Describe the bug, including details regarding any error messages, version, and platform.

The wheels verification on Almalinux for 24.0.0 fails consistently due to timeout:
https://github.com/apache/arrow/actions/runs/24404382517/job/71425229713?pr=49742

This is related to test_s3_options taking a really long time to complete. I've been able to reproduce locally with:

ALMALINUX=8 archery docker run -e TEST_DEFAULT=0 -e TEST_WHEELS=1 -e VERBOSE=1 -e VERIFY_RC=0 -e VERIFY_VERSION=24.0.0 -e GH_TOKEN=$GH_TOKEN almalinux-verify-rc

I've validated that given enough time the test is successful and I've validated that skipping the test makes the job successful in a reasonable amount of time. The diff applied:

diff --git a/ci/scripts/python_wheel_unix_test.sh b/ci/scripts/python_wheel_unix_test.sh
index 2b8ee7be74..b55b07401f 100755
--- a/ci/scripts/python_wheel_unix_test.sh
+++ b/ci/scripts/python_wheel_unix_test.sh
@@ -116,5 +116,5 @@ if [ "${CHECK_UNITTESTS}" == "ON" ]; then

   # Execute unittest, test dependencies must be installed
   python -c 'import pyarrow; pyarrow.create_library_symlinks()'
-  python -m pytest -r s --pyargs pyarrow
+  python -m pytest -r s --pyargs pyarrow -k "not test_s3_options"
 fi

The problem seems to be related to a credential resolution timeout on S3 and that the test runs twice (due to two test cases being exercised).

We should reduce the time the test takes on those specific conditions.

Component(s)

Python

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions