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

TestRemoteFollowStarterPack::test_mastodon_handle_is_told_to_log_in

First seen 1 month, 1 week ago in 0c23747
CI github-actions:test 13 runs
Average
163 ms
median 148 ms
max 325 ms
Phases
Setup 4 ms Call 158 ms Teardown 1.00 ms
Categories
Database 37 ms Factories 0.10 ms Other (Mocking, Templates, pytest, Unsampled, ...) 125 ms

12 database queries per run

Needs 237 KB of memory (max 2 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call103 ms98.9%
TestRemoteFollowStarterPack.test_mastodon_handle_is_told_to_log_instarter_packs/tests.py:1281 response = self.client.post(self.url, {"handle": "@[email protected]"}, follow=True)100 ms96.8%
Client.postdjango/test/client.py:117295 ms91.5%
Client._handle_redirectsdjango/test/client.py:139395 ms91.5%
ClientMixin._follow_redirectdjango/test/client.py:101195 ms91.5%
Client.getdjango/test/client.py:113395 ms91.5%
RequestFactory.getdjango/test/client.py:47595 ms91.5%
RequestFactory.genericdjango/test/client.py:67195 ms91.5%
Client.requestdjango/test/client.py:109195 ms91.5%
ClientHandler.__call__django/test/client.py:18695 ms91.5%
BaseHandler.get_responsedjango/core/handlers/base.py:14295 ms91.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5695 ms91.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38095 ms91.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5695 ms91.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38095 ms91.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5695 ms91.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38095 ms91.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5695 ms91.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12395 ms91.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5695 ms91.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14595 ms91.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5695 ms91.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38095 ms91.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5695 ms91.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38095 ms91.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5695 ms91.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38095 ms91.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5695 ms91.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38095 ms91.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5695 ms91.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38095 ms91.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5695 ms91.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38095 ms91.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5695 ms91.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38095 ms91.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5695 ms91.5%
BaseHandler._get_responsedjango/core/handlers/base.py:19995 ms91.5%
share_starter_packstarter_packs/views.py:858 owners = list(starter_pack.owners.select_related("accountaccess__account").order_by("username"))49 ms47.3%
QuerySet.__iter__django/db/models/query.py:43949 ms47.3%
QuerySet._fetch_alldjango/db/models/query.py:226249 ms47.3%
ModelIterable.__iter__django/db/models/query.py:10349 ms47.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162549 ms47.3%
CursorWrapper.executedjango/db/backends/utils.py:7949 ms47.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9249 ms47.3%
CursorWrapper._executedjango/db/backends/utils.py:10549 ms47.3%
Cursor.executepsycopg/cursor.py:11349 ms47.3%
Connection.waitpsycopg/connection.py:49549 ms47.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:20649 ms47.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28648 ms46.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7848 ms46.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3121 ms1.1%
share_starter_packstarter_packs/views.py:729 starter_pack = get_object_or_404(StarterPack, slug=starter_pack_slug, deleted_at__isnull=True)21 ms20.0%
get_object_or_404django/shortcuts.py:10021 ms20.0%
QuerySet.getdjango/db/models/query.py:70221 ms20.0%
QuerySet.__len__django/db/models/query.py:42121 ms20.0%
QuerySet._fetch_alldjango/db/models/query.py:226221 ms20.0%
ModelIterable.__iter__django/db/models/query.py:10321 ms20.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162521 ms20.0%
CursorWrapper.executedjango/db/backends/utils.py:7921 ms20.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9221 ms20.0%
CursorWrapper._executedjango/db/backends/utils.py:10521 ms20.0%
Cursor.executepsycopg/cursor.py:11321 ms20.0%
Connection.waitpsycopg/connection.py:49521 ms20.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:20621 ms20.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28620 ms18.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7820 ms18.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3121 ms1.1%
share_starter_packstarter_packs/views.py:862 return render(17 ms16.8%
renderdjango/shortcuts.py:2717 ms16.8%
render_to_stringdjango/template/loader.py:6210 ms9.5%
Template.renderdjango/template/backends/django.py:10710 ms9.5%
Template.renderdjango/template/base.py:17510 ms9.5%
instrumented_test_renderdjango/test/utils.py:11310 ms9.5%
NodeList.renderdjango/template/base.py:110810 ms9.5%
Node.render_annotateddjango/template/base.py:106910 ms9.5%
ExtendsNode.renderdjango/template/loader_tags.py:16010 ms9.5%
instrumented_test_renderdjango/test/utils.py:11310 ms9.5%
NodeList.renderdjango/template/base.py:110810 ms9.5%
Node.render_annotateddjango/template/base.py:10699 ms8.4%
BlockNode.renderdjango/template/loader_tags.py:665 ms5.3%
NodeList.renderdjango/template/base.py:11085 ms5.3%
Node.render_annotateddjango/template/base.py:10695 ms5.3%
SimpleNode.renderdjango/template/library.py:3432 ms2.1%
render_language_emojisaccounts/templatetags/account_extras.py:27 f"<img src='{static(lang.image)}' class='emojione' alt=':{lang.code}:' title=':{lang.code}:' />",2 ms2.1%
staticdjango/templatetags/static.py:1792 ms2.1%
StaticNode.handle_simpledjango/templatetags/static.py:1292 ms2.1%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms2.1%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2352 ms2.1%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2162 ms2.1%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2072 ms2.1%
urljoin<stdlib>/urllib/parse.py:7072 ms2.1%
_urlsplit<stdlib>/urllib/parse.py:6201 ms1.1%
_urlsplit<stdlib>/urllib/parse.py:6051 ms1.1%
IfNode.renderdjango/template/defaulttags.py:3322 ms2.1%
Page.__len__django/core/paginator.py:3122 ms2.1%
QuerySet.__len__django/db/models/query.py:4212 ms2.1%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms2.1%
ModelIterable.__iter__django/db/models/query.py:1031 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16121 ms1.1%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7681 ms1.1%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:891 ms1.1%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:781 ms1.1%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3191 ms1.1%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5751 ms1.1%
ModelIterable.__iter__django/db/models/query.py:1171 ms1.1%
get_related_populatorsdjango/db/models/query.py:30611 ms1.1%
__init____init__:-11 ms1.1%
RelatedPopulator.__init__django/db/models/query.py:30071 ms1.1%
IfNode.renderdjango/template/defaulttags.py:3331 ms1.1%
NodeList.renderdjango/template/base.py:11081 ms1.1%
Node.render_annotateddjango/template/base.py:10691 ms1.1%
BlockTranslateNode.renderdjango/templatetags/i18n.py:1711 ms1.1%
ngettextdjango/utils/translation/__init__.py:1001 ms1.1%
ngettextdjango/utils/translation/trans_real.py:4341 ms1.1%
do_ntranslatedjango/utils/translation/trans_real.py:4231 ms1.1%
DjangoTranslation.ngettextdjango/utils/translation/trans_real.py:2781 ms1.1%
IfNode.renderdjango/template/defaulttags.py:3333 ms3.2%
NodeList.renderdjango/template/base.py:11083 ms3.2%
Node.render_annotateddjango/template/base.py:10693 ms3.2%
SimpleNode.renderdjango/template/library.py:3432 ms2.1%
heroicon_outlineheroicons/templatetags/heroicons.py:232 ms2.1%
_render_iconheroicons/templatetags/heroicons.py:412 ms2.1%
_render_iconheroicons/__init__.py:652 ms2.1%
tostring<stdlib>/xml/etree/ElementTree.py:11062 ms2.1%
ElementTree.write<stdlib>/xml/etree/ElementTree.py:7452 ms2.1%
_serialize_xml<stdlib>/xml/etree/ElementTree.py:9082 ms2.1%
_serialize_xml<stdlib>/xml/etree/ElementTree.py:9132 ms2.1%
IncludeNode.renderdjango/template/loader_tags.py:2111 ms1.1%
Template.renderdjango/template/base.py:1771 ms1.1%
instrumented_test_renderdjango/test/utils.py:1131 ms1.1%
NodeList.renderdjango/template/base.py:11081 ms1.1%
Node.render_annotateddjango/template/base.py:10691 ms1.1%
SimpleNode.renderdjango/template/library.py:3431 ms1.1%
instances_datalistaccounts/templatetags/account_extras.py:34 instances = Instance.objects.filter(deleted_at__isnull=True).values_list("domain", flat=True)1 ms1.1%
QuerySet.values_listdjango/db/models/query.py:15921 ms1.1%
QuerySet._valuesdjango/db/models/query.py:15221 ms1.1%
QuerySet._chaindjango/db/models/query.py:22341 ms1.1%
QuerySet._clonedjango/db/models/query.py:22451 ms1.1%
QuerySet.__init__django/db/models/query.py:3351 ms1.1%
render_to_stringdjango/template/loader.py:618 ms7.4%
get_templatedjango/template/loader.py:158 ms7.4%
DjangoTemplates.get_templatedjango/template/backends/django.py:798 ms7.4%
Engine.get_templatedjango/template/engine.py:1868 ms7.4%
Engine.find_templatedjango/template/engine.py:1598 ms7.4%
Loader.get_templatedjango/template/loaders/cached.py:578 ms7.4%
Loader.get_templatedjango/template/loaders/base.py:288 ms7.4%
__init____init__:-18 ms7.4%
Template.__init__django/template/base.py:1588 ms7.4%
Template.compile_nodelistdjango/template/base.py:1914 ms4.2%
_create_smart_tokenize.<locals>.smart_tokenizedjango_cotton/nested_tag_support.py:404 ms4.2%
DebugLexer.tokenizedjango/template/base.py:4964 ms4.2%
Lexer.create_tokendjango/template/base.py:4574 ms4.2%
__init____init__:-14 ms4.2%
Token.__init__django/template/base.py:3604 ms4.2%
<GC>~4 ms4.2%
Template.compile_nodelistdjango/template/base.py:2003 ms3.2%
Parser.parsedjango/template/base.py:6013 ms3.2%
do_extendsdjango/template/loader_tags.py:3073 ms3.2%
Parser.parsedjango/template/base.py:5793 ms3.2%
share_starter_packstarter_packs/views.py:734 Account.objects.filter(3 ms3.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.1%
QuerySet.filterdjango/db/models/query.py:16762 ms2.1%
QuerySet._filter_or_excludedjango/db/models/query.py:16942 ms2.1%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17042 ms2.1%
Query.add_qdjango/db/models/sql/query.py:16812 ms2.1%
Query._add_qdjango/db/models/sql/query.py:17132 ms2.1%
Query.build_filterdjango/db/models/sql/query.py:16131 ms1.1%
Query.build_filterdjango/db/models/sql/query.py:15511 ms1.1%
Query.solve_lookup_typedjango/db/models/sql/query.py:13581 ms1.1%
Query.names_to_pathdjango/db/models/sql/query.py:18611 ms1.1%
cached_property.__get__django/utils/functional.py:471 ms1.1%
ForeignObject.path_infosdjango/db/models/fields/related.py:9011 ms1.1%
share_starter_packstarter_packs/views.py:8602 ms2.1%
pack_header_avatarsstarter_packs/views.py:89 for pack_id, avatar, handle, name in rows:2 ms2.1%
QuerySet.__iter__django/db/models/query.py:4392 ms2.1%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms2.1%
ValuesListIterable.__iter__django/db/models/query.py:2632 ms2.1%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15742 ms2.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms2.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.1%
Cursor.executepsycopg/cursor.py:1132 ms2.1%
Connection.waitpsycopg/connection.py:4952 ms2.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.1%
share_starter_packstarter_packs/views.py:743 StarterPackAccount.objects.filter(starter_pack=starter_pack, account=OuterRef("pk"), pinned=True),1 ms1.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.1%
QuerySet.filterdjango/db/models/query.py:16761 ms1.1%
QuerySet._filter_or_excludedjango/db/models/query.py:16941 ms1.1%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17041 ms1.1%
Query.add_qdjango/db/models/sql/query.py:16811 ms1.1%
Query._add_qdjango/db/models/sql/query.py:17131 ms1.1%
Query.build_filterdjango/db/models/sql/query.py:15991 ms1.1%
Query.trim_joinsdjango/db/models/sql/query.py:20211 ms1.1%
share_starter_packstarter_packs/views.py:741 .annotate(1 ms1.1%
QuerySet.annotatedjango/db/models/query.py:18421 ms1.1%
QuerySet._annotatedjango/db/models/query.py:18711 ms1.1%
Client.postdjango/test/client.py:11625 ms5.3%
RequestFactory.postdjango/test/client.py:4995 ms5.3%
RequestFactory.genericdjango/test/client.py:6715 ms5.3%
Client.requestdjango/test/client.py:10915 ms5.3%
ClientHandler.__call__django/test/client.py:1735 ms5.3%
BaseHandler.load_middlewaredjango/core/handlers/base.py:635 ms5.3%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1045 ms5.3%
WhiteNoise.add_fileswhitenoise/base.py:1085 ms5.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1205 ms5.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1315 ms5.3%
WhiteNoise.get_static_filewhitenoise/base.py:2122 ms2.1%
WhiteNoise.add_cache_headerswhitenoise/base.py:2332 ms2.1%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms2.1%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms2.1%
URLMixin.urldebug_toolbar/panels/staticfiles.py:201 ms1.1%
WhiteNoise.get_static_filewhitenoise/base.py:2172 ms2.1%
StaticFile.__init__whitenoise/responders.py:731 ms1.1%
StaticFile.get_headerswhitenoise/responders.py:1751 ms1.1%
StaticFile.__init__whitenoise/responders.py:721 ms1.1%
StaticFile.get_file_statswhitenoise/responders.py:1631 ms1.1%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms2.1%
TestCase._fixture_teardowndjango/test/testcases.py:14971 ms1.1%
TestCase._should_check_constraintsdjango/test/testcases.py:15061 ms1.1%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5041 ms1.1%
Cursor.executepsycopg/cursor.py:1131 ms1.1%
Connection.waitpsycopg/connection.py:4951 ms1.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.1%
TestCase._fixture_teardowndjango/test/testcases.py:15001 ms1.1%
TestCase._rollback_atomicsdjango/test/testcases.py:14081 ms1.1%
Atomic.__exit__django/db/transaction.py:2951 ms1.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.1%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4131 ms1.1%
teardown0.43 ms0.4%
Estimated from 95 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/views.py:858
owners = list(starter_pack.owners.select_related("accountaccess__account").order_by("username"))
share_starter_pack · Database
49 ms
starter_packs/views.py:729
starter_pack = get_object_or_404(StarterPack, slug=starter_pack_slug, deleted_at__isnull=True)
share_starter_pack · Database
21 ms
starter_packs/views.py:862
return render(
share_starter_pack · Templates
14 ms
starter_packs/tests.py:1281
response = self.client.post(self.url, {"handle": "@[email protected]"}, follow=True)
TestRemoteFollowStarterPack.test_mastodon_handle_is_told_to_log_in · Mocking
5 ms
starter_packs/views.py:734
Account.objects.filter(
share_starter_pack · Database
3 ms
starter_packs/views.py:89
for pack_id, avatar, handle, name in rows:
pack_header_avatars · Database
2 ms
accounts/templatetags/account_extras.py:27
f"<img src='{static(lang.image)}' class='emojione' alt=':{lang.code}:' title=':{lang.code}:' />",
render_language_emojis · Templates
2 ms
starter_packs/views.py:743
StarterPackAccount.objects.filter(starter_pack=starter_pack, account=OuterRef("pk"), pinned=True),
share_starter_pack · Database
1 ms
starter_packs/views.py:741
.annotate(
share_starter_pack · Database
1 ms
accounts/templatetags/account_extras.py:34
instances = Instance.objects.filter(deleted_at__isnull=True).values_list("domain", flat=True)
instances_datalist · Database
1 ms

Fixtures

Exact setup time
_django_db_marker function 0.05 ms
_dj_autoclear_mailbox function 0.05 ms
_template_string_if_invalid_marker function 0.04 ms
_django_isolate_apps function 0.03 ms
_django_set_urlconf function 0.03 ms
_live_server_helper function 0.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

12 queries · 21 ms
No repeated queries.

Biggest pieces of work

call test body
starter_packs/tests.py:1281
100 ms
call _post_teardown
django/test/testcases.py:1243
2 ms
teardown pytest internals 0.43 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 104 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 169 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 170 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 59 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 148 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 131 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 90 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 114 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 325 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 59 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 261 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 220 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 270 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 101 ms 0c23747 main Run