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

TestSyncAnnouncements::test_post_at_uses_conference_timezone

First seen 1 month, 1 week ago in 0c23747
CI github-actions:test 13 runs
Average
25 ms
median 22 ms
max 50 ms
Phases
Setup 3 ms Call 23 ms Teardown 0.30 ms
Categories
Database 19 ms Factories 0.20 ms Test code 0.16 ms App code 0.08 ms Other (Libraries, pytest, Unsampled, Mocking, ...) 6 ms

12 database queries per run

Needs 11 KB of memory (max 24 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call19 ms95.3%
TestSyncAnnouncements.test_post_at_uses_conference_timezoneconfs/tests.py:987 self._sync()14 ms72.3%
TestSyncAnnouncements._syncconfs/tests.py:937 call_command("syncannouncements")14 ms72.3%
call_commanddjango/core/management/__init__.py:19514 ms72.3%
RichCommand.executedjango_rich/management/__init__.py:3414 ms72.3%
BaseCommand.executedjango/core/management/base.py:46614 ms72.3%
Command.handleconfs/management/commands/syncannouncements.py:1314 ms72.3%
sync_upcomingconfs/conference_announcements.py:10814 ms72.3%
sync_conferenceconfs/conference_announcements.py:97 conference.save(update_fields=changed)14 ms72.3%
Model.savedjango/db/models/base.py:90414 ms72.3%
Model.save_basedjango/db/models/base.py:99614 ms72.3%
Model._save_tabledjango/db/models/base.py:114014 ms72.3%
Model._do_updatedjango/db/models/base.py:124414 ms72.3%
QuerySet._updatedjango/db/models/query.py:144814 ms72.3%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:215014 ms72.3%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:212114 ms72.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162514 ms72.3%
CursorWrapper.executedjango/db/backends/utils.py:7914 ms72.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9214 ms72.3%
CursorWrapper._executedjango/db/backends/utils.py:10514 ms72.3%
Cursor.executepsycopg/cursor.py:11314 ms72.3%
Connection.waitpsycopg/connection.py:49514 ms72.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:20614 ms72.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28614 ms72.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7814 ms72.3%
TestSyncAnnouncements.test_post_at_uses_conference_timezoneconfs/tests.py:989 conference.refresh_from_db()1 ms6.6%
Model.refresh_from_dbdjango/db/models/base.py:7730.64 ms3.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:870.64 ms3.3%
QuerySet.filterdjango/db/models/query.py:16760.64 ms3.3%
QuerySet._filter_or_excludedjango/db/models/query.py:16940.64 ms3.3%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17040.64 ms3.3%
Query.add_qdjango/db/models/sql/query.py:16810.64 ms3.3%
Query._add_qdjango/db/models/sql/query.py:17250.64 ms3.3%
Model.refresh_from_dbdjango/db/models/base.py:7880.64 ms3.3%
QuerySet.getdjango/db/models/query.py:7020.64 ms3.3%
QuerySet.__len__django/db/models/query.py:4210.64 ms3.3%
QuerySet._fetch_alldjango/db/models/query.py:22620.64 ms3.3%
ModelIterable.__iter__django/db/models/query.py:1030.64 ms3.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16250.64 ms3.3%
CursorWrapper.executedjango/db/backends/utils.py:790.64 ms3.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.64 ms3.3%
CursorWrapper._executedjango/db/backends/utils.py:1050.64 ms3.3%
Cursor.executepsycopg/cursor.py:1130.64 ms3.3%
Connection.waitpsycopg/connection.py:4950.64 ms3.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.64 ms3.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2860.64 ms3.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:780.64 ms3.3%
TestSyncAnnouncements.test_post_at_uses_conference_timezoneconfs/tests.py:991 self.assertEqual(conference.start_announcement.post_at, dt.datetime(2026, 6, 1, 15, 0, tzinfo=dt.UTC))1 ms6.6%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2661 ms6.6%
FetchOne.fetchdjango/db/models/fetch_modes.py:170.64 ms3.3%
ForwardManyToOneDescriptor.fetch_onedjango/db/models/fields/related_descriptors.py:2790.64 ms3.3%
ForwardOneToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:4090.64 ms3.3%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2310.64 ms3.3%
QuerySet.getdjango/db/models/query.py:7020.64 ms3.3%
QuerySet.__len__django/db/models/query.py:4210.64 ms3.3%
QuerySet._fetch_alldjango/db/models/query.py:22620.64 ms3.3%
ModelIterable.__iter__django/db/models/query.py:1030.64 ms3.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16580.64 ms3.3%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()1 ms6.6%
TestCase._fixture_teardowndjango/test/testcases.py:14980.64 ms3.3%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4950.64 ms3.3%
CursorWrapper.executedjango/db/backends/utils.py:790.64 ms3.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.64 ms3.3%
CursorWrapper._executedjango/db/backends/utils.py:1030.64 ms3.3%
Cursor.executepsycopg/cursor.py:1130.64 ms3.3%
Connection.waitpsycopg/connection.py:4950.64 ms3.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.64 ms3.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2860.64 ms3.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:780.64 ms3.3%
TestCase._fixture_teardowndjango/test/testcases.py:15000.64 ms3.3%
TestCase._rollback_atomicsdjango/test/testcases.py:14080.64 ms3.3%
Atomic.__exit__django/db/transaction.py:2950.64 ms3.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.64 ms3.3%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4120.64 ms3.3%
BaseDatabaseWrapper.validate_thread_sharingdjango/db/backends/base/base.py:6440.64 ms3.3%
BaseDatabaseWrapper.allow_thread_sharingdjango/db/backends/base/base.py:6230.64 ms3.3%
Estimated from 29 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

confs/conference_announcements.py:97
conference.save(update_fields=changed)
sync_conference · Database
14 ms
confs/tests.py:989
conference.refresh_from_db()
TestSyncAnnouncements.test_post_at_uses_conference_timezone · Database
1 ms
confs/tests.py:991
self.assertEqual(conference.start_announcement.post_at, dt.datetime(2026, 6, 1, 15, 0, tzinfo=dt.UTC))
TestSyncAnnouncements.test_post_at_uses_conference_timezone · Database
1 ms

Fixtures

Exact setup time
_template_string_if_invalid_marker function 0.04 ms
_dj_autoclear_mailbox function 0.03 ms
_django_db_marker function 0.03 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.02 ms
monkeypatch function 0.02 ms

Database

12 queries · 7 ms
No repeated queries.

Biggest pieces of work

call test body
confs/tests.py:987
17 ms
call _post_teardown
django/test/testcases.py:1243
1 ms
call pytest internals 0.64 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 20 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 16 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 17 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 17 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 14 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 27 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 38 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 22 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 30 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 16 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 24 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 38 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 50 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 11 ms 0c23747 main Run