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

TestSelectedInstance::test_selected_instance_http_truncate

First seen 3 years ago in 1cd3a8d
CI github-actions:test 13 runs
Average
150 ms
median 140 ms
max 292 ms
Phases
Setup 2 ms Call 147 ms Teardown 0.40 ms
Categories
Database 26 ms App code 0.12 ms Other (Libraries, Templates, pytest, Unsampled) 124 ms

13 database queries per run

Needs 470 KB of memory (max 732 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call82 ms98.6%
TestSelectedInstance.test_selected_instance_http_truncateaccounts/tests.py:217 response = self.client.get("/?selected_instance=https://mastodon.social")80 ms97.0%
Client.getdjango/test/client.py:113380 ms97.0%
RequestFactory.getdjango/test/client.py:47580 ms97.0%
RequestFactory.genericdjango/test/client.py:67178 ms93.6%
Client.requestdjango/test/client.py:109178 ms93.6%
ClientHandler.__call__django/test/client.py:18673 ms88.6%
BaseHandler.get_responsedjango/core/handlers/base.py:14273 ms88.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5673 ms88.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38073 ms88.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5673 ms88.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38073 ms88.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5673 ms88.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38073 ms88.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5673 ms88.6%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12373 ms88.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5673 ms88.6%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14573 ms88.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5673 ms88.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38071 ms85.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5671 ms85.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38071 ms85.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5671 ms85.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38071 ms85.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5671 ms85.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38071 ms85.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5671 ms85.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38071 ms85.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5671 ms85.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38071 ms85.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5671 ms85.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38071 ms85.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5671 ms85.3%
BaseHandler._get_responsedjango/core/handlers/base.py:19971 ms85.3%
indexaccounts/views.py:41265 ms78.6%
CountlessPaginator.get_pageaccounts/views.py:8465 ms78.6%
CountlessPaginator.pageaccounts/views.py:9065 ms78.6%
CountlessPage.__init__accounts/views.py:28 self.object_list = list(self.object_list)65 ms78.6%
QuerySet.__iter__django/db/models/query.py:43965 ms78.6%
QuerySet._fetch_alldjango/db/models/query.py:226265 ms78.6%
ModelIterable.__iter__django/db/models/query.py:10365 ms78.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162557 ms68.5%
CursorWrapper.executedjango/db/backends/utils.py:7957 ms68.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9257 ms68.5%
CursorWrapper._executedjango/db/backends/utils.py:10555 ms66.9%
Cursor.executepsycopg/cursor.py:11355 ms66.9%
Connection.waitpsycopg/connection.py:49555 ms66.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:20653 ms63.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28653 ms63.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7853 ms63.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16128 ms10.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7688 ms10.0%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:898 ms10.0%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:788 ms10.0%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3198 ms10.0%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5798 ms10.0%
Col.as_sqldjango/db/models/expressions.py:13698 ms10.0%
indexaccounts/views.py:425 return render(6 ms6.7%
renderdjango/shortcuts.py:276 ms6.7%
render_to_stringdjango/template/loader.py:626 ms6.7%
Template.renderdjango/template/backends/django.py:1076 ms6.7%
Template.renderdjango/template/base.py:1756 ms6.7%
instrumented_test_renderdjango/test/utils.py:1136 ms6.7%
NodeList.renderdjango/template/base.py:11086 ms6.7%
Node.render_annotateddjango/template/base.py:10696 ms6.7%
ExtendsNode.renderdjango/template/loader_tags.py:1606 ms6.7%
instrumented_test_renderdjango/test/utils.py:1136 ms6.7%
NodeList.renderdjango/template/base.py:11086 ms6.7%
Node.render_annotateddjango/template/base.py:10696 ms6.7%
BlockNode.renderdjango/template/loader_tags.py:664 ms5.0%
NodeList.renderdjango/template/base.py:11084 ms5.0%
Node.render_annotateddjango/template/base.py:10694 ms5.0%
ForNode.renderdjango/template/defaulttags.py:2493 ms3.3%
Node.render_annotateddjango/template/base.py:10693 ms3.3%
IfNode.renderdjango/template/defaulttags.py:3261 ms1.7%
infix.<locals>.Operator.evaldjango/template/smartif.py:611 ms1.7%
<lambda>django/template/smartif.py:1061 ms1.7%
TemplateLiteral.evaldjango/template/defaulttags.py:9171 ms1.7%
Variable.resolvedjango/template/base.py:9451 ms1.7%
Variable._resolve_lookupdjango/template/base.py:9991 ms1.7%
IfNode.renderdjango/template/defaulttags.py:3331 ms1.7%
NodeList.renderdjango/template/base.py:11081 ms1.7%
Node.render_annotateddjango/template/base.py:10691 ms1.7%
URLNode.renderdjango/template/defaulttags.py:5111 ms1.7%
reversedjango/urls/base.py:401 ms1.7%
get_resolverdjango/urls/resolvers.py:1111 ms1.7%
IncludeNode.renderdjango/template/loader_tags.py:2111 ms1.7%
Template.renderdjango/template/base.py:1771 ms1.7%
instrumented_test_renderdjango/test/utils.py:1131 ms1.7%
NodeList.renderdjango/template/base.py:11081 ms1.7%
Node.render_annotateddjango/template/base.py:10691 ms1.7%
ForNode.renderdjango/template/defaulttags.py:2491 ms1.7%
Node.render_annotateddjango/template/base.py:10691 ms1.7%
ForNode.renderdjango/template/defaulttags.py:1971 ms1.7%
FilterExpression.resolvedjango/template/base.py:8061 ms1.7%
IfNode.renderdjango/template/defaulttags.py:3331 ms1.7%
NodeList.renderdjango/template/base.py:11081 ms1.7%
Node.render_annotateddjango/template/base.py:10691 ms1.7%
IncludeNode.renderdjango/template/loader_tags.py:2111 ms1.7%
Template.renderdjango/template/base.py:1771 ms1.7%
instrumented_test_renderdjango/test/utils.py:1131 ms1.7%
NodeList.renderdjango/template/base.py:11081 ms1.7%
Node.render_annotateddjango/template/base.py:10691 ms1.7%
VariableNode.renderdjango/template/base.py:11671 ms1.7%
FilterExpression.resolvedjango/template/base.py:8061 ms1.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3823 ms3.3%
SessionMiddleware.process_responsedjango/contrib/sessions/middleware.py:603 ms3.3%
SessionStore.savedjango/contrib/sessions/backends/db.py:1213 ms3.3%
SessionStore.createdjango/contrib/sessions/backends/db.py:743 ms3.3%
SessionStore.savedjango/contrib/sessions/backends/db.py:1231 ms1.7%
SessionStore.create_model_instancedjango/contrib/sessions/backends/db.py:1021 ms1.7%
SessionBase.encodedjango/contrib/sessions/backends/base.py:1291 ms1.7%
dumpsdjango/core/signing.py:1911 ms1.7%
Signer.sign_objectdjango/core/signing.py:2791 ms1.7%
TimestampSigner.signdjango/core/signing.py:3011 ms1.7%
Signer.signdjango/core/signing.py:2451 ms1.7%
Signer.signaturedjango/core/signing.py:2421 ms1.7%
SessionStore.savedjango/contrib/sessions/backends/db.py:1261 ms1.7%
Atomic.__exit__django/db/transaction.py:2591 ms1.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.7%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4311 ms1.7%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3751 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.7%
Cursor.executepsycopg/cursor.py:1131 ms1.7%
Connection.waitpsycopg/connection.py:4951 ms1.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.7%
ClientHandler.__call__django/test/client.py:1734 ms5.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:634 ms5.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1044 ms5.0%
WhiteNoise.add_fileswhitenoise/base.py:1084 ms5.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms3.3%
scantreewhitenoise/base.py:2713 ms3.3%
scantreewhitenoise/base.py:2713 ms3.3%
scantreewhitenoise/base.py:2711 ms1.7%
scantreewhitenoise/base.py:2711 ms1.7%
scantreewhitenoise/base.py:2711 ms1.7%
scantreewhitenoise/base.py:2731 ms1.7%
scantreewhitenoise/base.py:2731 ms1.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1201 ms1.7%
RequestFactory.genericdjango/test/client.py:6493 ms3.3%
RequestFactory._get_pathdjango/test/client.py:4611 ms1.7%
Client.requestdjango/test/client.py:10911 ms1.7%
ClientHandler.__call__django/test/client.py:1731 ms1.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:631 ms1.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1041 ms1.7%
WhiteNoise.add_fileswhitenoise/base.py:1081 ms1.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1151 ms1.7%
scantreewhitenoise/base.py:2711 ms1.7%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()1 ms1.7%
TestCase._fixture_setupdjango/test/testcases.py:14811 ms1.7%
TestCase._enter_atomicsdjango/test/testcases.py:13991 ms1.7%
Atomic.__enter__django/db/transaction.py:2231 ms1.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.7%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4001 ms1.7%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3671 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.7%
Cursor.executepsycopg/cursor.py:1131 ms1.7%
Connection.waitpsycopg/connection.py:4951 ms1.7%
teardown0.37 ms0.4%
Estimated from 61 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

accounts/views.py:28
self.object_list = list(self.object_list)
CountlessPage.__init__ · Database
65 ms
accounts/tests.py:217
response = self.client.get("/?selected_instance=https://mastodon.social")
TestSelectedInstance.test_selected_instance_http_truncate · Libraries
10 ms
accounts/views.py:425
return render(
index · Templates
6 ms

Fixtures

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

Database

13 queries · 7 ms
No repeated queries.

Biggest pieces of work

call test body
accounts/tests.py:217
80 ms
call _pre_setup
django/test/testcases.py:1167
1 ms
teardown pytest internals 0.37 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 83 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 166 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 138 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 62 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 151 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 140 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 100 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 140 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 167 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 82 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 163 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 292 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 268 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 113 ms 0c23747 main Run