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

TestPostsAfterDatetime::test_aware_start_of_day_in_conference_timezone

First seen 3 months, 3 weeks ago in 36b9579
CI github-actions:test 4 runs
Average
31 ms
median 33 ms
max 40 ms
Phases
Setup 18 ms Call 12 ms Teardown 0.30 ms
Categories
Database 20 ms App code 0.85 ms Other (Unsampled, Libraries, pytest) 10 ms

6 database queries per run

Needs 44 KB of memory (max 172 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 8 hours ago · open run
Hide pytest frames
setup11 ms58.8%
CallInfo.from_call_pytest/runner.py:36111 ms58.8%
call_and_report.<locals>.<lambda>_pytest/runner.py:25011 ms58.8%
HookCaller.__call__pluggy/_hooks.py:51211 ms58.8%
PluginManager._hookexecpluggy/_manager.py:12011 ms58.8%
_multicallpluggy/_callers.py:12111 ms58.8%
pytest_runtest_setup_pytest/runner.py:17011 ms58.8%
SetupState.setup_pytest/runner.py:53611 ms58.8%
TestCaseFunction.setup_pytest/unittest.py:24811 ms58.8%
Function.setup_pytest/python.py:171011 ms58.8%
TopRequest._fillfixtures_pytest/fixtures.py:80611 ms58.8%
FixtureRequest.getfixturevalue_pytest/fixtures.py:63011 ms58.8%
FixtureRequest._get_active_fixturedef_pytest/fixtures.py:72611 ms58.8%
FixtureDef.execute_pytest/fixtures.py:123210 ms53.4%
HookCaller.__call__pluggy/_hooks.py:51210 ms53.4%
PluginManager._hookexecpluggy/_manager.py:12010 ms53.4%
_multicallpluggy/_callers.py:12110 ms53.4%
pytest_fixture_setup_pytest/fixtures.py:132810 ms53.4%
call_fixture_func_pytest/fixtures.py:99810 ms53.4%
UnitTestCase._register_unittest_setup_class_fixture.<locals>.unittest_setup_class_fixture_pytest/unittest.py:15910 ms53.4%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()10 ms53.4%
TestCase._enter_atomicsdjango/test/testcases.py:139910 ms53.4%
Atomic.__enter__django/db/transaction.py:21010 ms53.4%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45410 ms53.4%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30410 ms53.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms53.4%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27910 ms53.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms53.4%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25610 ms53.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms53.4%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34510 ms53.4%
Connection.connectpsycopg/connection.py:10910 ms53.4%
wait_connpsycopg/waiting.py:1414 ms21.4%
EpollSelector.select<stdlib>/selectors.py:4524 ms21.4%
wait_connpsycopg/waiting.py:1454 ms21.4%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms21.4%
wait_connpsycopg/waiting.py:1362 ms10.7%
BaseConnection._connect_genpsycopg/_connection_base.py:4392 ms10.7%
call7 ms40.0%
CallInfo.from_call_pytest/runner.py:3617 ms40.0%
call_and_report.<locals>.<lambda>_pytest/runner.py:2507 ms40.0%
HookCaller.__call__pluggy/_hooks.py:5127 ms40.0%
PluginManager._hookexecpluggy/_manager.py:1207 ms40.0%
_multicallpluggy/_callers.py:1217 ms40.0%
pytest_runtest_call_pytest/runner.py:1847 ms40.0%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:6147 ms40.0%
SimpleTestCase.__call__django/test/testcases.py:3147 ms40.0%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3695 ms26.7%
TestCase.__call__<stdlib>/unittest/case.py:7475 ms26.7%
TestCase.run<stdlib>/unittest/case.py:6915 ms26.7%
TestCase._callTestMethod<stdlib>/unittest/case.py:6375 ms26.7%
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 ms20.0%
makemodel_bakery/baker.py:1754 ms20.0%
Baker.makemodel_bakery/baker.py:4544 ms20.0%
Baker._makemodel_bakery/baker.py:5424 ms20.0%
Baker.instancemodel_bakery/baker.py:6594 ms20.0%
Model.savedjango/db/models/base.py:9044 ms20.0%
Model.save_basedjango/db/models/base.py:9964 ms20.0%
Model._save_tabledjango/db/models/base.py:11994 ms20.0%
Model._do_insertdjango/db/models/base.py:12514 ms20.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:874 ms20.0%
QuerySet._insertdjango/db/models/query.py:21414 ms20.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19364 ms20.0%
CursorWrapper.executedjango/db/backends/utils.py:794 ms20.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms20.0%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1004 ms20.0%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms20.0%
Cursor.executepsycopg/cursor.py:1134 ms20.0%
Connection.waitpsycopg/connection.py:4954 ms20.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2064 ms20.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2864 ms20.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:784 ms20.0%
TestPostsAfterDatetime.test_aware_start_of_day_in_conference_timezoneconfs/tests.py:1111 ms6.7%
Conference.posts_after_datetimeconfs/models.py:199 return dt.datetime.combine(self.posts_after, dt.time.min, tzinfo=zoneinfo.ZoneInfo(self.time_zone))1 ms6.7%
find_tzfile<stdlib>/zoneinfo/_tzpath.py:781 ms6.7%
SysMonitor.sysmon_py_startcoverage/sysmon.py:345 disp = self.should_trace(filename, frame) # type: ignore[arg-type]1 ms6.7%
Coverage._should_tracecoverage/control.py:4521 ms6.7%
InOrOut.should_tracecoverage/inorout.py:4391 ms6.7%
InOrOut.check_include_omit_etccoverage/inorout.py:4691 ms6.7%
TreeMatcher.matchcoverage/files.py:2751 ms6.7%
abs_filecoverage/files.py:1581 ms6.7%
realpath<frozen posixpath>:4601 ms6.7%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3601 ms6.7%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()1 ms6.7%
TestCase._fixture_setupdjango/test/testcases.py:14811 ms6.7%
TestCase._enter_atomicsdjango/test/testcases.py:13991 ms6.7%
Atomic.__enter__django/db/transaction.py:2231 ms6.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms6.7%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4001 ms6.7%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3671 ms6.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms6.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms6.7%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1001 ms6.7%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms6.7%
Cursor.executepsycopg/cursor.py:1131 ms6.7%
Connection.waitpsycopg/connection.py:4951 ms6.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2041 ms6.7%
BaseCursor._start_querypsycopg/_cursor_base.py:3871 ms6.7%
BaseConnection._start_querypsycopg/_connection_base.py:5531 ms6.7%
BaseConnection._exec_commandpsycopg/_connection_base.py:4741 ms6.7%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3721 ms6.7%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()1 ms6.7%
TestCase._fixture_teardowndjango/test/testcases.py:14981 ms6.7%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4951 ms6.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms6.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms6.7%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1001 ms6.7%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms6.7%
Cursor.executepsycopg/cursor.py:1131 ms6.7%
Connection.waitpsycopg/connection.py:4951 ms6.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms6.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms6.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms6.7%
Estimated from 17 samples; phase durations are exact. Frames from pytest and pluggy are shown .

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
4 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.31 ms
_template_string_if_invalid_marker function 0.05 ms
_django_db_marker function 0.04 ms
_dj_autoclear_mailbox function 0.04 ms
_django_isolate_apps function 0.03 ms
_live_server_helper function 0.03 ms
_django_set_urlconf function 0.03 ms
_django_clear_site_cache function 0.03 ms
monkeypatch function 0.02 ms

Database

6 queries · 4 ms
No repeated queries.

Biggest pieces of work

setup setUpClass
django/test/testcases.py:1426
10 ms
call test body
confs/tests.py:110
5 ms
call _pre_setup
django/test/testcases.py:1167
1 ms
call _post_teardown
django/test/testcases.py:1243
1 ms
setup pytest internals 0.96 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 8 results, oldest first in the strip
When Environment Outcome Duration Commit
8 hours ago CI github-actions:test passed 18 ms d923a46 main Profile
8 hours ago CI github-actions:test passed 40 ms 82997f8 main Profile
8 hours ago CI github-actions:test passed 33 ms 623aa3e main Profile
13 hours ago CI github-actions:test passed 32 ms ab6465a main Profile
14 hours ago CI github-actions:test passed 12 ms 0c23747 main Run
3 months, 3 weeks ago CI github-actions passed 6 ms 69d78ea HEAD Run
3 months, 3 weeks ago CI github-actions passed 9 ms 8fac7b5 main Run
3 months, 3 weeks ago CI github-actions passed 9 ms 36b9579 main Run