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

TestPostsAfterDatetime::test_aware_start_of_day_in_conference_timezone

First seen 5 months ago in 36b9579
CI github-actions:test 13 runs
Average
30 ms
median 33 ms
max 40 ms
Phases
Setup 17 ms Call 13 ms Teardown 0.44 ms
Categories
Database 25 ms Factories 0.74 ms App code 0.34 ms Other (Unsampled, Libraries, pytest) 4 ms

6 database queries per run

Needs 17 KB of memory (max 172 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
setup10 ms48.2%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()10 ms48.2%
TestCase._enter_atomicsdjango/test/testcases.py:139910 ms48.2%
Atomic.__enter__django/db/transaction.py:21010 ms48.2%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45410 ms48.2%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30410 ms48.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms48.2%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27910 ms48.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms48.2%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25610 ms48.2%
DatabaseWrapper.get_new_connectionfedidevs/db/postgresql/base.py:39 return super().get_new_connection(conn_params)10 ms48.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms48.2%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34510 ms48.2%
Connection.connectpsycopg/connection.py:10910 ms48.2%
wait_connpsycopg/waiting.py:1418 ms35.1%
EpollSelector.select<stdlib>/selectors.py:4528 ms35.1%
wait_connpsycopg/waiting.py:1453 ms13.1%
BaseConnection._connect_genpsycopg/_connection_base.py:4393 ms13.1%
call11 ms51.0%
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")4 ms18.5%
makemodel_bakery/baker.py:1754 ms18.5%
Baker.makemodel_bakery/baker.py:4544 ms18.5%
Baker._makemodel_bakery/baker.py:5424 ms18.5%
Baker.instancemodel_bakery/baker.py:6594 ms18.5%
Model.savedjango/db/models/base.py:9044 ms18.5%
Model.save_basedjango/db/models/base.py:9964 ms18.5%
Model._save_tabledjango/db/models/base.py:11994 ms18.5%
Model._do_insertdjango/db/models/base.py:12514 ms18.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:874 ms18.5%
QuerySet._insertdjango/db/models/query.py:21414 ms18.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19363 ms13.9%
CursorWrapper.executedjango/db/backends/utils.py:793 ms13.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms13.9%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms13.9%
Cursor.executepsycopg/cursor.py:1133 ms13.9%
Connection.waitpsycopg/connection.py:4953 ms13.9%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19351 ms4.6%
SQLInsertCompiler.as_sqldjango/db/models/sql/compiler.py:18241 ms4.6%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()3 ms13.9%
TestCase._fixture_setupdjango/test/testcases.py:14813 ms13.9%
TestCase._enter_atomicsdjango/test/testcases.py:13993 ms13.9%
Atomic.__enter__django/db/transaction.py:2233 ms13.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms13.9%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4003 ms13.9%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3673 ms13.9%
CursorWrapper.executedjango/db/backends/utils.py:793 ms13.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms13.9%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms13.9%
Cursor.executepsycopg/cursor.py:1133 ms13.9%
Connection.waitpsycopg/connection.py:4953 ms13.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2042 ms9.3%
BaseCursor._start_querypsycopg/_cursor_base.py:3872 ms9.3%
BaseConnection._start_querypsycopg/_connection_base.py:5532 ms9.3%
BaseConnection._exec_commandpsycopg/_connection_base.py:4742 ms9.3%
TestPostsAfterDatetime.test_aware_start_of_day_in_conference_timezoneconfs/tests.py:1112 ms9.3%
Conference.posts_after_datetimeconfs/models.py:188 @property1 ms4.6%
SysMonitor.sysmon_py_startcoverage/sysmon.py:345 disp = self.should_trace(filename, frame) # type: ignore[arg-type]1 ms4.6%
Coverage._should_tracecoverage/control.py:4521 ms4.6%
InOrOut.should_tracecoverage/inorout.py:4011 ms4.6%
Conference.posts_after_datetimeconfs/models.py:199 return dt.datetime.combine(self.posts_after, dt.time.min, tzinfo=zoneinfo.ZoneInfo(self.time_zone))1 ms4.6%
load_data<stdlib>/zoneinfo/_common.py:331 ms4.6%
_TZifHeader.from_file<stdlib>/zoneinfo/_common.py:1571 ms4.6%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms9.3%
TestCase._fixture_teardowndjango/test/testcases.py:14981 ms4.6%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4951 ms4.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms4.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms4.6%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms4.6%
Cursor.executepsycopg/cursor.py:1131 ms4.6%
Connection.waitpsycopg/connection.py:4951 ms4.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms4.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms4.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms4.6%
TestCase._fixture_teardowndjango/test/testcases.py:15001 ms4.6%
TestCase._rollback_atomicsdjango/test/testcases.py:14081 ms4.6%
Atomic.__exit__django/db/transaction.py:2981 ms4.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms4.6%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4311 ms4.6%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3751 ms4.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms4.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms4.6%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms4.6%
Cursor.executepsycopg/cursor.py:1131 ms4.6%
Connection.waitpsycopg/connection.py:4951 ms4.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms4.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms4.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms4.6%
Estimated from 22 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 · Database
10 ms
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
4 ms
confs/models.py:188
@property
Conference.posts_after_datetime · Libraries
1 ms
confs/models.py:199
return dt.datetime.combine(self.posts_after, dt.time.min, tzinfo=zoneinfo.ZoneInfo(self.time_zone))
Conference.posts_after_datetime · Libraries
1 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestPostsAfterDatetime class 9 ms
_django_setup_unittest class 0.22 ms
_template_string_if_invalid_marker function 0.06 ms
_django_db_marker function 0.05 ms
_django_isolate_apps function 0.04 ms
_dj_autoclear_mailbox function 0.03 ms
_django_set_urlconf function 0.03 ms
_live_server_helper function 0.03 ms
_django_clear_site_cache function 0.03 ms
monkeypatch function 0.02 ms

Database

6 queries · 7 ms
No repeated queries.

Biggest pieces of work

setup setUpClass
django/test/testcases.py:1426
10 ms
call test body
confs/tests.py:110
6 ms
call _pre_setup
django/test/testcases.py:1167
3 ms
call _post_teardown
django/test/testcases.py:1243
2 ms

Reliability

14 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 14 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 22 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 39 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 37 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 16 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 34 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 25 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 35 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 25 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 40 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 18 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 40 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 33 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 32 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 12 ms 0c23747 main Run