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

TestSyncAnnouncements::test_is_idempotent_and_refreshes_unposted_content

First seen 3 weeks ago in 0c23747
CI github-actions:test 11 runs
Average
2.97 s
median 49 ms
max 8.58 s
Phases
Setup 2.87 s Call 95 ms Teardown 0.72 ms
Categories
Migrations 2.61 s Database 32 ms Factories 0.67 ms App code 0.52 ms Other (DB schema, Imports, Libraries, pytest, ...) 320 ms

498 database queries per run

Needs 16 MB of memory (max 39 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
setup6.39 s97.1%
django_db_setuppytest_django/fixtures.py:186 db_cfg = setup_databases(6.39 s97.1%
setup_databasesdjango/test/utils.py:2206.39 s97.1%
BaseDatabaseCreation.create_test_dbdjango/db/backends/base/creation.py:916.22 s94.6%
call_commanddjango/core/management/__init__.py:1956.18 s93.9%
BaseCommand.executedjango/core/management/base.py:4666.18 s93.9%
no_translations.<locals>.wrapperdjango/core/management/base.py:1136.18 s93.9%
Command.handledjango/core/management/commands/migrate.py:3555.82 s88.5%
MigrationExecutor.migratedjango/db/migrations/executor.py:1375.80 s88.2%
MigrationExecutor._migrate_all_forwardsdjango/db/migrations/executor.py:1695.80 s88.2%
MigrationExecutor.apply_migrationdjango/db/migrations/executor.py:2574.39 s66.7%
Migration.applydjango/db/migrations/migration.py:1322.22 s33.8%
AddField.database_forwardsdjango/db/migrations/operations/fields.py:118749 ms11.4%
BaseDatabaseSchemaEditor.add_fielddjango/db/backends/base/schema.py:816415 ms6.3%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:48325 ms4.9%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:211314 ms4.8%
CursorWrapper.executedjango/db/backends/utils.py:79314 ms4.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92313 ms4.8%
CursorWrapper._executedjango/db/backends/utils.py:103313 ms4.8%
Cursor.executepsycopg/cursor.py:113313 ms4.8%
Connection.waitpsycopg/connection.py:495313 ms4.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:20674 ms1.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28673 ms1.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7873 ms1.1%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4580 ms1.2%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21174 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:7974 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9274 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:10374 ms1.1%
Cursor.executepsycopg/cursor.py:11374 ms1.1%
Connection.waitpsycopg/connection.py:49574 ms1.1%
2 smaller frames hidden
1 smaller frames hidden
BaseDatabaseSchemaEditor.add_fielddjango/db/backends/base/schema.py:830282 ms4.3%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:48277 ms4.2%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:211274 ms4.2%
CursorWrapper.executedjango/db/backends/utils.py:79274 ms4.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92274 ms4.2%
CursorWrapper._executedjango/db/backends/utils.py:103274 ms4.2%
Cursor.executepsycopg/cursor.py:113274 ms4.2%
Connection.waitpsycopg/connection.py:495274 ms4.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:20648 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28648 ms0.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7848 ms0.7%
2 smaller frames hidden
1 smaller frames hidden
BaseDatabaseSchemaEditor.add_fielddjango/db/backends/base/schema.py:76734 ms0.5%
BaseDatabaseSchemaEditor.create_modeldjango/db/backends/base/schema.py:52434 ms0.5%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4534 ms0.5%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21134 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:7934 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9234 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:10334 ms0.5%
Cursor.executepsycopg/cursor.py:11334 ms0.5%
Connection.waitpsycopg/connection.py:49534 ms0.5%
5 smaller frames hidden
RunPython.database_forwardsdjango/db/migrations/operations/special.py:203576 ms8.8%
seed_conference_tagsconfs/migrations/0031_seed_conference_tags.py:14 ConferenceTag.objects.update_or_create(210 ms3.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:87210 ms3.2%
QuerySet.update_or_createdjango/db/models/query.py:1096157 ms2.4%
QuerySet.get_or_createdjango/db/models/query.py:105458 ms0.9%
QuerySet.getdjango/db/models/query.py:70253 ms0.8%
QuerySet.__len__django/db/models/query.py:42153 ms0.8%
QuerySet._fetch_alldjango/db/models/query.py:226253 ms0.8%
ModelIterable.__iter__django/db/models/query.py:10352 ms0.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162544 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:7944 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9244 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:10541 ms0.6%
Cursor.executepsycopg/cursor.py:11341 ms0.6%
Connection.waitpsycopg/connection.py:49541 ms0.6%
3 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
QuerySet.get_or_createdjango/db/models/query.py:106153 ms0.8%
QuerySet.createdjango/db/models/query.py:73652 ms0.8%
Model.savedjango/db/models/base.py:90452 ms0.8%
Model.save_basedjango/db/models/base.py:99652 ms0.8%
Model._save_tabledjango/db/models/base.py:119952 ms0.8%
Model._do_insertdjango/db/models/base.py:125152 ms0.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:8752 ms0.8%
QuerySet._insertdjango/db/models/query.py:214152 ms0.8%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:193647 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:7947 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9244 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:10544 ms0.7%
Cursor.executepsycopg/cursor.py:11344 ms0.7%
Connection.waitpsycopg/connection.py:49544 ms0.7%
2 smaller frames hidden
QuerySet.get_or_createdjango/db/models/query.py:105947 ms0.7%
QuerySet.update_or_createdjango/db/models/query.py:109353 ms0.8%
Atomic.__exit__django/db/transaction.py:25935 ms0.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2635 ms0.5%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:43135 ms0.5%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:37534 ms0.5%
1 smaller frames hidden
1 smaller frames hidden
cached_property.__get__django/utils/functional.py:47201 ms3.1%
ProjectState.appsdjango/db/migrations/state.py:592201 ms3.1%
__init____init__:-1201 ms3.1%
StateApps.__init__django/db/migrations/state.py:653199 ms3.0%
StateApps.render_multipledjango/db/migrations/state.py:691198 ms3.0%
ModelState.renderdjango/db/migrations/state.py:989117 ms1.8%
ModelBase.__new__django/db/models/base.py:21455 ms0.8%
ModelBase.add_to_classdjango/db/models/base.py:39452 ms0.8%
1 smaller frames hidden
16 smaller frames hidden
ModelState.renderdjango/db/migrations/state.py:98274 ms1.1%
Field.clonedjango/db/models/fields/__init__.py:71337 ms0.6%
Field.clonedjango/db/models/fields/__init__.py:71235 ms0.5%
2 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
migrate_legacy_conferencesconfs/migrations/0033_remove_legacy_conference_tables.py:55597 ms1.5%
migrate_legacy_pairconfs/migrations/0033_remove_legacy_conference_tables.py:41961 ms0.9%
_refresh_account_countsconfs/migrations/0033_remove_legacy_conference_tables.py:325 counts = list(60 ms0.9%
QuerySet.__iter__django/db/models/query.py:43960 ms0.9%
QuerySet._fetch_alldjango/db/models/query.py:226260 ms0.9%
ValuesIterable.__iter__django/db/models/query.py:24760 ms0.9%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:157460 ms0.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162560 ms0.9%
CursorWrapper.executedjango/db/backends/utils.py:7960 ms0.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9260 ms0.9%
CursorWrapper._executedjango/db/backends/utils.py:10560 ms0.9%
Cursor.executepsycopg/cursor.py:11360 ms0.9%
Connection.waitpsycopg/connection.py:49560 ms0.9%
1 smaller frames hidden
2 smaller frames hidden
10 smaller frames hidden
CreateModel.database_forwardsdjango/db/migrations/operations/models.py:100441 ms6.7%
BaseDatabaseSchemaEditor.create_modeldjango/db/backends/base/schema.py:524407 ms6.2%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:45407 ms6.2%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:211405 ms6.2%
CursorWrapper.executedjango/db/backends/utils.py:79405 ms6.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92405 ms6.2%
CursorWrapper._executedjango/db/backends/utils.py:103403 ms6.1%
Cursor.executepsycopg/cursor.py:113403 ms6.1%
Connection.waitpsycopg/connection.py:495403 ms6.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:20667 ms1.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28659 ms0.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7859 ms0.9%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
3 smaller frames hidden
SeparateDatabaseAndState.database_forwardsdjango/db/migrations/operations/special.py:39126 ms1.9%
DeleteModel.database_forwardsdjango/db/migrations/operations/models.py:399122 ms1.9%
BaseDatabaseSchemaEditor.delete_modeldjango/db/backends/base/schema.py:559122 ms1.9%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:48119 ms1.8%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:211115 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:79115 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92115 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:103115 ms1.7%
Cursor.executepsycopg/cursor.py:113115 ms1.7%
Connection.waitpsycopg/connection.py:495115 ms1.7%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
AlterField.database_forwardsdjango/db/migrations/operations/fields.py:243117 ms1.8%
BaseDatabaseSchemaEditor.alter_fielddjango/db/backends/base/schema.py:962115 ms1.7%
DatabaseSchemaEditor._alter_fielddjango/db/backends/postgresql/schema.py:274113 ms1.7%
BaseDatabaseSchemaEditor._alter_fielddjango/db/backends/base/schema.py:121650 ms0.8%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4848 ms0.7%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21148 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:7948 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9247 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:10346 ms0.7%
Cursor.executepsycopg/cursor.py:11346 ms0.7%
Connection.waitpsycopg/connection.py:49546 ms0.7%
1 smaller frames hidden
1 smaller frames hidden
8 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
DeleteModel.database_forwardsdjango/db/migrations/operations/models.py:39960 ms0.9%
BaseDatabaseSchemaEditor.delete_modeldjango/db/backends/base/schema.py:55960 ms0.9%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4860 ms0.9%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21160 ms0.9%
CursorWrapper.executedjango/db/backends/utils.py:7960 ms0.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9260 ms0.9%
CursorWrapper._executedjango/db/backends/utils.py:10360 ms0.9%
Cursor.executepsycopg/cursor.py:11360 ms0.9%
Connection.waitpsycopg/connection.py:49560 ms0.9%
AddIndex.database_forwardsdjango/db/migrations/operations/models.py:90656 ms0.9%
DatabaseSchemaEditor.add_indexdjango/db/backends/postgresql/schema.py:31756 ms0.9%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4556 ms0.9%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21143 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:7943 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9243 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:10342 ms0.6%
Cursor.executepsycopg/cursor.py:11342 ms0.6%
Connection.waitpsycopg/connection.py:49542 ms0.6%
1 smaller frames hidden
14 smaller frames hidden
Migration.applydjango/db/migrations/migration.py:1182.06 s31.3%
AddField.state_forwardsdjango/db/migrations/operations/fields.py:103721 ms11.0%
ProjectState.add_fielddjango/db/migrations/state.py:269721 ms11.0%
ProjectState.reload_modeldjango/db/migrations/state.py:426691 ms10.5%
ProjectState._reloaddjango/db/migrations/state.py:461680 ms10.3%
StateApps.render_multipledjango/db/migrations/state.py:691661 ms10.1%
ModelState.renderdjango/db/migrations/state.py:989454 ms6.9%
ModelBase.__new__django/db/models/base.py:214248 ms3.8%
ModelBase.add_to_classdjango/db/models/base.py:394238 ms3.6%
ManyToManyField.contribute_to_classdjango/db/models/fields/related.py:209069 ms1.1%
create_many_to_many_intermediary_modeldjango/db/models/fields/related.py:142662 ms0.9%
3 smaller frames hidden
Field.contribute_to_classdjango/db/models/fields/__init__.py:99462 ms0.9%
Options.add_fielddjango/db/models/options.py:37340 ms0.6%
3 smaller frames hidden
11 smaller frames hidden
1 smaller frames hidden
ModelBase.__new__django/db/models/base.py:38846 ms0.7%
ModelBase.__new__django/db/models/base.py:14643 ms0.7%
ModelBase.add_to_classdjango/db/models/base.py:39435 ms0.5%
2 smaller frames hidden
15 smaller frames hidden
ModelState.renderdjango/db/migrations/state.py:982199 ms3.0%
Field.clonedjango/db/models/fields/__init__.py:71398 ms1.5%
Field.clonedjango/db/models/fields/__init__.py:71286 ms1.3%
2 smaller frames hidden
3 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
CreateModel.state_forwardsdjango/db/migrations/operations/models.py:86593 ms9.0%
ProjectState.add_modeldjango/db/migrations/state.py:126593 ms9.0%
ProjectState.reload_modeldjango/db/migrations/state.py:426586 ms8.9%
ProjectState._reloaddjango/db/migrations/state.py:461586 ms8.9%
StateApps.render_multipledjango/db/migrations/state.py:691582 ms8.9%
ModelState.renderdjango/db/migrations/state.py:989473 ms7.2%
ModelBase.__new__django/db/models/base.py:389207 ms3.2%
StateApps.register_modeldjango/db/migrations/state.py:726206 ms3.1%
Apps.do_pending_operationsdjango/apps/registry.py:435206 ms3.1%
Apps.lazy_model_operation.<locals>.apply_next_modeldjango/apps/registry.py:413206 ms3.1%
Apps.lazy_model_operationdjango/apps/registry.py:426201 ms3.1%
Apps.lazy_model_operation.<locals>.apply_next_modeldjango/apps/registry.py:413200 ms3.0%
Apps.lazy_model_operationdjango/apps/registry.py:399199 ms3.0%
RelatedField.contribute_to_class.<locals>.resolve_related_classdjango/db/models/fields/related.py:403199 ms3.0%
RelatedField.do_related_classdjango/db/models/fields/related.py:479199 ms3.0%
ManyToManyField.contribute_to_related_classdjango/db/models/fields/related.py:2119193 ms2.9%
<GC>~193 ms2.9%
4 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
ModelBase.__new__django/db/models/base.py:214128 ms1.9%
ModelBase.add_to_classdjango/db/models/base.py:394122 ms1.9%
ManyToManyField.contribute_to_classdjango/db/models/fields/related.py:209054 ms0.8%
10 smaller frames hidden
1 smaller frames hidden
ModelBase.__new__django/db/models/base.py:18040 ms0.6%
ModelBase.__new__.<locals>.<genexpr>django/db/models/base.py:18040 ms0.6%
<GC>~40 ms0.6%
13 smaller frames hidden
ModelState.renderdjango/db/migrations/state.py:982107 ms1.6%
Field.clonedjango/db/models/fields/__init__.py:71361 ms0.9%
Field.clonedjango/db/models/fields/__init__.py:71241 ms0.6%
2 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
AlterField.state_forwardsdjango/db/migrations/operations/fields.py:227310 ms4.7%
ProjectState.alter_fielddjango/db/migrations/state.py:305308 ms4.7%
ProjectState.reload_modeldjango/db/migrations/state.py:426298 ms4.5%
ProjectState._reloaddjango/db/migrations/state.py:461296 ms4.5%
StateApps.render_multipledjango/db/migrations/state.py:691295 ms4.5%
ModelState.renderdjango/db/migrations/state.py:989195 ms3.0%
ModelBase.__new__django/db/models/base.py:21493 ms1.4%
ModelBase.add_to_classdjango/db/models/base.py:39491 ms1.4%
1 smaller frames hidden
11 smaller frames hidden
ModelState.renderdjango/db/migrations/state.py:98293 ms1.4%
Field.clonedjango/db/models/fields/__init__.py:71346 ms0.7%
Field.clonedjango/db/models/fields/__init__.py:71241 ms0.6%
3 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
SeparateDatabaseAndState.state_forwardsdjango/db/migrations/operations/special.py:31135 ms2.1%
AlterTogetherOptionOperation.state_forwardsdjango/db/migrations/operations/models.py:65737 ms0.6%
ProjectState.alter_model_optionsdjango/db/migrations/state.py:19037 ms0.6%
5 smaller frames hidden
RemoveField.state_forwardsdjango/db/migrations/operations/fields.py:17184 ms1.3%
ProjectState.remove_fielddjango/db/migrations/state.py:27983 ms1.3%
ProjectState.reload_modeldjango/db/migrations/state.py:42680 ms1.2%
ProjectState._reloaddjango/db/migrations/state.py:46180 ms1.2%
StateApps.render_multipledjango/db/migrations/state.py:69180 ms1.2%
ModelState.renderdjango/db/migrations/state.py:98247 ms0.7%
Field.clonedjango/db/models/fields/__init__.py:71237 ms0.6%
2 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
AddIndex.state_forwardsdjango/db/migrations/operations/models.py:90167 ms1.0%
ProjectState.add_indexdjango/db/migrations/state.py:22667 ms1.0%
ProjectState._append_optiondjango/db/migrations/state.py:20967 ms1.0%
ProjectState.reload_modeldjango/db/migrations/state.py:42665 ms1.0%
ProjectState._reloaddjango/db/migrations/state.py:46165 ms1.0%
StateApps.render_multipledjango/db/migrations/state.py:69165 ms1.0%
ModelState.renderdjango/db/migrations/state.py:98943 ms0.7%
1 smaller frames hidden
1 smaller frames hidden
AlterTogetherOptionOperation.state_forwardsdjango/db/migrations/operations/models.py:65748 ms0.7%
ProjectState.alter_model_optionsdjango/db/migrations/state.py:19048 ms0.7%
ProjectState.reload_modeldjango/db/migrations/state.py:42644 ms0.7%
ProjectState._reloaddjango/db/migrations/state.py:46144 ms0.7%
StateApps.render_multipledjango/db/migrations/state.py:69144 ms0.7%
ModelState.renderdjango/db/migrations/state.py:98937 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
RenameModel.state_forwardsdjango/db/migrations/operations/models.py:44542 ms0.6%
ProjectState.rename_modeldjango/db/migrations/state.py:18142 ms0.6%
ProjectState.reload_modeldjango/db/migrations/state.py:42642 ms0.6%
ProjectState._reloaddjango/db/migrations/state.py:46142 ms0.6%
StateApps.render_multipledjango/db/migrations/state.py:69142 ms0.6%
ModelState.renderdjango/db/migrations/state.py:98942 ms0.6%
ModelBase.__new__django/db/models/base.py:21442 ms0.6%
ModelBase.add_to_classdjango/db/models/base.py:39442 ms0.6%
DateField.contribute_to_classdjango/db/models/fields/__init__.py:156041 ms0.6%
Field.contribute_to_classdjango/db/models/fields/__init__.py:99241 ms0.6%
Field.set_attributes_from_namedjango/db/models/fields/__init__.py:98041 ms0.6%
1 smaller frames hidden
5 smaller frames hidden
Migration.applydjango/db/migrations/migration.py:117107 ms1.6%
ProjectState.clonedjango/db/migrations/state.py:57859 ms0.9%
ModelState.clonedjango/db/migrations/state.py:94948 ms0.7%
5 smaller frames hidden
ProjectState.clonedjango/db/migrations/state.py:58247 ms0.7%
1 smaller frames hidden
MigrationExecutor.apply_migrationdjango/db/migrations/executor.py:2541.10 s16.7%
BaseDatabaseSchemaEditor.__exit__django/db/backends/base/schema.py:178634 ms9.6%
Atomic.__exit__django/db/transaction.py:275633 ms9.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:26633 ms9.6%
BaseDatabaseWrapper.commitdjango/db/backends/base/base.py:327633 ms9.6%
BaseDatabaseWrapper._commitdjango/db/backends/base/base.py:303633 ms9.6%
Connection.commitpsycopg/connection.py:309633 ms9.6%
Connection.waitpsycopg/connection.py:495633 ms9.6%
BaseConnection._commit_genpsycopg/_connection_base.py:59247 ms0.7%
BaseConnection._exec_commandpsycopg/_connection_base.py:47447 ms0.7%
1 smaller frames hidden
BaseDatabaseSchemaEditor.__exit__django/db/backends/base/schema.py:176456 ms6.9%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:45456 ms6.9%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:211442 ms6.7%
CursorWrapper.executedjango/db/backends/utils.py:79442 ms6.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92442 ms6.7%
CursorWrapper._executedjango/db/backends/utils.py:103441 ms6.7%
Cursor.executepsycopg/cursor.py:113441 ms6.7%
Connection.waitpsycopg/connection.py:495440 ms6.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:20660 ms0.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28659 ms0.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7858 ms0.9%
1 smaller frames hidden
3 smaller frames hidden
2 smaller frames hidden
MigrationExecutor.apply_migrationdjango/db/migrations/executor.py:262190 ms2.9%
MigrationExecutor.record_migrationdjango/db/migrations/executor.py:275190 ms2.9%
MigrationRecorder.record_applieddjango/db/migrations/recorder.py:102190 ms2.9%
QuerySet.createdjango/db/models/query.py:736190 ms2.9%
Model.savedjango/db/models/base.py:904190 ms2.9%
Model.save_basedjango/db/models/base.py:996190 ms2.9%
Model._save_tabledjango/db/models/base.py:1199188 ms2.9%
Model._do_insertdjango/db/models/base.py:1251188 ms2.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:87188 ms2.9%
QuerySet._insertdjango/db/models/query.py:2141188 ms2.9%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:1936184 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:79184 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92184 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:105184 ms2.8%
Cursor.executepsycopg/cursor.py:113184 ms2.8%
Connection.waitpsycopg/connection.py:495184 ms2.8%
1 smaller frames hidden
1 smaller frames hidden
MigrationExecutor.apply_migrationdjango/db/migrations/executor.py:259127 ms1.9%
MigrationExecutor.record_migrationdjango/db/migrations/executor.py:275123 ms1.9%
MigrationRecorder.record_applieddjango/db/migrations/recorder.py:102119 ms1.8%
QuerySet.createdjango/db/models/query.py:736113 ms1.7%
Model.savedjango/db/models/base.py:904113 ms1.7%
Model.save_basedjango/db/models/base.py:996111 ms1.7%
Model._save_tabledjango/db/models/base.py:1199107 ms1.6%
Model._do_insertdjango/db/models/base.py:1251107 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:87105 ms1.6%
QuerySet._insertdjango/db/models/query.py:2141105 ms1.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:193690 ms1.4%
CursorWrapper.executedjango/db/backends/utils.py:7990 ms1.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9287 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:10584 ms1.3%
Cursor.executepsycopg/cursor.py:11384 ms1.3%
Connection.waitpsycopg/connection.py:49583 ms1.3%
4 smaller frames hidden
2 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
Command.handledjango/core/management/commands/migrate.py:115216 ms3.3%
MigrationExecutor.__init__django/db/migrations/executor.py:18216 ms3.3%
MigrationLoader.__init__django/db/migrations/loader.py:59216 ms3.3%
MigrationLoader.build_graphdjango/db/migrations/loader.py:282159 ms2.4%
MigrationLoader.load_diskdjango/db/migrations/loader.py:121145 ms2.2%
import_module<stdlib>/importlib/__init__.py:88145 ms2.2%
_gcd_import<frozen importlib._bootstrap>:1389145 ms2.2%
_find_and_load<frozen importlib._bootstrap>:1353140 ms2.1%
_find_and_load_unlocked<frozen importlib._bootstrap>:1249111 ms1.7%
_load_unlocked<frozen importlib._bootstrap>:857111 ms1.7%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:74768 ms1.0%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:75143 ms0.7%
_call_with_frames_removed<frozen importlib._bootstrap>:49141 ms0.6%
1 smaller frames hidden
2 smaller frames hidden
4 smaller frames hidden
MigrationLoader.build_graphdjango/db/migrations/loader.py:28854 ms0.8%
MigrationRecorder.applied_migrationsdjango/db/migrations/recorder.py:8954 ms0.8%
2 smaller frames hidden
Command.handledjango/core/management/commands/migrate.py:382108 ms1.6%
emit_post_migrate_signaldjango/core/management/sql.py:52108 ms1.6%
Signal.senddjango/dispatch/dispatcher.py:249108 ms1.6%
create_permissionsdjango/contrib/auth/management/__init__.py:6234 ms0.5%
13 smaller frames hidden
9 smaller frames hidden
call_commanddjango/core/management/__init__.py:11844 ms0.7%
load_command_classdjango/core/management/__init__.py:4844 ms0.7%
import_module<stdlib>/importlib/__init__.py:8844 ms0.7%
_gcd_import<frozen importlib._bootstrap>:138944 ms0.7%
_find_and_load<frozen importlib._bootstrap>:135334 ms0.5%
_find_and_load_unlocked<frozen importlib._bootstrap>:124934 ms0.5%
_load_unlocked<frozen importlib._bootstrap>:85734 ms0.5%
1 smaller frames hidden
1 smaller frames hidden
BaseDatabaseCreation.create_test_dbdjango/db/backends/base/creation.py:75162 ms2.5%
BaseDatabaseCreation._create_test_dbdjango/db/backends/base/creation.py:229132 ms2.0%
DatabaseCreation._execute_create_test_dbdjango/db/backends/postgresql/creation.py:46132 ms2.0%
BaseDatabaseCreation._execute_create_test_dbdjango/db/backends/base/creation.py:215132 ms2.0%
CursorWrapper.executedjango/db/backends/utils.py:79132 ms2.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92132 ms2.0%
CursorWrapper._executedjango/db/backends/utils.py:103132 ms2.0%
Cursor.executepsycopg/cursor.py:113132 ms2.0%
Connection.waitpsycopg/connection.py:495132 ms2.0%
1 smaller frames hidden
1 smaller frames hidden
call188 ms2.9%
TestSyncAnnouncements.test_is_idempotent_and_refreshes_unposted_contentconfs/tests.py:1011 self._sync()141 ms2.1%
TestSyncAnnouncements._syncconfs/tests.py:937 call_command("syncannouncements")138 ms2.1%
call_commanddjango/core/management/__init__.py:195131 ms2.0%
RichCommand.executedjango_rich/management/__init__.py:34131 ms2.0%
BaseCommand.executedjango/core/management/base.py:466131 ms2.0%
Command.handleconfs/management/commands/syncannouncements.py:1376 ms1.2%
sync_upcomingconfs/conference_announcements.py:10870 ms1.1%
sync_conferenceconfs/conference_announcements.py:8666 ms1.0%
content_forconfs/conference_announcements.py:63 url = SITE_URL + reverse("conference", kwargs={"conference_slug": conference.slug})66 ms1.0%
reversedjango/urls/base.py:9866 ms1.0%
URLResolver._reverse_with_prefixdjango/urls/resolvers.py:76066 ms1.0%
URLResolver._populatedjango/urls/resolvers.py:55854 ms0.8%
cached_property.__get__django/utils/functional.py:4754 ms0.8%
URLResolver.url_patternsdjango/urls/resolvers.py:72954 ms0.8%
cached_property.__get__django/utils/functional.py:4754 ms0.8%
URLResolver.urlconf_moduledjango/urls/resolvers.py:72254 ms0.8%
import_module<stdlib>/importlib/__init__.py:8854 ms0.8%
_gcd_import<frozen importlib._bootstrap>:138954 ms0.8%
_find_and_load<frozen importlib._bootstrap>:135354 ms0.8%
_find_and_load_unlocked<frozen importlib._bootstrap>:124954 ms0.8%
_load_unlocked<frozen importlib._bootstrap>:85754 ms0.8%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:75154 ms0.8%
_call_with_frames_removed<frozen importlib._bootstrap>:49154 ms0.8%
<module>fedidevs/urls.py:184 path(47 ms0.7%
_pathdjango/urls/conf.py:8147 ms0.7%
RoutePattern.__init__django/urls/resolvers.py:31947 ms0.7%
_route_to_regexdjango/urls/resolvers.py:25847 ms0.7%
get_convertersdjango/urls/converters.py:6647 ms0.7%
SysMonitor.sysmon_py_startcoverage/sysmon.py:365 code_info = CodeInfo(47 ms0.7%
__create_fn__.<locals>.__init__<string>:247 ms0.7%
<GC>~47 ms0.7%
3 smaller frames hidden
3 smaller frames hidden
3 smaller frames hidden
1 smaller frames hidden
Command.handleconfs/management/commands/syncannouncements.py:14 self.console.print("Done syncing announcements 🎉")55 ms0.8%
Console.printrich/console.py:170542 ms0.6%
Console._collect_renderablesrich/console.py:156041 ms0.6%
Console.render_strrich/console.py:144238 ms0.6%
renderrich/markup.py:13038 ms0.6%
_emoji_replacerich/_emoji_replace.py:1538 ms0.6%
_find_and_load<frozen importlib._bootstrap>:134138 ms0.6%
_find_and_load_unlocked<frozen importlib._bootstrap>:124936 ms0.6%
_load_unlocked<frozen importlib._bootstrap>:85736 ms0.6%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:74735 ms0.5%
SourceLoader.get_code<frozen importlib._bootstrap_external>:88134 ms0.5%
SourceLoader.source_to_code<frozen importlib._bootstrap_external>:81034 ms0.5%
_call_with_frames_removed<frozen importlib._bootstrap>:49134 ms0.5%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
9 smaller frames hidden
teardown1 ms0.0%
Estimated from 5,498 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

confs/migrations/0031_seed_conference_tags.py:14
ConferenceTag.objects.update_or_create(
seed_conference_tags · Migrations
210 ms
confs/migrations/0033_remove_legacy_conference_tables.py:325
counts = list(
_refresh_account_counts · Migrations
61 ms
confs/management/commands/syncannouncements.py:14
self.console.print("Done syncing announcements 🎉")
Command.handle · Imports
55 ms
fedidevs/urls.py:184
path(
<module> · Imports
47 ms
confs/migrations/0033_remove_legacy_conference_tables.py:214
rows = list(model.objects.filter(pk__gt=last_pk).order_by("pk")[:batch_size])
_pk_batches · Migrations
31 ms
confs/migrations/0033_remove_legacy_conference_tables.py:388
conference, _created = conference_model.objects.get_or_create(slug=spec["slug"], defaults=defaults)
_get_or_create_conference · Migrations
30 ms
confs/conference_announcements.py:107
for conference in upcoming:
sync_upcoming · Database
13 ms
confs/tests.py:933
return baker.make(Conference, **defaults)
TestSyncAnnouncements._conference · Imports
13 ms
confs/conference_announcements.py:63
url = SITE_URL + reverse("conference", kwargs={"conference_slug": conference.slug})
content_for · Libraries
13 ms
confs/migrations/0033_remove_legacy_conference_tables.py:398
legacy_accounts = list(account_model.objects.all())
migrate_legacy_pair · Migrations
7 ms

Fixtures

Exact setup time
_django_setup_unittest class 6.38 s
django_db_setup session 6.38 s
django_db_use_migrations session 0.90 ms
_unittest_setUpClass_fixture_TestSyncAnnouncements class 0.51 ms
django_db_blocker session 0.48 ms
django_test_environment session 0.42 ms
_fail_for_invalid_template_variable session 0.22 ms
_dj_autoclear_mailbox function 0.09 ms
_template_string_if_invalid_marker function 0.07 ms
django_db_modify_db_settings_xdist_suffix session 0.07 ms

Database

1075 queries · 2.26 s

Repeated queries are usually N+1 lookups: fetch them once with select_related / prefetch_related (or selectinload).

139×
INSERT INTO "django_migrations" ("app", "name", "applied") VALUES (%s, %s, %s) RETURNING "django_migrations"."id"
45×
SELECT "confs_conferencetag"."id", "confs_conferencetag"."name", "confs_conferencetag"."slug", "confs_conferencetag"."icon" FROM "confs_conferencetag" WHERE "confs_conferencetag"."slug" = %s LIMIT ? FOR UPDATE
45×
INSERT INTO "confs_conferencetag" ("name", "slug", "icon") VALUES (%s, %s, %s) RETURNING "confs_conferencetag"."id"
22×
SELECT "django_content_type"."model" AS "model" FROM "django_content_type" WHERE "django_content_type"."app_label" = %s
11×
SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type" WHERE ("django_content_type"."app_label" = %s AND "django_content_type"."model" IN (…))

Biggest pieces of work

setup fixture django_db_setup (session scope)
pytest_django/fixtures.py:186
6.39 s
call test body
confs/tests.py:1011
177 ms
call _post_teardown
django/test/testcases.py:1243
9 ms
setup pytest internals 2 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 6.58 s c28a326 main Profile
16 hours ago CI github-actions:test passed 3.93 s 9b8826a main Profile
22 hours ago CI github-actions:test passed 6.67 s 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 6.64 s 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 8.58 s 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 31 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 39 ms 615a272 main Profile
2 weeks, 6 days ago CI github-actions:test passed 25 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 46 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 49 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 34 ms 0c23747 main Run