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

TestAnonymousCacheAndCsrf::test_plain_pages_are_indexable

First seen 3 weeks ago in 0c23747
CI github-actions:test 11 runs
Average
119 ms
median 119 ms
max 265 ms
Phases
Setup 2 ms Call 116 ms Teardown 0.33 ms
Categories
Database 12 ms Other (Libraries, Templates, pytest, Unsampled, ...) 107 ms

7 database queries per run

Needs 76 KB of memory (max 496 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
setup1 ms1.2%
call117 ms98.6%
TestAnonymousCacheAndCsrf.test_plain_pages_are_indexablefedidevs/tests.py:111 response = self.client.get("/login/")107 ms90.3%
Client.getdjango/test/client.py:1133107 ms90.3%
RequestFactory.getdjango/test/client.py:475107 ms90.3%
RequestFactory.genericdjango/test/client.py:671107 ms90.3%
Client.requestdjango/test/client.py:1091107 ms90.3%
ClientHandler.__call__django/test/client.py:17363 ms53.4%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6339 ms32.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10439 ms32.9%
WhiteNoise.add_fileswhitenoise/base.py:10839 ms32.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11524 ms20.5%
scantreewhitenoise/base.py:27119 ms16.4%
scantreewhitenoise/base.py:27119 ms16.4%
scantreewhitenoise/base.py:27310 ms8.2%
scantreewhitenoise/base.py:2715 ms4.1%
scantreewhitenoise/base.py:2715 ms4.1%
scantreewhitenoise/base.py:2695 ms4.1%
scantreewhitenoise/base.py:2695 ms4.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12015 ms12.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13115 ms12.3%
WhiteNoise.get_static_filewhitenoise/base.py:21710 ms8.2%
StaticFile.__init__whitenoise/responders.py:765 ms4.1%
StaticFile.__init__whitenoise/responders.py:775 ms4.1%
StaticFile.get_alternativeswhitenoise/responders.py:2015 ms4.1%
WhiteNoise.get_static_filewhitenoise/base.py:2125 ms4.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:9724 ms20.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10419 ms16.4%
WhiteNoise.add_fileswhitenoise/base.py:10819 ms16.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11519 ms16.4%
scantreewhitenoise/base.py:27119 ms16.4%
scantreewhitenoise/base.py:27119 ms16.4%
scantreewhitenoise/base.py:27119 ms16.4%
scantreewhitenoise/base.py:27119 ms16.4%
scantreewhitenoise/base.py:27119 ms16.4%
scantreewhitenoise/base.py:27319 ms16.4%
convert_exception_to_responsedjango/core/handlers/exception.py:535 ms4.1%
ClientHandler.__call__django/test/client.py:18644 ms37.0%
BaseHandler.get_responsedjango/core/handlers/base.py:14244 ms37.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5644 ms37.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38044 ms37.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5644 ms37.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38044 ms37.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5644 ms37.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38044 ms37.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5644 ms37.0%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12344 ms37.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5644 ms37.0%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14544 ms37.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5644 ms37.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38044 ms37.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5644 ms37.0%
MiddlewareMixin.__call__django/utils/deprecation.py:37944 ms37.0%
LocaleMiddleware.process_requestdjango/middleware/locale.py:2844 ms37.0%
get_language_from_pathdjango/utils/translation/__init__.py:25244 ms37.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5639 ms32.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38039 ms32.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5639 ms32.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38039 ms32.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5639 ms32.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38039 ms32.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5639 ms32.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38039 ms32.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5639 ms32.9%
BaseHandler._get_responsedjango/core/handlers/base.py:19939 ms32.9%
loginaccounts/views.py:280 return render(request, "login.html")39 ms32.9%
renderdjango/shortcuts.py:2739 ms32.9%
render_to_stringdjango/template/loader.py:6239 ms32.9%
Template.renderdjango/template/backends/django.py:10339 ms32.9%
Template.renderdjango/template/base.py:17534 ms28.7%
instrumented_test_renderdjango/test/utils.py:11329 ms24.6%
NodeList.renderdjango/template/base.py:110829 ms24.6%
Node.render_annotateddjango/template/base.py:106929 ms24.6%
ExtendsNode.renderdjango/template/loader_tags.py:16024 ms20.5%
instrumented_test_renderdjango/test/utils.py:11324 ms20.5%
NodeList.renderdjango/template/base.py:110824 ms20.5%
Node.render_annotateddjango/template/base.py:106919 ms16.4%
IfNode.renderdjango/template/defaulttags.py:33315 ms12.3%
NodeList.renderdjango/template/base.py:110815 ms12.3%
Node.render_annotateddjango/template/base.py:106910 ms8.2%
URLNode.renderdjango/template/defaulttags.py:51110 ms8.2%
reversedjango/urls/base.py:985 ms4.1%
URLResolver._reverse_with_prefixdjango/urls/resolvers.py:7625 ms4.1%
IfNode.renderdjango/template/defaulttags.py:3265 ms4.1%
TemplateLiteral.evaldjango/template/defaulttags.py:9185 ms4.1%
FilterExpression.resolvedjango/template/base.py:8065 ms4.1%
Variable.resolvedjango/template/base.py:9455 ms4.1%
Variable._resolve_lookupdjango/template/base.py:9995 ms4.1%
ExtendsNode.renderdjango/template/loader_tags.py:1525 ms4.1%
NodeList.get_nodes_by_typedjango/template/base.py:11145 ms4.1%
instrumented_test_renderdjango/test/utils.py:1125 ms4.1%
Signal.senddjango/dispatch/dispatcher.py:2495 ms4.1%
make_contextdjango/template/context.py:3045 ms4.1%
get_language_from_pathdjango/utils/translation/trans_real.py:5595 ms4.1%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()5 ms4.1%
TestCase._fixture_setupdjango/test/testcases.py:14815 ms4.1%
TestCase._enter_atomicsdjango/test/testcases.py:13995 ms4.1%
Atomic.__enter__django/db/transaction.py:2235 ms4.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms4.1%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4005 ms4.1%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3675 ms4.1%
CursorWrapper.executedjango/db/backends/utils.py:795 ms4.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms4.1%
CursorWrapper._executedjango/db/backends/utils.py:1035 ms4.1%
Cursor.executepsycopg/cursor.py:1135 ms4.1%
Connection.waitpsycopg/connection.py:4955 ms4.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2065 ms4.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2865 ms4.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:785 ms4.1%
Estimated from 26 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

fedidevs/tests.py:111
response = self.client.get("/login/")
TestAnonymousCacheAndCsrf.test_plain_pages_are_indexable · Libraries
68 ms
accounts/views.py:280
return render(request, "login.html")
login · Templates
39 ms

Fixtures

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

Database

7 queries · 5 ms
No repeated queries.

Biggest pieces of work

call test body
fedidevs/tests.py:111
107 ms
call pytest internals 5 ms
call _pre_setup
django/test/testcases.py:1167
5 ms
setup pytest internals 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 119 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 54 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 128 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 119 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 55 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 77 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 93 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 51 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 265 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 176 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 168 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 83 ms 0c23747 main Run