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

TestStats::test_all_daily_lang_stats

First seen 2 years, 11 months ago in 1cd3a8d
CI github-actions:test 11 runs
Average
25 ms
median 21 ms
max 39 ms
Phases
Setup 19 ms Call 5 ms Teardown 0.69 ms
Categories
Database 23 ms Other (pytest, Unsampled, Mocking, Libraries) 2 ms

5 database queries per run

Needs 0 KB of memory (max 0 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
setup16 ms80.1%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()15 ms74.8%
TestCase._enter_atomicsdjango/test/testcases.py:139915 ms74.8%
Atomic.__enter__django/db/transaction.py:21015 ms74.8%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45415 ms74.8%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30415 ms74.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2615 ms74.8%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27915 ms74.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2615 ms74.8%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25615 ms74.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2615 ms74.8%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34515 ms74.8%
Connection.connectpsycopg/connection.py:10915 ms74.8%
wait_connpsycopg/waiting.py:1458 ms37.4%
BaseConnection._connect_genpsycopg/_connection_base.py:4398 ms37.4%
wait_connpsycopg/waiting.py:1417 ms32.1%
EpollSelector.select<stdlib>/selectors.py:4527 ms32.1%
wait_connpsycopg/waiting.py:1361 ms5.3%
BaseConnection._connect_genpsycopg/_connection_base.py:4391 ms5.3%
__init____init__:-11 ms5.3%
call3 ms15.5%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()3 ms15.5%
TestCase._fixture_teardowndjango/test/testcases.py:14982 ms7.8%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4942 ms7.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms7.8%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3202 ms7.8%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2982 ms7.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms7.8%
TestCase._fixture_teardowndjango/test/testcases.py:15002 ms7.8%
TestCase._rollback_atomicsdjango/test/testcases.py:14082 ms7.8%
Atomic.__exit__django/db/transaction.py:2982 ms7.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms7.8%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms7.8%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms7.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms7.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms7.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms7.8%
Cursor.executepsycopg/cursor.py:1132 ms7.8%
Connection.waitpsycopg/connection.py:4952 ms7.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms7.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms7.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms7.8%
Estimated from 17 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestStats class 14 ms
_django_setup_unittest class 0.32 ms
_template_string_if_invalid_marker function 0.09 ms
_django_db_marker function 0.09 ms
_live_server_helper function 0.08 ms
_django_isolate_apps function 0.07 ms
_django_set_urlconf function 0.07 ms
_dj_autoclear_mailbox function 0.06 ms
monkeypatch function 0.04 ms
_django_clear_site_cache function 0.04 ms

Database

5 queries · 2 ms
No repeated queries.

Biggest pieces of work

setup setUpClass
django/test/testcases.py:1426
15 ms
call _post_teardown
django/test/testcases.py:1243
3 ms
setup __init__
__init__:-1
1 ms

Reliability

12 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 12 results, oldest first in the strip
When Environment Outcome Duration Commit
7 hours ago CI github-actions:test passed 21 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 13 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 36 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 16 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 25 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 18 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 20 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 16 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 27 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 39 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 38 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 2 ms 0c23747 main Run