flakytest.dev anze3db flakytest
Tests / ft/tests.py

TestDatabaseConnectionRetries::test_settings

First seen 1 week, 1 day ago in cb18ed3
No profiled runs of this test in the last 1 days. Run pytest --flakytest-profile to see where its time goes.

Where the time goes

Latest run in ci:github-actions:test, 1 week, 1 day ago · open run
Hide pytest frames
teardown32 ms98.3%
CallInfo.from_call_pytest/runner.py:35332 ms98.3%
call_and_report.<locals>.<lambda>_pytest/runner.py:24532 ms98.3%
HookCaller.__call__pluggy/_hooks.py:51232 ms98.3%
PluginManager._hookexecpluggy/_manager.py:12032 ms98.3%
_multicallpluggy/_callers.py:12132 ms98.3%
pytest_runtest_teardown_pytest/runner.py:19432 ms98.3%
SetupState.teardown_exact_pytest/runner.py:55532 ms98.3%
FixtureDef.finish_pytest/fixtures.py:104232 ms98.3%
_teardown_yield_fixture_pytest/fixtures.py:92432 ms98.3%
django_db_setuppytest_django/fixtures.py:211 teardown_databases(db_cfg, verbosity=request.config.option.verbose)32 ms98.3%
teardown_databasesdjango/test/utils.py:38132 ms98.3%
BaseDatabaseCreation.destroy_test_dbdjango/db/backends/base/creation.py:33031 ms95.1%
DatabaseCreation._destroy_test_dbdjango/db/backends/postgresql/creation.py:9131 ms95.1%
BaseDatabaseCreation._destroy_test_dbdjango/db/backends/base/creation.py:34626 ms79.3%
CursorWrapper.executedjango/db/backends/utils.py:7926 ms79.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9226 ms79.3%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:10026 ms79.3%
CursorWrapper._executedjango/db/backends/utils.py:10326 ms79.3%
Cursor.executepsycopg/cursor.py:11326 ms79.3%
Connection.waitpsycopg/connection.py:49526 ms79.3%
BaseDatabaseCreation._destroy_test_dbdjango/db/backends/base/creation.py:3455 ms15.9%
_GeneratorContextManager.__enter__<stdlib>/contextlib.py:2035 ms15.9%
DatabaseWrapper._nodb_cursordjango/db/backends/postgresql/base.py:5085 ms15.9%
_GeneratorContextManager.__enter__<stdlib>/contextlib.py:2035 ms15.9%
BaseDatabaseWrapper._nodb_cursordjango/db/backends/base/base.py:7125 ms15.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms15.9%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3205 ms15.9%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2965 ms15.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms15.9%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2795 ms15.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms15.9%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2565 ms15.9%
DatabaseWrapper.get_new_connectionft/db/postgresql/base.py:39 return super().get_new_connection(conn_params)5 ms15.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms15.9%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3335 ms15.9%
Connection.connectpsycopg/connection.py:1095 ms15.9%
wait_connpsycopg/waiting.py:1453 ms9.5%
BaseConnection._connect_genpsycopg/_connection_base.py:4393 ms9.5%
wait_connpsycopg/waiting.py:1412 ms6.3%
EpollSelector.select<stdlib>/selectors.py:4522 ms6.3%
BaseDatabaseCreation.destroy_test_dbdjango/db/backends/base/creation.py:3021 ms3.2%
Estimated from 31 samples; phase durations are exact. Frames from pytest and pluggy are shown .

Hot lines in your code

ft/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection · DB schema
5 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.03 ms
_template_string_if_invalid_marker function 0.03 ms
_django_db_marker function 0.03 ms
_django_set_urlconf function 0.02 ms
_live_server_helper function 0.02 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.01 ms

Database

1 queries · 25 ms
No repeated queries.

Biggest pieces of work

teardown fixture django_db_setup (session scope)
pytest_django/fixtures.py:211
32 ms

Reliability

1 result · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 1 result, oldest first in the strip
When Environment Outcome Duration Commit
1 week, 1 day ago CI github-actions:test passed 32 ms cb18ed3 main Profile