]> 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 14:49:37 +0000 (09:49 -0500)
commitda505159463abbc0bb178a3a71e6348890f0e9aa
tree9808c5ee0ce017456722129b8189d9d9832a47af
parent1043b9d229c3139edd96eb427789fdeb4d5bfb16
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
(cherry picked from commit ca46caede4b8d846f3cd48e642922ae821d0be2b)
test/aaa_profiling/test_memusage.py
test/orm/test_transaction.py
test/requirements.py