flakytest.dev anze3db flakytest
Tests / apps/projects/tests.py

ClassifyStreaksTest::test_dirty_runs_are_not_the_same_commit

First seen 1 month, 1 week ago in 78a4357
CI github-actions:test 15 runs
Average
11 ms
median 12 ms
max 15 ms
Phases
Setup 9 ms Call 2 ms Teardown 0.14 ms
Categories
Database 10 ms App code 0.07 ms Other (pytest, Unsampled, Libraries, Mocking) 1 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, 2 weeks ago · open run
Show pytest frames
setup8 ms83.5%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()8 ms83.5%
TestCase._enter_atomicsdjango/test/testcases.py:13968 ms83.5%
Atomic.__enter__django/db/transaction.py:1988 ms83.5%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4548 ms83.5%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3038 ms83.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms83.5%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2798 ms83.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms83.5%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2567 ms71.6%
DatabaseWrapper.get_new_connectionft/db/postgresql/base.py:39 return super().get_new_connection(conn_params)7 ms71.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:267 ms71.6%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3337 ms71.6%
Connection.connectpsycopg/connection.py:1097 ms71.6%
wait_connpsycopg/waiting.py:1454 ms35.8%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms35.8%
wait_connpsycopg/waiting.py:1412 ms23.9%
EpollSelector.select<stdlib>/selectors.py:4522 ms23.9%
wait_connpsycopg/waiting.py:1361 ms11.9%
BaseConnection._connect_genpsycopg/_connection_base.py:4391 ms11.9%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2581 ms11.9%
DatabaseWrapper.init_connection_statedjango/db/backends/postgresql/base.py:4021 ms11.9%
DatabaseWrapper._configure_connectiondjango/db/backends/postgresql/base.py:3741 ms11.9%
DatabaseWrapper._configure_timezonedjango/db/backends/postgresql/base.py:3571 ms11.9%
Cursor.executepsycopg/cursor.py:1131 ms11.9%
Connection.waitpsycopg/connection.py:4951 ms11.9%
call2 ms15.3%
TransactionTestCase._pre_setupdjango/test/testcases.py:1164 cls._fixture_setup()0.77 ms7.7%
TestCase._fixture_setupdjango/test/testcases.py:14780.77 ms7.7%
TestCase._enter_atomicsdjango/test/testcases.py:13960.77 ms7.7%
Atomic.__enter__django/db/transaction.py:2110.77 ms7.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.77 ms7.7%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4000.77 ms7.7%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3670.77 ms7.7%
CursorWrapper.executedjango/db/backends/utils.py:790.77 ms7.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.77 ms7.7%
CursorWrapper._executedjango/db/backends/utils.py:1030.77 ms7.7%
Cursor.executepsycopg/cursor.py:1130.77 ms7.7%
Connection.waitpsycopg/connection.py:4950.77 ms7.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2040.77 ms7.7%
BaseCursor._start_querypsycopg/_cursor_base.py:3870.77 ms7.7%
BaseConnection._start_querypsycopg/_connection_base.py:5530.77 ms7.7%
BaseConnection._exec_commandpsycopg/_connection_base.py:4740.77 ms7.7%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()0.77 ms7.7%
TestCase._fixture_teardowndjango/test/testcases.py:14970.77 ms7.7%
TestCase._rollback_atomicsdjango/test/testcases.py:14050.77 ms7.7%
Estimated from 9 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

ft/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection · Database
7 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_ClassifyStreaksTest class 7 ms
_django_setup_unittest class 0.21 ms
_dj_autoclear_mailbox function 0.04 ms
_django_db_marker function 0.04 ms
_template_string_if_invalid_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 · 0.65 ms
No repeated queries.

Biggest pieces of work

setup setUpClass
django/test/testcases.py:1423
8 ms
call _pre_setup
django/test/testcases.py:1164
0.77 ms
call _post_teardown
django/test/testcases.py:1240
0.77 ms

Reliability

15 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 15 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 10 ms cb18ed3 main Profile
2 weeks, 4 days ago CI github-actions:test passed 13 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 8 ms 19dac9b main Profile
3 weeks ago CI github-actions:test passed 11 ms e141198 main Profile
1 month ago CI github-actions:test passed 9 ms 46ec2aa main Profile
1 month ago CI github-actions:test passed 13 ms afde85b main Profile
1 month ago CI github-actions:test passed 10 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 13 ms 044719a main Profile
1 month ago CI github-actions:test passed 9 ms b3fedae main Profile
1 month, 1 week ago CI github-actions:test passed 12 ms 43c4eda main Profile
1 month, 1 week ago CI github-actions:test passed 12 ms 9caa567 main Profile
1 month, 1 week ago CI github-actions:test passed 12 ms ec75501 main Profile
1 month, 1 week ago CI github-actions:test passed 15 ms d2c12e5 main Profile
1 month, 1 week ago CI github-actions:test passed 9 ms 0b902f6 main Profile
1 month, 1 week ago CI github-actions:test passed 13 ms 78a4357 main Profile