flakytest.dev anze3db flakytest
Tests / apps/projects/tests.py

IndexPageTest::test_index_page

First seen 3 years ago in 6555e46
CI github-actions:test 15 runs
Average
89 ms
median 53 ms
max 211 ms
Phases
Setup 9 ms Call 79 ms Teardown 0.99 ms
Categories
Database 16 ms Other (Libraries, Templates, Unsampled, pytest, ...) 73 ms

6 database queries per run

Needs 153 KB of memory (max 948 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
setup8 ms22.4%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()7 ms19.2%
TestCase._enter_atomicsdjango/test/testcases.py:13967 ms19.2%
Atomic.__enter__django/db/transaction.py:1987 ms19.2%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4547 ms19.2%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3037 ms19.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:267 ms19.2%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2797 ms19.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:267 ms19.2%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2567 ms19.2%
DatabaseWrapper.get_new_connectionft/db/postgresql/base.py:39 return super().get_new_connection(conn_params)7 ms19.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:267 ms19.2%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3337 ms19.2%
Connection.connectpsycopg/connection.py:1097 ms19.2%
wait_connpsycopg/waiting.py:1413 ms9.6%
EpollSelector.select<stdlib>/selectors.py:4523 ms9.6%
wait_connpsycopg/waiting.py:1452 ms6.4%
BaseConnection._connect_genpsycopg/_connection_base.py:4392 ms6.4%
wait_connpsycopg/waiting.py:1361 ms3.2%
BaseConnection._connect_genpsycopg/_connection_base.py:4391 ms3.2%
call25 ms71.2%
IndexPageTest.test_index_pageapps/projects/tests.py:89 response = self.client.get("/")25 ms71.2%
Client.getdjango/test/client.py:112425 ms71.2%
RequestFactory.getdjango/test/client.py:47525 ms71.2%
RequestFactory.genericdjango/test/client.py:67125 ms71.2%
Client.requestdjango/test/client.py:108225 ms71.2%
ClientHandler.__call__django/test/client.py:17320 ms56.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6220 ms56.9%
__init____init__:-120 ms56.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10420 ms56.9%
WhiteNoise.add_fileswhitenoise/base.py:10820 ms56.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12013 ms35.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13113 ms35.6%
WhiteNoise.get_static_filewhitenoise/base.py:20813 ms35.6%
StaticFile.__init__whitenoise/responders.py:778 ms21.3%
StaticFile.get_alternativeswhitenoise/responders.py:2013 ms7.1%
Headers.__setitem__<stdlib>/wsgiref/headers.py:623 ms7.1%
Headers.__delitem__<stdlib>/wsgiref/headers.py:723 ms7.1%
<GC>~3 ms7.1%
StaticFile.get_alternativeswhitenoise/responders.py:2003 ms7.1%
__init____init__:-13 ms7.1%
Headers.__init__<stdlib>/wsgiref/headers.py:433 ms7.1%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:503 ms7.1%
StaticFile.get_alternativeswhitenoise/responders.py:2073 ms7.1%
Headers.items<stdlib>/wsgiref/headers.py:1313 ms7.1%
<GC>~3 ms7.1%
StaticFile.__init__whitenoise/responders.py:735 ms14.2%
StaticFile.get_headerswhitenoise/responders.py:1673 ms7.1%
StaticFile.get_headerswhitenoise/responders.py:1703 ms7.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms14.2%
scantreewhitenoise/base.py:2625 ms14.2%
scantreewhitenoise/base.py:2625 ms14.2%
scantreewhitenoise/base.py:2645 ms14.2%
ClientHandler.__call__django/test/client.py:1865 ms14.2%
BaseHandler.get_responsedjango/core/handlers/base.py:1415 ms14.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms14.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1305 ms14.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms14.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms14.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms14.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1235 ms14.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms14.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms14.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms14.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms14.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms14.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms14.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms14.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms14.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms14.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms14.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms14.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms14.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms14.2%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:345 ms14.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms14.2%
BaseHandler._get_responsedjango/core/handlers/base.py:1985 ms14.2%
indexft/urls.py:45 return render(request, "index.html", {"example_projects": example_projects})5 ms14.2%
renderdjango/shortcuts.py:255 ms14.2%
render_to_stringdjango/template/loader.py:625 ms14.2%
Template.renderdjango/template/backends/django.py:1075 ms14.2%
Template.renderdjango/template/base.py:1745 ms14.2%
instrumented_test_renderdjango/test/utils.py:1145 ms14.2%
NodeList.renderdjango/template/base.py:10915 ms14.2%
Node.render_annotateddjango/template/base.py:10525 ms14.2%
ExtendsNode.renderdjango/template/loader_tags.py:1605 ms14.2%
instrumented_test_renderdjango/test/utils.py:1145 ms14.2%
NodeList.renderdjango/template/base.py:10915 ms14.2%
Node.render_annotateddjango/template/base.py:10525 ms14.2%
ExtendsNode.renderdjango/template/loader_tags.py:1605 ms14.2%
instrumented_test_renderdjango/test/utils.py:1145 ms14.2%
NodeList.renderdjango/template/base.py:10915 ms14.2%
Node.render_annotateddjango/template/base.py:10525 ms14.2%
BlockNode.renderdjango/template/loader_tags.py:665 ms14.2%
NodeList.renderdjango/template/base.py:10915 ms14.2%
Node.render_annotateddjango/template/base.py:10525 ms14.2%
BlockNode.renderdjango/template/loader_tags.py:665 ms14.2%
NodeList.renderdjango/template/base.py:10915 ms14.2%
Node.render_annotateddjango/template/base.py:10525 ms14.2%
IfNode.renderdjango/template/defaulttags.py:3325 ms14.2%
QuerySet.__bool__django/db/models/query.py:4045 ms14.2%
QuerySet._fetch_alldjango/db/models/query.py:20005 ms14.2%
ModelIterable.__iter__django/db/models/query.py:955 ms14.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16113 ms7.1%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7673 ms7.1%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:863 ms7.1%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:753 ms7.1%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3003 ms7.1%
SQLCompiler.get_related_selectionsdjango/db/models/sql/compiler.py:12423 ms7.1%
select_related_descenddjango/db/models/query_utils.py:4233 ms7.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms7.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms7.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms7.1%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms7.1%
Cursor.executepsycopg/cursor.py:1133 ms7.1%
Connection.waitpsycopg/connection.py:4953 ms7.1%
Estimated from 17 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/tests.py:89
response = self.client.get("/")
IndexPageTest.test_index_page · Libraries
20 ms
ft/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection · Database
7 ms
ft/urls.py:45
return render(request, "index.html", {"example_projects": example_projects})
index · Database
5 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_IndexPageTest class 7 ms
_django_setup_unittest class 0.20 ms
_dj_autoclear_mailbox function 0.05 ms
_template_string_if_invalid_marker function 0.04 ms
_django_db_marker function 0.03 ms
_django_set_urlconf function 0.02 ms
_live_server_helper function 0.02 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.01 ms

Database

6 queries · 2 ms
No repeated queries.

Biggest pieces of work

call test body
apps/projects/tests.py:89
25 ms
setup setUpClass
django/test/testcases.py:1423
7 ms
setup pytest internals 1 ms

Reliability

15 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 15 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 35 ms cb18ed3 main Profile
2 weeks, 4 days ago CI github-actions:test passed 53 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 25 ms 19dac9b main Profile
3 weeks ago CI github-actions:test passed 53 ms e141198 main Profile
1 month ago CI github-actions:test passed 27 ms 46ec2aa main Profile
1 month ago CI github-actions:test passed 48 ms afde85b main Profile
1 month ago CI github-actions:test passed 35 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 67 ms 044719a main Profile
1 month ago CI github-actions:test passed 28 ms b3fedae main Profile
1 month, 1 week ago CI github-actions:test passed 211 ms 43c4eda main Profile
1 month, 1 week ago CI github-actions:test passed 203 ms 9caa567 main Profile
1 month, 1 week ago CI github-actions:test passed 203 ms ec75501 main Profile
1 month, 1 week ago CI github-actions:test passed 102 ms d2c12e5 main Profile
1 month, 1 week ago CI github-actions:test passed 161 ms 0b902f6 main Profile
1 month, 1 week ago CI github-actions:test passed 85 ms 78a4357 main Profile