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

TestPostsAfterDatetime::test_aware_start_of_day_in_conference_timezone

First seen 4 months, 2 weeks ago in 36b9579
CI github-actions:test 11 runs
Average
30 ms
median 33 ms
max 40 ms
Phases
Setup 17 ms Call 13 ms Teardown 0.47 ms
Categories
Database 24 ms Factories 0.78 ms App code 0.31 ms Other (Unsampled, Libraries, pytest) 5 ms

6 database queries per run

Needs 19 KB of memory (max 172 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
setup22 ms60.4%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()20 ms55.3%
TestCase._enter_atomicsdjango/test/testcases.py:139920 ms55.3%
Atomic.__enter__django/db/transaction.py:21020 ms55.3%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45420 ms55.3%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30420 ms55.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2620 ms55.3%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27920 ms55.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2620 ms55.3%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25620 ms55.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2620 ms55.3%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34520 ms55.3%
Connection.connectpsycopg/connection.py:10920 ms54.3%
wait_connpsycopg/waiting.py:14114 ms38.2%
EpollSelector.select<stdlib>/selectors.py:45214 ms38.2%
wait_connpsycopg/waiting.py:1455 ms13.1%
BaseConnection._connect_genpsycopg/_connection_base.py:4395 ms13.1%
wait_connpsycopg/waiting.py:1361 ms3.0%
BaseConnection._connect_genpsycopg/_connection_base.py:4391 ms3.0%
Connection.connectpsycopg/connection.py:1070.37 ms1.0%
make_conninfopsycopg/conninfo.py:620.37 ms1.0%
_parse_conninfopsycopg/conninfo.py:1010.37 ms1.0%
__init____init__:-10.37 ms1.0%
signature<stdlib>/inspect.py:33430.37 ms1.0%
call14 ms38.5%
TestPostsAfterDatetime.test_aware_start_of_day_in_conference_timezoneconfs/tests.py:110 conference = baker.make(Conference, posts_after=dt.date(2025, 11, 28), time_zone="America/New_York")8 ms22.0%
makemodel_bakery/baker.py:1758 ms22.0%
Baker.makemodel_bakery/baker.py:4548 ms22.0%
Baker._makemodel_bakery/baker.py:5426 ms16.5%
Baker.instancemodel_bakery/baker.py:6596 ms16.5%
Model.savedjango/db/models/base.py:9046 ms16.5%
Model.save_basedjango/db/models/base.py:9966 ms16.5%
Model._save_tabledjango/db/models/base.py:11996 ms16.5%
Model._do_insertdjango/db/models/base.py:12516 ms16.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:876 ms16.5%
QuerySet._insertdjango/db/models/query.py:21416 ms16.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19366 ms16.5%
CursorWrapper.executedjango/db/backends/utils.py:796 ms16.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:926 ms16.5%
CursorWrapper._executedjango/db/backends/utils.py:1056 ms16.5%
Cursor.executepsycopg/cursor.py:1136 ms16.5%
Connection.waitpsycopg/connection.py:4956 ms16.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2064 ms11.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2864 ms11.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:784 ms11.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2052 ms5.5%
BaseCursor._convert_querypsycopg/_cursor_base.py:4652 ms5.5%
PostgresClientQuery.convertpsycopg/_queries.py:2892 ms5.5%
PostgresClientQuery.dumppsycopg/_queries.py:2992 ms5.5%
PostgresClientQuery.dump.<locals>.<genexpr>psycopg/_queries.py:3002 ms5.5%
Baker._makemodel_bakery/baker.py:5292 ms5.5%
Baker.generate_valuemodel_bakery/baker.py:10082 ms5.5%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()5 ms13.7%
TestCase._fixture_teardowndjango/test/testcases.py:14984 ms11.0%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4954 ms11.0%
CursorWrapper.executedjango/db/backends/utils.py:794 ms11.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms11.0%
CursorWrapper._executedjango/db/backends/utils.py:1034 ms11.0%
Cursor.executepsycopg/cursor.py:1134 ms11.0%
Connection.waitpsycopg/connection.py:4954 ms11.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2064 ms11.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2864 ms11.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:784 ms11.0%
TestCase._fixture_teardowndjango/test/testcases.py:15001 ms2.7%
TestCase._rollback_atomicsdjango/test/testcases.py:14081 ms2.7%
Atomic.__exit__django/db/transaction.py:2981 ms2.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms2.7%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4311 ms2.7%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3751 ms2.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms2.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms2.7%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms2.7%
Cursor.executepsycopg/cursor.py:1131 ms2.7%
Connection.waitpsycopg/connection.py:4951 ms2.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms2.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms2.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms2.7%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()1 ms2.7%
TestCase._fixture_setupdjango/test/testcases.py:14811 ms2.7%
TestCase._enter_atomicsdjango/test/testcases.py:13991 ms2.7%
Atomic.__enter__django/db/transaction.py:2231 ms2.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms2.7%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4001 ms2.7%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3671 ms2.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms2.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms2.7%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms2.7%
Cursor.executepsycopg/cursor.py:1131 ms2.7%
Connection.waitpsycopg/connection.py:4951 ms2.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2041 ms2.7%
BaseCursor._start_querypsycopg/_cursor_base.py:3871 ms2.7%
BaseConnection._start_querypsycopg/_connection_base.py:5531 ms2.7%
BaseConnection._exec_commandpsycopg/_connection_base.py:4741 ms2.7%
teardown0.42 ms1.1%
Estimated from 75 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

confs/tests.py:110
conference = baker.make(Conference, posts_after=dt.date(2025, 11, 28), time_zone="America/New_York")
TestPostsAfterDatetime.test_aware_start_of_day_in_conference_timezone · Database
8 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestPostsAfterDatetime class 19 ms
_django_setup_unittest class 0.41 ms
_django_db_marker function 0.09 ms
_template_string_if_invalid_marker function 0.06 ms
_django_isolate_apps function 0.06 ms
_live_server_helper function 0.05 ms
_django_set_urlconf function 0.05 ms
_dj_autoclear_mailbox function 0.05 ms
_django_clear_site_cache function 0.04 ms
monkeypatch function 0.03 ms

Database

6 queries · 8 ms
No repeated queries.

Biggest pieces of work

setup setUpClass
django/test/testcases.py:1426
20 ms
call test body
confs/tests.py:110
8 ms
call _post_teardown
django/test/testcases.py:1243
5 ms
setup pytest internals 1 ms
call _pre_setup
django/test/testcases.py:1167
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 37 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 16 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 34 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 25 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 35 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 25 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 40 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 18 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 40 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 33 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 32 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 12 ms 0c23747 main Run