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

TestAccountIndexRobots::test_selected_instance_is_noindex

First seen 3 weeks ago in 0c23747
CI github-actions:test 11 runs
Average
139 ms
median 125 ms
max 230 ms
Phases
Setup 2 ms Call 135 ms Teardown 2 ms
Categories
Database 29 ms App code 0.19 ms Other (Libraries, Templates, pytest, Unsampled, ...) 109 ms

12 database queries per run

Needs 10 KB of memory (max 72 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
call118 ms97.3%
TestAccountIndexRobots.test_selected_instance_is_noindexaccounts/tests.py:589 self.assert_noindex("/python/?selected_instance=mastodon.social")116 ms95.6%
TestAccountIndexRobots.assert_noindexaccounts/tests.py:550 response = self.client.get(url)116 ms95.6%
Client.getdjango/test/client.py:1133116 ms95.6%
RequestFactory.getdjango/test/client.py:475116 ms95.6%
RequestFactory.genericdjango/test/client.py:671116 ms95.6%
Client.requestdjango/test/client.py:1091116 ms95.6%
ClientHandler.__call__django/test/client.py:18690 ms74.4%
BaseHandler.get_responsedjango/core/handlers/base.py:14290 ms74.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5690 ms74.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38090 ms74.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5690 ms74.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38090 ms74.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5690 ms74.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38090 ms74.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5690 ms74.4%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12390 ms74.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5690 ms74.4%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14590 ms74.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5690 ms74.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38287 ms71.9%
SessionMiddleware.process_responsedjango/contrib/sessions/middleware.py:6087 ms71.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:12187 ms71.9%
SessionStore.createdjango/contrib/sessions/backends/db.py:7072 ms59.2%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:20172 ms59.2%
SessionStore.existsdjango/contrib/sessions/backends/db.py:6372 ms59.2%
QuerySet.existsdjango/db/models/query.py:145871 ms58.4%
Query.has_resultsdjango/db/models/sql/query.py:68771 ms58.4%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:159371 ms58.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162569 ms56.7%
CursorWrapper.executedjango/db/backends/utils.py:7969 ms56.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9269 ms56.7%
CursorWrapper._executedjango/db/backends/utils.py:10569 ms56.7%
Cursor.executepsycopg/cursor.py:11369 ms56.7%
Connection.waitpsycopg/connection.py:49569 ms56.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:20669 ms56.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28669 ms56.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7869 ms56.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16122 ms1.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7681 ms0.8%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:891 ms0.8%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:781 ms0.8%
cached_property.__get__django/utils/functional.py:471 ms0.8%
BaseExpression.output_fielddjango/db/models/expressions.py:3281 ms0.8%
Value._resolve_output_fielddjango/db/models/expressions.py:12211 ms0.8%
Field.__init__django/db/models/fields/__init__.py:2621 ms0.8%
Field.choicesdjango/db/models/fields/__init__.py:5901 ms0.8%
normalize_choicesdjango/utils/choices.py:1001 ms0.8%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7961 ms0.8%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5791 ms0.8%
WhereNode.as_sqldjango/db/models/sql/where.py:1511 ms0.8%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5791 ms0.8%
Exact.as_sqldjango/db/models/lookups.py:4071 ms0.8%
BuiltinLookup.as_sqldjango/db/models/lookups.py:2431 ms0.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.8%
SessionStore.createdjango/contrib/sessions/backends/db.py:7415 ms12.7%
SessionStore.savedjango/contrib/sessions/backends/db.py:12715 ms12.7%
Model.savedjango/db/models/base.py:90415 ms12.7%
Model.save_basedjango/db/models/base.py:99615 ms12.7%
Model._save_tabledjango/db/models/base.py:119915 ms12.7%
Model._do_insertdjango/db/models/base.py:125115 ms12.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:8715 ms12.7%
QuerySet._insertdjango/db/models/query.py:214115 ms12.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:193614 ms11.8%
CursorWrapper.executedjango/db/backends/utils.py:7914 ms11.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9214 ms11.8%
CursorWrapper._executedjango/db/backends/utils.py:10514 ms11.8%
Cursor.executepsycopg/cursor.py:11314 ms11.8%
Connection.waitpsycopg/connection.py:49514 ms11.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:20613 ms11.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28613 ms11.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7813 ms11.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19341 ms0.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms0.8%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3201 ms0.8%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2981 ms0.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms0.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms2.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms2.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms2.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms2.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms2.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms2.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms2.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms2.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms2.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms2.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms2.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms2.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.7%
BaseHandler._get_responsedjango/core/handlers/base.py:1992 ms1.7%
indexaccounts/views.py:425 return render(2 ms1.7%
renderdjango/shortcuts.py:271 ms0.8%
render_to_stringdjango/template/loader.py:621 ms0.8%
Template.renderdjango/template/backends/django.py:1071 ms0.8%
Template.renderdjango/template/base.py:1751 ms0.8%
instrumented_test_renderdjango/test/utils.py:1131 ms0.8%
NodeList.renderdjango/template/base.py:11081 ms0.8%
renderdjango/shortcuts.py:281 ms0.8%
HttpResponse.__init__django/http/response.py:3891 ms0.8%
HttpResponse.contentdjango/http/response.py:4211 ms0.8%
HttpResponseBase.make_bytesdjango/http/response.py:3291 ms0.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3821 ms0.8%
XFrameOptionsMiddleware.process_responsedjango/middleware/clickjacking.py:341 ms0.8%
ClientHandler.__call__django/test/client.py:17326 ms21.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6326 ms21.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10426 ms21.1%
WhiteNoise.add_fileswhitenoise/base.py:10826 ms21.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11522 ms17.8%
scantreewhitenoise/base.py:27122 ms17.8%
scantreewhitenoise/base.py:27122 ms17.8%
scantreewhitenoise/base.py:27122 ms17.8%
scantreewhitenoise/base.py:27122 ms17.8%
scantreewhitenoise/base.py:27122 ms17.8%
scantreewhitenoise/base.py:27314 ms11.8%
<GC>~13 ms11.0%
scantreewhitenoise/base.py:2697 ms5.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1204 ms3.4%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1314 ms3.4%
WhiteNoise.get_static_filewhitenoise/base.py:2122 ms1.7%
WhiteNoise.add_cache_headerswhitenoise/base.py:2332 ms1.7%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1761 ms0.8%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1971 ms0.8%
URLMixin.urldebug_toolbar/panels/staticfiles.py:201 ms0.8%
WhiteNoise.get_static_filewhitenoise/base.py:2171 ms0.8%
StaticFile.__init__whitenoise/responders.py:771 ms0.8%
StaticFile.get_alternativeswhitenoise/responders.py:2001 ms0.8%
__init____init__:-11 ms0.8%
Headers.__init__<stdlib>/wsgiref/headers.py:421 ms0.8%
WhiteNoise.get_static_filewhitenoise/base.py:2111 ms0.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms1.7%
TestCase._fixture_teardowndjango/test/testcases.py:14971 ms0.8%
TestCase._should_check_constraintsdjango/test/testcases.py:15061 ms0.8%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5041 ms0.8%
Cursor.executepsycopg/cursor.py:1131 ms0.8%
Connection.waitpsycopg/connection.py:4951 ms0.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms0.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms0.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms0.8%
TestCase._fixture_teardowndjango/test/testcases.py:15001 ms0.8%
TestCase._rollback_atomicsdjango/test/testcases.py:14081 ms0.8%
Atomic.__exit__django/db/transaction.py:2951 ms0.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms0.8%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4131 ms0.8%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3711 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms0.8%
Cursor.executepsycopg/cursor.py:1131 ms0.8%
Connection.waitpsycopg/connection.py:4951 ms0.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms0.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms0.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms0.8%
Estimated from 115 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

accounts/tests.py:550
response = self.client.get(url)
TestAccountIndexRobots.assert_noindex · Database
114 ms
accounts/views.py:425
return render(
index · Templates
2 ms

Fixtures

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

Database

12 queries · 8 ms
No repeated queries.

Biggest pieces of work

call test body
accounts/tests.py:589
116 ms
call _post_teardown
django/test/testcases.py:1243
2 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 121 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 62 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 143 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 125 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 94 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 171 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 108 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 64 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 202 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 204 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 230 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 89 ms 0c23747 main Run