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

TestCIPage::test_ci

First seen 2 years, 11 months ago in b9e98d9
CI github-actions:test 15 runs
Average
44 ms
median 50 ms
max 61 ms
Phases
Setup 9 ms Call 34 ms Teardown 1 ms
Categories
Database 12 ms Other (Libraries, Templates, pytest, Unsampled) 32 ms

5 database queries per run

Needs 206 KB of memory (max 480 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
setup7 ms21.0%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()6 ms18.0%
TestCase._enter_atomicsdjango/test/testcases.py:13966 ms18.0%
Atomic.__enter__django/db/transaction.py:1986 ms18.0%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4546 ms18.0%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3036 ms18.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:266 ms18.0%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2796 ms18.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:266 ms18.0%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2566 ms18.0%
DatabaseWrapper.get_new_connectionft/db/postgresql/base.py:39 return super().get_new_connection(conn_params)6 ms18.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:266 ms18.0%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3336 ms18.0%
Connection.connectpsycopg/connection.py:1096 ms18.0%
wait_connpsycopg/waiting.py:1414 ms12.0%
EpollSelector.select<stdlib>/selectors.py:4524 ms12.0%
wait_connpsycopg/waiting.py:1452 ms6.0%
BaseConnection._connect_genpsycopg/_connection_base.py:4392 ms6.0%
call28 ms77.7%
TestCIPage.test_cift/tests.py:96 response = self.client.get(reverse("ci"))28 ms77.7%
Client.getdjango/test/client.py:112428 ms77.7%
RequestFactory.getdjango/test/client.py:47528 ms77.7%
RequestFactory.genericdjango/test/client.py:67128 ms77.7%
Client.requestdjango/test/client.py:108228 ms77.7%
ClientHandler.__call__django/test/client.py:17324 ms66.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6224 ms66.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10424 ms66.6%
WhiteNoise.add_fileswhitenoise/base.py:10824 ms66.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12020 ms55.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13120 ms55.5%
WhiteNoise.get_static_filewhitenoise/base.py:20820 ms55.5%
StaticFile.__init__whitenoise/responders.py:738 ms22.2%
StaticFile.get_headerswhitenoise/responders.py:1764 ms11.1%
formatdate<stdlib>/email/utils.py:2664 ms11.1%
format_datetime<stdlib>/email/utils.py:2844 ms11.1%
StaticFile.get_headerswhitenoise/responders.py:1714 ms11.1%
StaticFile.__init__whitenoise/responders.py:774 ms11.1%
StaticFile.get_alternativeswhitenoise/responders.py:2004 ms11.1%
StaticFile.__init__whitenoise/responders.py:764 ms11.1%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1884 ms11.1%
Headers.__contains__<stdlib>/wsgiref/headers.py:874 ms11.1%
Headers.get<stdlib>/wsgiref/headers.py:1044 ms11.1%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:504 ms11.1%
StaticFile.__init__whitenoise/responders.py:744 ms11.1%
Headers.__getitem__<stdlib>/wsgiref/headers.py:834 ms11.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms11.1%
scantreewhitenoise/base.py:2624 ms11.1%
scantreewhitenoise/base.py:2624 ms11.1%
scantreewhitenoise/base.py:2624 ms11.1%
scantreewhitenoise/base.py:2624 ms11.1%
scantreewhitenoise/base.py:2624 ms11.1%
scantreewhitenoise/base.py:2604 ms11.1%
ClientHandler.__call__django/test/client.py:1864 ms11.1%
BaseHandler.get_responsedjango/core/handlers/base.py:1414 ms11.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms11.1%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1304 ms11.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms11.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms11.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms11.1%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1234 ms11.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms11.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms11.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms11.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms11.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms11.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms11.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms11.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms11.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms11.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms11.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms11.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms11.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms11.1%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:344 ms11.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms11.1%
BaseHandler._get_responsedjango/core/handlers/base.py:1984 ms11.1%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:1904 ms11.1%
vary_on_headers.<locals>.decorator.<locals>._view_wrapperdjango/views/decorators/vary.py:314 ms11.1%
cift/urls.py:67 return render(request, "ci.html", {"logged_in": request.user.is_authenticated})4 ms11.1%
renderdjango/shortcuts.py:254 ms11.1%
render_to_stringdjango/template/loader.py:624 ms11.1%
Template.renderdjango/template/backends/django.py:1074 ms11.1%
Template.renderdjango/template/base.py:1744 ms11.1%
instrumented_test_renderdjango/test/utils.py:1144 ms11.1%
NodeList.renderdjango/template/base.py:10914 ms11.1%
Node.render_annotateddjango/template/base.py:10524 ms11.1%
ExtendsNode.renderdjango/template/loader_tags.py:1604 ms11.1%
instrumented_test_renderdjango/test/utils.py:1144 ms11.1%
NodeList.renderdjango/template/base.py:10914 ms11.1%
Node.render_annotateddjango/template/base.py:10524 ms11.1%
ExtendsNode.renderdjango/template/loader_tags.py:1604 ms11.1%
instrumented_test_renderdjango/test/utils.py:1144 ms11.1%
NodeList.renderdjango/template/base.py:10914 ms11.1%
Node.render_annotateddjango/template/base.py:10524 ms11.1%
IfNode.renderdjango/template/defaulttags.py:3264 ms11.1%
TemplateLiteral.evaldjango/template/defaulttags.py:9184 ms11.1%
FilterExpression.resolvedjango/template/base.py:7884 ms11.1%
Variable.resolvedjango/template/base.py:9284 ms11.1%
Variable._resolve_lookupdjango/template/base.py:9654 ms11.1%
Estimated from 14 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

ft/tests.py:96
response = self.client.get(reverse("ci"))
TestCIPage.test_ci · Libraries
24 ms
ft/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection · Database
6 ms
ft/urls.py:67
return render(request, "ci.html", {"logged_in": request.user.is_authenticated})
ci · Templates
4 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestCIPage class 7 ms
_django_setup_unittest class 0.23 ms
_dj_autoclear_mailbox function 0.04 ms
_django_db_marker function 0.04 ms
_template_string_if_invalid_marker function 0.03 ms
_django_set_urlconf function 0.03 ms
_live_server_helper function 0.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.01 ms

Database

5 queries · 0.44 ms
No repeated queries.

Biggest pieces of work

call test body
ft/tests.py:96
28 ms
setup setUpClass
django/test/testcases.py:1423
6 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 38 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 26 ms 19dac9b main Profile
3 weeks ago CI github-actions:test passed 54 ms e141198 main Profile
1 month ago CI github-actions:test passed 28 ms 46ec2aa main Profile
1 month ago CI github-actions:test passed 46 ms afde85b main Profile
1 month ago CI github-actions:test passed 52 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 54 ms 044719a main Profile
1 month ago CI github-actions:test passed 30 ms b3fedae main Profile
1 month, 1 week ago CI github-actions:test passed 55 ms 43c4eda main Profile
1 month, 1 week ago CI github-actions:test passed 53 ms 9caa567 main Profile
1 month, 1 week ago CI github-actions:test passed 50 ms ec75501 main Profile
1 month, 1 week ago CI github-actions:test passed 56 ms d2c12e5 main Profile
1 month, 1 week ago CI github-actions:test passed 25 ms 0b902f6 main Profile
1 month, 1 week ago CI github-actions:test passed 61 ms 78a4357 main Profile