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

TestStats::test_all_daily_lang_stats

First seen 2 years, 10 months ago in 1cd3a8d
CI github-actions:test 4 runs
Average
30 ms
median 33 ms
max 39 ms
Phases
Setup 24 ms Call 6 ms Teardown 0.61 ms
Categories
Database 28 ms Other (Unsampled, Mocking, pytest, Libraries) 3 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, 8 hours ago · open run
Show pytest frames
setup13 ms76.3%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()12 ms70.0%
TestCase._enter_atomicsdjango/test/testcases.py:139912 ms70.0%
Atomic.__enter__django/db/transaction.py:21012 ms70.0%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45412 ms70.0%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30412 ms70.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2612 ms70.0%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27912 ms70.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2612 ms70.0%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25610 ms63.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms63.6%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34510 ms63.6%
Connection.connectpsycopg/connection.py:10910 ms63.6%
wait_connpsycopg/waiting.py:1415 ms31.8%
EpollSelector.select<stdlib>/selectors.py:4525 ms31.8%
wait_connpsycopg/waiting.py:1455 ms31.8%
BaseConnection._connect_genpsycopg/_connection_base.py:4395 ms31.8%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2591 ms6.4%
Signal.senddjango/dispatch/dispatcher.py:2431 ms6.4%
call4 ms22.1%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()3 ms16.6%
TestCase._fixture_teardowndjango/test/testcases.py:15002 ms11.1%
TestCase._rollback_atomicsdjango/test/testcases.py:14082 ms11.1%
Atomic.__exit__django/db/transaction.py:2950.91 ms5.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.91 ms5.5%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4130.91 ms5.5%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3710.91 ms5.5%
CursorWrapper.executedjango/db/backends/utils.py:790.91 ms5.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.91 ms5.5%
CursorWrapper._executedjango/db/backends/utils.py:1030.91 ms5.5%
Cursor.executepsycopg/cursor.py:1130.91 ms5.5%
Connection.waitpsycopg/connection.py:4950.91 ms5.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.91 ms5.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3120.91 ms5.5%
Atomic.__exit__django/db/transaction.py:2980.91 ms5.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.91 ms5.5%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4310.91 ms5.5%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3750.91 ms5.5%
CursorWrapper.executedjango/db/backends/utils.py:790.91 ms5.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.91 ms5.5%
CursorWrapper._executedjango/db/backends/utils.py:1030.91 ms5.5%
Cursor.executepsycopg/cursor.py:1130.91 ms5.5%
Connection.waitpsycopg/connection.py:4950.91 ms5.5%
TestCase._fixture_teardowndjango/test/testcases.py:14980.91 ms5.5%
BaseConnectionHandler.__getitem__django/utils/connection.py:580.91 ms5.5%
Local.__getattr__asgiref/local.py:1580.91 ms5.5%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()0.91 ms5.5%
TestCase._fixture_setupdjango/test/testcases.py:14810.91 ms5.5%
TestCase._enter_atomicsdjango/test/testcases.py:13990.91 ms5.5%
Atomic.__enter__django/db/transaction.py:2230.91 ms5.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.91 ms5.5%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4000.91 ms5.5%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3670.91 ms5.5%
CursorWrapper.executedjango/db/backends/utils.py:790.91 ms5.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.91 ms5.5%
CursorWrapper._executedjango/db/backends/utils.py:1030.91 ms5.5%
Cursor.executepsycopg/cursor.py:1130.91 ms5.5%
Connection.waitpsycopg/connection.py:4950.91 ms5.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2040.91 ms5.5%
BaseCursor._start_querypsycopg/_cursor_base.py:3870.91 ms5.5%
BaseConnection._start_querypsycopg/_connection_base.py:5530.91 ms5.5%
BaseConnection._exec_commandpsycopg/_connection_base.py:4740.91 ms5.5%
Estimated from 16 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestStats class 11 ms
_django_setup_unittest class 0.30 ms
_django_isolate_apps function 0.06 ms
_template_string_if_invalid_marker function 0.05 ms
_dj_autoclear_mailbox function 0.05 ms
_django_db_marker function 0.04 ms
_live_server_helper function 0.03 ms
_django_set_urlconf function 0.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

5 queries · 2 ms
No repeated queries.

Biggest pieces of work

setup setUpClass
django/test/testcases.py:1426
12 ms
call _post_teardown
django/test/testcases.py:1243
3 ms
setup pytest internals 1 ms
call _pre_setup
django/test/testcases.py:1167
0.91 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 50 results, oldest first in the strip
When Environment Outcome Duration Commit
8 hours ago CI github-actions:test passed 16 ms d923a46 main Profile
8 hours ago CI github-actions:test passed 27 ms 82997f8 main Profile
8 hours ago CI github-actions:test passed 39 ms 623aa3e main Profile
13 hours ago CI github-actions:test passed 38 ms ab6465a main Profile
13 hours ago CI github-actions:test passed 2 ms 0c23747 main Run
3 months, 3 weeks ago CI github-actions passed 1 ms 69d78ea HEAD Run
3 months, 3 weeks ago CI github-actions passed 2 ms 8fac7b5 main Run
3 months, 3 weeks ago CI github-actions passed 2 ms 36b9579 main Run
3 months, 3 weeks ago CI github-actions passed 2 ms 553d048 main Run
3 months, 3 weeks ago CI github-actions passed 2 ms 8eb0f44 HEAD Run
3 months, 3 weeks ago CI github-actions passed 2 ms e0fb3ac HEAD Run
3 months, 3 weeks ago CI github-actions passed 2 ms a849b58 HEAD Run
3 months, 3 weeks ago CI github-actions passed 2 ms 6418e05 HEAD Run
3 months, 3 weeks ago CI github-actions passed 2 ms 5b9b309 main Run
3 months, 4 weeks ago CI github-actions passed 2 ms 1f2c5a6 main Run
3 months, 4 weeks ago CI github-actions passed 2 ms 5ec7fa8 main Run
3 months, 4 weeks ago CI github-actions passed 2 ms 1e42064 main Run
3 months, 4 weeks ago CI github-actions passed 2 ms fcb1b79 main Run
3 months, 4 weeks ago CI github-actions passed 2 ms 1460ac2 HEAD Run
3 months, 4 weeks ago CI github-actions passed 2 ms 8129f09 HEAD Run