]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
adjustments for unreliable gc
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 5 Dec 2022 04:25:14 +0000 (23:25 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 5 Dec 2022 04:31:20 +0000 (23:31 -0500)
commitca46caede4b8d846f3cd48e642922ae821d0be2b
treed6695a3b71a3e3ff4323e8c46740286c7a40b4af
parent4a9e448d9e5024003a72b6b53337b2bc42905042
adjustments for unreliable gc

sporadic (and at the moment persistent) test failures
related to aiosqlite seem to have in common that Python
gc stops working fully when we run a lot of tests with
aiosqlite.  The failures are not limited to aiosqlite
as they are more involving places where we assume or
expect gc.collect() to get rid of things, and it doesn't.

Identify (based on reproducible case on the d3 CI runner)
the spots where this happens and add fixes.

test/orm/test_transaction.py test_gced_delete_on_rollback
has always been a very sensitive test with a lot of issues,
so here we move it to the test_memusage suite and limit
it only to when the memusage suite is running.

Change-Id: I683412d0effe8732c45980b40722e5bb63431177
doc/build/orm/queryguide/_deferred_setup.rst
doc/build/orm/queryguide/select.rst
test/aaa_profiling/test_memusage.py
test/orm/test_transaction.py
test/requirements.py