]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Limit non-backend critical profiling tests to SQLite
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 17 Feb 2020 16:51:33 +0000 (11:51 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 17 Feb 2020 20:46:00 +0000 (15:46 -0500)
commitc19fa8bdb499777c453e34f92d4f3236791476ed
treef1a2bd78707100e5069d9e41a816ccf9c0d6a805
parent086c7986557ab90c54f548f56f723e2940f055c1
Limit non-backend critical profiling tests to SQLite

issues with backend-specific profiling should be limited
to tests that are explcitly against resultset, compiler, etc.

MySQL in particular has an often varying callcount that isn't
worth running these tests against nor is it worth profiling
them for other backends like Oracle and SQL Server.

Also add the REQUIRE_SQLALCHEMY_CEXT flag to
the regen_callcounts.tox.ini script, which is part of some review
somewhere but is needed here to generate callcounts correctly.

Add a "warmup" phase for some of the ORM tests for join conditions
that have varying profile counts based on whether mappings have been
used already or not; profiling should always be against the
"warmed up" version of a function.

Change-Id: If483820235fa4cc4360cbd067a9b68d83512d587
(cherry picked from commit 386012597b9e7aa2a7f987930d00b892ed54121d)
lib/sqlalchemy/testing/profiling.py
regen_callcounts.tox.ini
test/aaa_profiling/test_misc.py
test/aaa_profiling/test_orm.py
test/aaa_profiling/test_pool.py
test/profiles.txt
test/requirements.py