flakytest.dev anze3db fedidevs
Tests / mastodon_auth/tests.py

MastodonRatelimitHeaderTests::test_creates_session_with_hook_when_none_given

First seen 3 weeks ago in 4f01055
CI github-actions:test 5 runs
Average
354 ms
median 274 ms
max 589 ms
Phases
Setup 1 ms Call 1 ms Teardown 351 ms
Categories
Network 0.56 ms Other (DB schema, pytest, Unsampled, Libraries) 353 ms

1 database queries per run

Needs 4 KB of memory (max 12 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
setup2 ms0.3%
teardown587 ms99.6%
django_db_setuppytest_django/fixtures.py:199 teardown_databases(db_cfg, verbosity=request.config.option.verbose)587 ms99.6%
teardown_databasesdjango/test/utils.py:394587 ms99.6%
BaseDatabaseCreation.destroy_test_dbdjango/db/backends/base/creation.py:336587 ms99.6%
DatabaseCreation._destroy_test_dbdjango/db/backends/postgresql/creation.py:91587 ms99.6%
BaseDatabaseCreation._destroy_test_dbdjango/db/backends/base/creation.py:352573 ms97.2%
CursorWrapper.executedjango/db/backends/utils.py:79573 ms97.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92573 ms97.2%
CursorWrapper._executedjango/db/backends/utils.py:103573 ms97.2%
Cursor.executepsycopg/cursor.py:113573 ms97.2%
Connection.waitpsycopg/connection.py:495573 ms97.2%
BaseDatabaseCreation._destroy_test_dbdjango/db/backends/base/creation.py:35114 ms2.4%
DatabaseWrapper._nodb_cursordjango/db/backends/postgresql/base.py:52014 ms2.4%
BaseDatabaseWrapper._nodb_cursordjango/db/backends/base/base.py:71214 ms2.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2614 ms2.4%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:32014 ms2.4%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:29614 ms2.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2614 ms2.4%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27914 ms2.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2614 ms2.4%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25614 ms2.4%
DatabaseWrapper.get_new_connectionfedidevs/db/postgresql/base.py:39 return super().get_new_connection(conn_params)14 ms2.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2614 ms2.4%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34514 ms2.4%
Connection.connectpsycopg/connection.py:10914 ms2.4%
wait_connpsycopg/waiting.py:1459 ms1.5%
BaseConnection._connect_genpsycopg/_connection_base.py:4399 ms1.5%
wait_connpsycopg/waiting.py:1415 ms0.8%
EpollSelector.select<stdlib>/selectors.py:4525 ms0.8%
Estimated from 589 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

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

Fixtures

Exact setup time
_dj_autoclear_mailbox function 1 ms
_unittest_setUpClass_fixture_MastodonRatelimitHeaderTests class 0.06 ms
_django_setup_unittest class 0.05 ms
_template_string_if_invalid_marker function 0.03 ms
_django_db_marker function 0.03 ms
_django_isolate_apps function 0.03 ms
_live_server_helper function 0.03 ms
_django_set_urlconf function 0.02 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

1 queries · 574 ms
No repeated queries.

Biggest pieces of work

teardown fixture django_db_setup (session scope)
pytest_django/fixtures.py:199
587 ms
setup pytest internals 2 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 5 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 589 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 274 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 263 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 412 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 231 ms 4f01055 main Profile