Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-awscrt for openSUSE:Factory 
checked in at 2026-12-02 17:05:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-awscrt (Old)
 and      /work/SRC/openSUSE:Factory/.python-awscrt.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-awscrt"

Wed Dec  2 17:05:07 2026 rev:14 rq:1402132 version:0.38.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-awscrt/python-awscrt.changes      
2026-11-21 12:33:42.591709649 +0100
+++ /work/SRC/openSUSE:Factory/.python-awscrt.new.1340718/python-awscrt.changes 
2026-12-02 17:07:31.055959838 +0100
@@ -1,0 +2,19 @@
+Tue Dec  1 19:51:12 UTC 2026 - Jan Baier <[email protected]>
+
+- Add fix-put-response-content-length.patch: the local test server
+  in test_aiohttp_client.py and test_http_client.py sent a bodyless
+  200 response on an HTTP/1.1 keep-alive connection, which made
+  %check hang in test_put_http with aws-c-http 1.3.1.
+- Run spec-cleaner (BuildRequires ordering).
+
+-------------------------------------------------------------------
+Mon Nov  9 14:25:51 UTC 2026 - John Paul Adrian Glaubitz 
<[email protected]>
+
+- Update to version 0.38.1
+  * Updating Submodules by @rakshil14-2 in (#775)
+  * Adding s3 retry modes by @rakshil14-2 in (#774)
+  * 315t wheel support by @TingDaoK in (#779)
+  * Use the capped static default event loop group
+    by @azkrishpy in (#783)
+
+-------------------------------------------------------------------

Old:
----
  awscrt-0.38.0.tar.gz

New:
----
  awscrt-0.38.1.tar.gz
  fix-put-response-content-length.patch

----------(New B)----------
  New:
- Add fix-put-response-content-length.patch: the local test server
  in test_aiohttp_client.py and test_http_client.py sent a bodyless
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-awscrt.spec ++++++
--- /var/tmp/diff_new_pack.BGzbof/_old  2026-12-02 17:07:32.097003826 +0100
+++ /var/tmp/diff_new_pack.BGzbof/_new  2026-12-02 17:07:32.099003910 +0100
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-awscrt
-Version:        0.38.0
+Version:        0.38.1
 Release:        0
 Summary:        A common runtime for AWS Python projects
 License:        Apache-2.0
@@ -26,36 +26,36 @@
 Source:         %{url}/archive/v%{version}.tar.gz#/awscrt-%{version}.tar.gz
 # PATCH-FIX-OPENSUSE skip-test-requiring-network.patch [email protected] -- 
one test requires internet connection, skip it
 Patch:          skip-test-requiring-network.patch
+# PATCH-FIX-OPENSUSE fix-put-response-content-length.patch [email protected] -- 
local test server answers PUT without Content-Length, which hangs with 
aws-c-http >= 1.3.1
+Patch1:         fix-put-response-content-length.patch
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module pip}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module websockets}
+BuildRequires:  %{python_module wheel}
+BuildRequires:  ca-certificates-mozilla
+BuildRequires:  fdupes
+BuildRequires:  gcc
+BuildRequires:  gcc-c++
+BuildRequires:  openssl-devel
 BuildRequires:  python-rpm-macros
 BuildRequires:  cmake(aws-c-auth)
 BuildRequires:  cmake(aws-c-cal)
-BuildRequires:  cmake(aws-checksums)
 BuildRequires:  cmake(aws-c-common)
 BuildRequires:  cmake(aws-c-compression)
 BuildRequires:  cmake(aws-c-event-stream)
 BuildRequires:  cmake(aws-c-http)
-BuildRequires:  cmake(aws-c-mqtt)
 BuildRequires:  cmake(aws-c-io)
+BuildRequires:  cmake(aws-c-mqtt)
 BuildRequires:  cmake(aws-c-s3)
 BuildRequires:  cmake(aws-c-sdkutils)
+BuildRequires:  cmake(aws-checksums)
 BuildRequires:  cmake(s2n)
-BuildRequires:  %{python_module pip}
-BuildRequires:  %{python_module setuptools}
-BuildRequires:  %{python_module wheel}
-BuildRequires:  %{python_module devel}
-BuildRequires:  %{python_module websockets}
-BuildRequires:  fdupes
-BuildRequires:  gcc
-BuildRequires:  gcc-c++
-BuildRequires:  openssl-devel
-BuildRequires:  ca-certificates-mozilla
-
 %python_subpackages
 
 %description
 A common runtime for AWS Python projects
 
-
 %prep
 %autosetup -p1 -n aws-crt-python-%{version}
 
@@ -80,4 +80,3 @@
 %{python_sitearch}/awscrt
 %{python_sitearch}/awscrt-*-info
 
-

++++++ awscrt-0.38.0.tar.gz -> awscrt-0.38.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aws-crt-python-0.38.0/.github/workflows/ci.yml 
new/aws-crt-python-0.38.1/.github/workflows/ci.yml
--- old/aws-crt-python-0.38.0/.github/workflows/ci.yml  2026-10-16 
16:15:10.000000000 +0200
+++ new/aws-crt-python-0.38.1/.github/workflows/ci.yml  2026-11-04 
09:00:46.000000000 +0100
@@ -365,7 +365,7 @@
           python builder.pyz build -p ${{ env.PACKAGE_NAME }} --python "${{ 
steps.python.outputs.python-path }}"
 
   macos:
-    runs-on: macos-14 # latest
+    runs-on: macos-15 # latest
     permissions:
       id-token: write # This is required for requesting the JWT
     steps:
@@ -383,7 +383,7 @@
   macos-315:
     # Python 3.15 (standard and free-threaded). Free-threaded exercises the
     # abi3t build path (Py_TARGET_ABI3T / PyModExport, see setup.py).
-    runs-on: macos-14 # latest
+    runs-on: macos-15 # latest
     strategy:
       fail-fast: false
       matrix:
@@ -409,7 +409,7 @@
           ./builder build -p ${{ env.PACKAGE_NAME }} --python "${{ 
steps.python315.outputs.python-path }}"
 
   macos-x64:
-    runs-on: macos-14-large # latest
+    runs-on: macos-15-large # latest
     permissions:
       id-token: write # This is required for requesting the JWT
     steps:
@@ -425,7 +425,7 @@
           ./builder build -p ${{ env.PACKAGE_NAME }}
 
   macos-s2n:
-    runs-on: macos-14 # latest
+    runs-on: macos-15 # latest
     env:
       AWS_CRT_USE_NON_FIPS_TLS_13: 1
     permissions:
@@ -443,7 +443,7 @@
           ./builder build -p ${{ env.PACKAGE_NAME }}
 
   macos-x64-s2n:
-    runs-on: macos-14-large # latest
+    runs-on: macos-15-large # latest
     env:
       AWS_CRT_USE_NON_FIPS_TLS_13: 1
     permissions:
@@ -520,7 +520,7 @@
             export ASSUME_ALWAYS_YES=yes
             sudo -E pkg bootstrap -f
             sudo -E pkg update -f
-            sudo -E pkg install -y python3 devel/py-pip net/py-urllib3 
devel/py-awscli cmake
+            sudo -E pkg install -y python3 devel/py-pip net/py-urllib3 
devel/py-awscli devel/cmake-core
             python3 -c "from urllib.request import urlretrieve; 
urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ 
env.BUILDER_VERSION }}/builder.pyz', 'builder')"
             chmod a+x builder
             ./builder build -p ${{ env.PACKAGE_NAME }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aws-crt-python-0.38.0/awscrt/io.py 
new/aws-crt-python-0.38.1/awscrt/io.py
--- old/aws-crt-python-0.38.0/awscrt/io.py      2026-10-16 16:15:10.000000000 
+0200
+++ new/aws-crt-python-0.38.1/awscrt/io.py      2026-11-04 09:00:46.000000000 
+0100
@@ -113,9 +113,18 @@
 
     @staticmethod
     def get_or_create_static_default():
+        """Get the shared default EventLoopGroup, creating it on first use.
+
+        It has the default number of event-loops, capped at 
AWS_EVENT_LOOP_GROUP_STATIC_DEFAULT_MAX_LOOPS.
+        """
         with EventLoopGroup._static_event_loop_group_lock:
             if EventLoopGroup._static_event_loop_group is None:
-                EventLoopGroup._static_event_loop_group = EventLoopGroup()
+                shutdown_event = threading.Event()
+                group = EventLoopGroup.__new__(EventLoopGroup)
+                NativeResource.__init__(group)
+                group.shutdown_event = shutdown_event
+                group._binding = 
_awscrt.event_loop_group_new_static_default(shutdown_event.set)
+                EventLoopGroup._static_event_loop_group = group
             return EventLoopGroup._static_event_loop_group
 
     @staticmethod
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aws-crt-python-0.38.0/awscrt/s3.py 
new/aws-crt-python-0.38.1/awscrt/s3.py
--- old/aws-crt-python-0.38.0/awscrt/s3.py      2026-10-16 16:15:10.000000000 
+0200
+++ new/aws-crt-python-0.38.1/awscrt/s3.py      2026-11-04 09:00:46.000000000 
+0100
@@ -268,6 +268,29 @@
     """
 
 
+class S3RetryMode(IntEnum):
+    """Retry mode used by the S3 client."""
+
+    STANDARD = 0
+    """Standard retry strategy. Exponential backoff with a retry token bucket 
(default)."""
+
+    ADAPTIVE = 1
+    """Standard retry strategy plus client-side rate limiting.
+
+    There is one rate limiter per client, so throttling on one bucket slows 
requests to all buckets.
+    """
+
+    EXPONENTIAL_BACKOFF = 2
+    """Exponential backoff without the retry token bucket.
+
+    Each request gets all of its `max_retries`, even when other requests to 
the same host are failing.
+    `initial_bucket_capacity` is ignored in this mode.
+    """
+
+    NONE = 3
+    """No retries. Each request is attempted exactly once."""
+
+
 @dataclass
 class S3RetryConfig:
     """Configuration for the S3 client's retry strategy.
@@ -283,7 +306,7 @@
 
     Args:
         max_retries (int): Maximum number of retries per request.
-            0 means use S3 client default (5).
+            0 means use S3 client default (5). To disable retries, set 
`retry_mode` to :attr:`S3RetryMode.NONE`.
 
         backoff_scale_factor_ms (int): Base delay in milliseconds,
             multiplied by 2^attempt for exponential backoff. 0 means use 
default (500).
@@ -297,12 +320,20 @@
         initial_bucket_capacity (int): Token bucket capacity per
             host partition (circuit breaker). Controls how many concurrent
             failures are tolerated before retries are rejected. 0 means use 
default (500).
+
+        retry_mode (S3RetryMode): Which retry strategy the client uses.
+            Default is :attr:`S3RetryMode.STANDARD`. Use 
:attr:`S3RetryMode.NONE` to disable retries.
+
+        fast_fail_if_no_token (bool): :attr:`S3RetryMode.ADAPTIVE` only. If 
True, fail the request
+            instead of waiting when the rate limiter has no send token. 
Default is False.
     """
     max_retries: int = 0
     backoff_scale_factor_ms: int = 0
     max_backoff_secs: int = 0
     jitter_mode: int = 0
     initial_bucket_capacity: int = 0
+    retry_mode: S3RetryMode = S3RetryMode.STANDARD
+    fast_fail_if_no_token: bool = False
 
 
 class S3Client(NativeResource):
@@ -519,6 +550,8 @@
             retry_config.max_backoff_secs,
             int(retry_config.jitter_mode),
             retry_config.initial_bucket_capacity,
+            int(retry_config.retry_mode),
+            retry_config.fast_fail_if_no_token,
             connect_timeout_ms)
 
     def make_request(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/aws-crt-python-0.38.0/continuous-delivery/build-wheels-manylinux2014-aarch64.sh
 
new/aws-crt-python-0.38.1/continuous-delivery/build-wheels-manylinux2014-aarch64.sh
--- 
old/aws-crt-python-0.38.0/continuous-delivery/build-wheels-manylinux2014-aarch64.sh
 2026-10-16 16:15:10.000000000 +0200
+++ 
new/aws-crt-python-0.38.1/continuous-delivery/build-wheels-manylinux2014-aarch64.sh
 2026-11-04 09:00:46.000000000 +0100
@@ -19,10 +19,14 @@
 /opt/python/cp313-cp313/bin/python -m build
 auditwheel repair --plat manylinux2014_aarch64 dist/awscrt-*cp313*.whl
 
-# The free-threaded build does not currently support the Limited C API or the 
stable ABI. Built them separately
+# Python3.14t build does not support the Limited C API or the stable ABI. 
Built them separately
 /opt/python/cp314-cp314t/bin/python -m build
 auditwheel repair --plat manylinux2014_aarch64 dist/awscrt-*cp314t*.whl
 
+# We are using the Python 3.15t stable ABI from Python 3.15t onwards for 
free-threaded python
+/opt/python/cp315-cp315t/bin/python -m build
+auditwheel repair --plat manylinux2014_aarch64 dist/awscrt-*cp315*.whl
+
 rm dist/*.whl
 cp -rv wheelhouse/* dist/
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/aws-crt-python-0.38.0/continuous-delivery/build-wheels-manylinux2014-x86_64.sh
 
new/aws-crt-python-0.38.1/continuous-delivery/build-wheels-manylinux2014-x86_64.sh
--- 
old/aws-crt-python-0.38.0/continuous-delivery/build-wheels-manylinux2014-x86_64.sh
  2026-10-16 16:15:10.000000000 +0200
+++ 
new/aws-crt-python-0.38.1/continuous-delivery/build-wheels-manylinux2014-x86_64.sh
  2026-11-04 09:00:46.000000000 +0100
@@ -19,10 +19,14 @@
 /opt/python/cp313-cp313/bin/python -m build
 auditwheel repair --plat manylinux2014_x86_64 dist/awscrt-*cp313*.whl
 
-# The free-threaded build does not currently support the Limited C API or the 
stable ABI. Built them separately
+# Python3.14t build does not support the Limited C API or the stable ABI. 
Built them separately
 /opt/python/cp314-cp314t/bin/python -m build
 auditwheel repair --plat manylinux2014_x86_64 dist/awscrt-*cp314t*.whl
 
+# We are using the Python 3.15t stable ABI from Python 3.15t onwards for 
free-threaded python
+/opt/python/cp315-cp315t/bin/python -m build
+auditwheel repair --plat manylinux2014_x86_64 dist/awscrt-*cp315*.whl
+
 rm dist/*.whl
 cp -rv wheelhouse/* dist/
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/aws-crt-python-0.38.0/continuous-delivery/build-wheels-osx.sh 
new/aws-crt-python-0.38.1/continuous-delivery/build-wheels-osx.sh
--- old/aws-crt-python-0.38.0/continuous-delivery/build-wheels-osx.sh   
2026-10-16 16:15:10.000000000 +0200
+++ new/aws-crt-python-0.38.1/continuous-delivery/build-wheels-osx.sh   
2026-11-04 09:00:46.000000000 +0100
@@ -15,8 +15,11 @@
 # We are using the Python 3.13 stable ABI from Python 3.13 onwards because of 
deprecated functions.
 /Library/Frameworks/Python.framework/Versions/3.13/bin/python3 -m build
 
-# The free-threaded build does not currently support the Limited C API or the 
stable ABI. Built them separately
+# Python3.13t and Python3.14t build does not support the Limited C API or the 
stable ABI. Built them separately
 /Library/Frameworks/PythonT.framework/Versions/3.13/bin/python3.13t -m build
 /Library/Frameworks/PythonT.framework/Versions/3.14/bin/python3.14t -m build
 
+# We are using the Python 3.15t stable ABI from Python 3.15t onwards for 
free-threaded python
+/Library/Frameworks/PythonT.framework/Versions/3.15/bin/python3.15t -m build
+
 #now you just need to run twine (that's in a different script)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/aws-crt-python-0.38.0/continuous-delivery/build-wheels-win32.bat 
new/aws-crt-python-0.38.1/continuous-delivery/build-wheels-win32.bat
--- old/aws-crt-python-0.38.0/continuous-delivery/build-wheels-win32.bat        
2026-10-16 16:15:10.000000000 +0200
+++ new/aws-crt-python-0.38.1/continuous-delivery/build-wheels-win32.bat        
2026-11-04 09:00:46.000000000 +0100
@@ -11,10 +11,13 @@
 :: We are using the 3.13 stable ABI from 3.13 onwards because of deprecated 
functions.
 "C:\Program Files (x86)\Python313-32\python.exe" -m build || goto error
 
-:: The free-threaded build does not currently support the Limited C API or the 
stable ABI. Built them separately
+:: Python3.13t and Python3.14t build does not support the Limited C API or the 
stable ABI. Built them separately
 "C:\Program Files (x86)\Python313-32\python3.13t.exe" -m build || goto error
 "C:\Program Files (x86)\Python314-32\python3.14t.exe" -m build || goto error
 
+:: We are using the Python 3.15t stable ABI from Python 3.15t onwards for 
free-threaded python
+"C:\Program Files (x86)\Python315-32\python3.15t.exe" -m build || goto error
+
 goto :EOF
 
 :error
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/aws-crt-python-0.38.0/continuous-delivery/build-wheels-win64.bat 
new/aws-crt-python-0.38.1/continuous-delivery/build-wheels-win64.bat
--- old/aws-crt-python-0.38.0/continuous-delivery/build-wheels-win64.bat        
2026-10-16 16:15:10.000000000 +0200
+++ new/aws-crt-python-0.38.1/continuous-delivery/build-wheels-win64.bat        
2026-11-04 09:00:46.000000000 +0100
@@ -10,10 +10,13 @@
 :: We are using the 3.13 stable ABI from 3.13 onwards because of deprecated 
functions.
 "C:\Program Files\Python313\python.exe" -m build || goto error
 
-:: The free-threaded build does not currently support the Limited C API or the 
stable ABI. Built them separately
+:: Python3.13t and Python3.14t build does not support the Limited C API or the 
stable ABI. Built them separately
 "C:\Program Files\Python-313\python3.13t.exe" -m build || goto error
 "C:\Program Files\Python314\python3.14t.exe" -m build || goto error
 
+:: We are using the Python 3.15t stable ABI from Python 3.15t onwards for 
free-threaded python
+"C:\Program Files\Python315\python3.15t.exe" -m build || goto error
+
 goto :EOF
 
 :error
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aws-crt-python-0.38.0/source/io.c 
new/aws-crt-python-0.38.1/source/io.c
--- old/aws-crt-python-0.38.0/source/io.c       2026-10-16 16:15:10.000000000 
+0200
+++ new/aws-crt-python-0.38.1/source/io.c       2026-11-04 09:00:46.000000000 
+0100
@@ -191,6 +191,50 @@
     return NULL;
 }
 
+PyObject *aws_py_event_loop_group_new_static_default(PyObject *self, PyObject 
*args) {
+    (void)self;
+
+    struct aws_allocator *allocator = aws_py_get_allocator();
+
+    PyObject *shutdown_complete_py;
+    if (!PyArg_ParseTuple(args, "O", &shutdown_complete_py)) {
+        return NULL;
+    }
+
+    struct event_loop_group_binding *binding = aws_mem_calloc(allocator, 1, 
sizeof(struct event_loop_group_binding));
+    if (!binding) {
+        return PyErr_AwsLastError();
+    }
+
+    struct aws_shutdown_callback_options shutdown_options = {
+        .shutdown_callback_fn = s_elg_native_cleanup_complete,
+        .shutdown_callback_user_data = binding,
+    };
+
+    binding->native = aws_event_loop_group_new_static_default(allocator, 
&shutdown_options);
+    if (binding->native == NULL) {
+        PyErr_SetAwsLastError();
+        goto elg_init_failed;
+    }
+
+    PyObject *capsule = PyCapsule_New(binding, s_capsule_name_elg, 
s_elg_capsule_destructor);
+    if (!capsule) {
+        goto capsule_new_failed;
+    }
+
+    AWS_FATAL_ASSERT(shutdown_complete_py != Py_None);
+    binding->shutdown_complete = shutdown_complete_py;
+    Py_INCREF(binding->shutdown_complete);
+
+    return capsule;
+
+capsule_new_failed:
+    aws_event_loop_group_release(binding->native);
+elg_init_failed:
+    aws_mem_release(allocator, binding);
+    return NULL;
+}
+
 struct aws_event_loop_group *aws_py_get_event_loop_group(PyObject 
*event_loop_group) {
     AWS_PY_RETURN_NATIVE_FROM_BINDING(event_loop_group, s_capsule_name_elg, 
"EventLoopGroup", event_loop_group_binding);
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aws-crt-python-0.38.0/source/io.h 
new/aws-crt-python-0.38.1/source/io.h
--- old/aws-crt-python-0.38.0/source/io.h       2026-10-16 16:15:10.000000000 
+0200
+++ new/aws-crt-python-0.38.1/source/io.h       2026-11-04 09:00:46.000000000 
+0100
@@ -43,6 +43,7 @@
  * Create a new event_loop_group to be managed by a Python Capsule.
  */
 PyObject *aws_py_event_loop_group_new(PyObject *self, PyObject *args);
+PyObject *aws_py_event_loop_group_new_static_default(PyObject *self, PyObject 
*args);
 
 /**
  * Create a new default host_resolver to be managed by a Python Capsule.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aws-crt-python-0.38.0/source/module.c 
new/aws-crt-python-0.38.1/source/module.c
--- old/aws-crt-python-0.38.0/source/module.c   2026-10-16 16:15:10.000000000 
+0200
+++ new/aws-crt-python-0.38.1/source/module.c   2026-11-04 09:00:46.000000000 
+0100
@@ -942,6 +942,7 @@
     AWS_PY_METHOD_DEF(is_alpn_available, METH_NOARGS),
     AWS_PY_METHOD_DEF(is_tls_cipher_supported, METH_VARARGS),
     AWS_PY_METHOD_DEF(event_loop_group_new, METH_VARARGS),
+    AWS_PY_METHOD_DEF(event_loop_group_new_static_default, METH_VARARGS),
     AWS_PY_METHOD_DEF(host_resolver_new_default, METH_VARARGS),
     AWS_PY_METHOD_DEF(client_bootstrap_new, METH_VARARGS),
     AWS_PY_METHOD_DEF(client_tls_ctx_new, METH_VARARGS),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aws-crt-python-0.38.0/source/s3_client.c 
new/aws-crt-python-0.38.1/source/s3_client.c
--- old/aws-crt-python-0.38.0/source/s3_client.c        2026-10-16 
16:15:10.000000000 +0200
+++ new/aws-crt-python-0.38.1/source/s3_client.c        2026-11-04 
09:00:46.000000000 +0100
@@ -270,11 +270,13 @@
     uint64_t retry_max_backoff_secs;        /* K */
     int retry_jitter_mode;                  /* i */
     uint64_t retry_initial_bucket_capacity; /* K */
+    int retry_mode;                         /* i */
+    int retry_fast_fail_if_no_token;        /* p - boolean predicate */
     uint32_t connect_timeout_ms;            /* I */
 
     if (!PyArg_ParseTuple(
             args,
-            "OOOOOs#iKKdpKOppdpKOKKKiKI",
+            "OOOOOs#iKKdpKOppdpKOKKKiKipI",
             &bootstrap_py,
             &signing_config_py,
             &credential_provider_py,
@@ -300,6 +302,8 @@
             &retry_max_backoff_secs,
             &retry_jitter_mode,
             &retry_initial_bucket_capacity,
+            &retry_mode,
+            &retry_fast_fail_if_no_token,
             &connect_timeout_ms)) {
         return NULL;
     }
@@ -433,6 +437,8 @@
     s3_config.retry_config.max_backoff_secs = (uint32_t)retry_max_backoff_secs;
     s3_config.retry_config.jitter_mode = (enum 
aws_exponential_backoff_jitter_mode)retry_jitter_mode;
     s3_config.retry_config.initial_bucket_capacity = 
(size_t)retry_initial_bucket_capacity;
+    s3_config.retry_config.retry_mode = (enum aws_s3_retry_mode)retry_mode;
+    s3_config.retry_config.fast_fail_if_no_token = retry_fast_fail_if_no_token;
 
     s3_client->native = aws_s3_client_new(allocator, &s3_config);
     if (s3_client->native == NULL) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/aws-crt-python-0.38.0/test/test_s3.py 
new/aws-crt-python-0.38.1/test/test_s3.py
--- old/aws-crt-python-0.38.0/test/test_s3.py   2026-10-16 16:15:10.000000000 
+0200
+++ new/aws-crt-python-0.38.1/test/test_s3.py   2026-11-04 09:00:46.000000000 
+0100
@@ -25,6 +25,8 @@
     S3Client,
     S3RequestType,
     S3ResponseError,
+    S3RetryConfig,
+    S3RetryMode,
     CrossProcessLock,
     S3FileIoOptions,
     create_default_s3_signing_config,
@@ -193,7 +195,8 @@
         enable_s3express=False,
         mem_limit=None,
         network_interface_names=None,
-        connect_timeout_ms=None):
+        connect_timeout_ms=None,
+        retry_config=None):
 
     if is_cancel_test:
         # for cancellation tests, make things slow, so it's less likely that
@@ -225,7 +228,8 @@
         enable_s3express=enable_s3express,
         memory_limit=mem_limit,
         network_interface_names=network_interface_names,
-        connect_timeout_ms=connect_timeout_ms)
+        connect_timeout_ms=connect_timeout_ms,
+        retry_config=retry_config)
     return s3_client
 
 
@@ -265,6 +269,16 @@
         s3_client = s3_client_new(True, self.region, connect_timeout_ms=3000)
         self.assertIsNotNone(s3_client)
 
+    def test_sanity_retry_mode(self):
+        # Sanity test that each retry mode is passed through and the client is 
created.
+        for mode in S3RetryMode:
+            s3_client = s3_client_new(False, self.region, 
retry_config=S3RetryConfig(retry_mode=mode))
+            self.assertIsNotNone(s3_client)
+        # Adaptive with fast-fail enabled.
+        retry_config = S3RetryConfig(retry_mode=S3RetryMode.ADAPTIVE, 
fast_fail_if_no_token=True)
+        s3_client = s3_client_new(False, self.region, 
retry_config=retry_config)
+        self.assertIsNotNone(s3_client)
+
     def test_wait_shutdown(self):
         s3_client = s3_client_new(False, self.region)
         self.assertIsNotNone(s3_client)

++++++ fix-put-response-content-length.patch ++++++
# The test suite's local HTTP server answers PUT requests with a 200 response
# that carries neither Content-Length nor Transfer-Encoding, while speaking
# HTTP/1.1 keep-alive. aws-c-http 1.3.1 ("Fix unknown length response",
# https://github.com/awslabs/aws-c-http/pull/550) now honours the RFC rule that
# such a response has an indeterminate body length and completes only when the
# connection is closed. The connection is never closed, so test_put_http and
# test_put_https wait forever and the build times out in %check.
# Make the response self-delimiting by sending an explicit empty body length.
#
--- a/test/test_aiohttp_client.py       2026-12-01 00:00:00.000000000 +0000
+++ b/test/test_aiohttp_client.py       2026-12-01 00:00:00.000000000 +0000
@@ -59,6 +59,7 @@
         incoming_body_bytes = self.rfile.read(content_length)
         self.server.put_requests[self.path] = incoming_body_bytes
         self.send_response(200, 'OK')
+        self.send_header('Content-Length', '0')
         self.end_headers()
 
 
--- a/test/test_http_client.py  2026-12-01 00:00:00.000000000 +0000
+++ b/test/test_http_client.py  2026-12-01 00:00:00.000000000 +0000
@@ -45,6 +45,7 @@
         incoming_body_bytes = self.rfile.read(content_length)
         self.server.put_requests[self.path] = incoming_body_bytes
         self.send_response(200, 'OK')
+        self.send_header('Content-Length', '0')
         self.end_headers()
 
 

Reply via email to