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

TestAnonymousCacheAndCsrf::test_plain_pages_are_indexable

First seen 14 hours ago in 0c23747
CI github-actions:test 4 runs
Average
165 ms
median 172 ms
max 265 ms
Phases
Setup 2 ms Call 162 ms Teardown 0.29 ms
Categories
Database 8 ms Other (Libraries, pytest, Templates, Unsampled) 156 ms

7 database queries per run

Needs 9 KB of memory (max 20 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 9 hours ago · open run
Hide pytest frames
call50 ms97.8%
CallInfo.from_call_pytest/runner.py:36150 ms97.8%
call_and_report.<locals>.<lambda>_pytest/runner.py:25050 ms97.8%
HookCaller.__call__pluggy/_hooks.py:51250 ms97.8%
PluginManager._hookexecpluggy/_manager.py:12050 ms97.8%
_multicallpluggy/_callers.py:12150 ms97.8%
pytest_runtest_call_pytest/runner.py:18450 ms97.8%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:61450 ms97.8%
SimpleTestCase.__call__django/test/testcases.py:31450 ms97.8%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36945 ms88.0%
TestCase.__call__<stdlib>/unittest/case.py:74745 ms88.0%
TestCase.run<stdlib>/unittest/case.py:69145 ms88.0%
TestCase._callTestMethod<stdlib>/unittest/case.py:63745 ms88.0%
TestAnonymousCacheAndCsrf.test_plain_pages_are_indexablefedidevs/tests.py:110 response = self.client.get("/login/")45 ms88.0%
Client.getdjango/test/client.py:113345 ms88.0%
RequestFactory.getdjango/test/client.py:47545 ms88.0%
RequestFactory.genericdjango/test/client.py:67145 ms88.0%
Client.requestdjango/test/client.py:109145 ms88.0%
ClientHandler.__call__django/test/client.py:17340 ms78.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6340 ms78.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10440 ms78.2%
WhiteNoise.add_fileswhitenoise/base.py:10840 ms78.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12027 ms53.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13127 ms53.8%
WhiteNoise.get_static_filewhitenoise/base.py:21722 ms44.0%
StaticFile.__init__whitenoise/responders.py:7212 ms24.4%
StaticFile.get_file_statswhitenoise/responders.py:16112 ms24.4%
__init____init__:-112 ms24.4%
FileEntry.__init__whitenoise/responders.py:26312 ms24.4%
FileEntry.stat_regular_filewhitenoise/responders.py:27612 ms24.4%
<GC>~12 ms24.4%
StaticFile.__init__whitenoise/responders.py:735 ms9.8%
StaticFile.get_headerswhitenoise/responders.py:1762 ms4.9%
Headers.__setitem__<stdlib>/wsgiref/headers.py:642 ms4.9%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:502 ms4.9%
StaticFile.get_headerswhitenoise/responders.py:1772 ms4.9%
StaticFile.__init__whitenoise/responders.py:772 ms4.9%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms4.9%
StaticFile.__init__whitenoise/responders.py:762 ms4.9%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1902 ms4.9%
WhiteNoise.get_static_filewhitenoise/base.py:2125 ms9.8%
WhiteNoise.add_cache_headerswhitenoise/base.py:2335 ms9.8%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms4.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11512 ms24.4%
scantreewhitenoise/base.py:27112 ms24.4%
scantreewhitenoise/base.py:27110 ms19.6%
scantreewhitenoise/base.py:2735 ms9.8%
scantreewhitenoise/base.py:2715 ms9.8%
scantreewhitenoise/base.py:2712 ms4.9%
scantreewhitenoise/base.py:2712 ms4.9%
scantreewhitenoise/base.py:2692 ms4.9%
scantreewhitenoise/base.py:2732 ms4.9%
scantreewhitenoise/base.py:2732 ms4.9%
ClientHandler.__call__django/test/client.py:1865 ms9.8%
BaseHandler.get_responsedjango/core/handlers/base.py:1425 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:565 ms9.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3805 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:565 ms9.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3805 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:565 ms9.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3805 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:565 ms9.8%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1235 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:565 ms9.8%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1455 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:565 ms9.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3805 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:565 ms9.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3805 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:565 ms9.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3805 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:565 ms9.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3805 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:565 ms9.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3805 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:565 ms9.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3805 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:565 ms9.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3805 ms9.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:565 ms9.8%
BaseHandler._get_responsedjango/core/handlers/base.py:1995 ms9.8%
loginaccounts/views.py:280 return render(request, "login.html")5 ms9.8%
renderdjango/shortcuts.py:275 ms9.8%
render_to_stringdjango/template/loader.py:625 ms9.8%
Template.renderdjango/template/backends/django.py:1075 ms9.8%
Template.renderdjango/template/base.py:1755 ms9.8%
instrumented_test_renderdjango/test/utils.py:1135 ms9.8%
NodeList.renderdjango/template/base.py:11085 ms9.8%
Node.render_annotateddjango/template/base.py:10695 ms9.8%
ExtendsNode.renderdjango/template/loader_tags.py:1525 ms9.8%
NodeList.get_nodes_by_typedjango/template/base.py:11142 ms4.9%
instrumented_test_renderdjango/test/utils.py:1132 ms4.9%
NodeList.renderdjango/template/base.py:11082 ms4.9%
Node.render_annotateddjango/template/base.py:10692 ms4.9%
IfNode.renderdjango/template/defaulttags.py:3332 ms4.9%
NodeList.renderdjango/template/base.py:11082 ms4.9%
Node.render_annotateddjango/template/base.py:10692 ms4.9%
IncludeNode.renderdjango/template/loader_tags.py:2112 ms4.9%
Template.renderdjango/template/base.py:1772 ms4.9%
instrumented_test_renderdjango/test/utils.py:1132 ms4.9%
NodeList.renderdjango/template/base.py:11082 ms4.9%
Node.render_annotateddjango/template/base.py:10692 ms4.9%
SimpleNode.renderdjango/template/library.py:3432 ms4.9%
instances_datalistaccounts/templatetags/account_extras.py:34 instances = Instance.objects.filter(deleted_at__isnull=True).values_list("domain", flat=True)2 ms4.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms4.9%
QuerySet.filterdjango/db/models/query.py:16762 ms4.9%
QuerySet._filter_or_excludedjango/db/models/query.py:16942 ms4.9%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17042 ms4.9%
Query.add_qdjango/db/models/sql/query.py:16812 ms4.9%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3602 ms4.9%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()2 ms4.9%
TestCase._fixture_setupdjango/test/testcases.py:14812 ms4.9%
TestCase._enter_atomicsdjango/test/testcases.py:13992 ms4.9%
Atomic.__enter__django/db/transaction.py:2232 ms4.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.9%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms4.9%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3662 ms4.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.9%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3202 ms4.9%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2982 ms4.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.9%
DatabaseWrapper.create_cursordjango/db/backends/postgresql/base.py:4422 ms4.9%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3722 ms4.9%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms4.9%
TestCase._fixture_teardowndjango/test/testcases.py:15002 ms4.9%
TestCase._rollback_atomicsdjango/test/testcases.py:14082 ms4.9%
Atomic.__exit__django/db/transaction.py:2952 ms4.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.9%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4132 ms4.9%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3702 ms4.9%
Estimated from 20 samples; phase durations are exact. Frames from pytest and pluggy are shown .

Hot lines in your code

fedidevs/tests.py:110
response = self.client.get("/login/")
TestAnonymousCacheAndCsrf.test_plain_pages_are_indexable · Libraries
40 ms
accounts/views.py:280
return render(request, "login.html")
login · Templates
2 ms
accounts/templatetags/account_extras.py:34
instances = Instance.objects.filter(deleted_at__isnull=True).values_list("domain", flat=True)
instances_datalist · Database
2 ms

Fixtures

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

Database

7 queries · 2 ms
No repeated queries.

Biggest pieces of work

call test body
fedidevs/tests.py:110
45 ms
call _pre_setup
django/test/testcases.py:1167
2 ms
call _post_teardown
django/test/testcases.py:1243
2 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 5 results, oldest first in the strip
When Environment Outcome Duration Commit
9 hours ago CI github-actions:test passed 51 ms d923a46 main Profile
9 hours ago CI github-actions:test passed 265 ms 82997f8 main Profile
9 hours ago CI github-actions:test passed 176 ms 623aa3e main Profile
14 hours ago CI github-actions:test passed 168 ms ab6465a main Profile
14 hours ago CI github-actions:test passed 83 ms 0c23747 main Run