Skip to content

Commit fc709c3

Browse files
authored
Update resource leak test scaling factors and CI Python resolution (boto#3705)
* Lower standard-build memory growth threshold in resource leak tests * Always resolve to latest patch in setup-python * Bump no-gil threshold to 17 after multiple failures
1 parent 4841c13 commit fc709c3

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/run-crt-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
python-version: '${{ matrix.python-version }}'
3535
cache: 'pip'
3636
allow-prereleases: true
37+
check-latest: true
3738
- name: Install dependencies and CRT
3839
run: |
3940
python scripts/ci/install --extras crt

.github/workflows/run-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
python-version: '${{ matrix.python-version }}'
3535
cache: 'pip'
3636
allow-prereleases: true
37+
check-latest: true
3738
- name: Install dependencies
3839
run: |
3940
python scripts/ci/install

tests/functional/leak/test_resource_leaks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ class TestDoesNotLeakMemory(BaseClientDriverTest):
2929
if sysconfig.get_config_var("Py_GIL_DISABLED") == 1:
3030
# Free-threaded Python objects require additional
3131
# memory for per-object locks and synchronization.
32-
SCALING_FACTOR = 16
32+
SCALING_FACTOR = 17
3333
else:
34-
SCALING_FACTOR = 13
34+
SCALING_FACTOR = 4
3535
MAX_GROWTH_BYTES = SCALING_FACTOR * 1024 * 1024
3636

3737
def test_create_single_client_memory_constant(self):

0 commit comments

Comments
 (0)