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

TestChangelogPage::test_changelog

First seen 2 years, 10 months ago in b9e98d9
CI github-actions:test 12 runs
Average
57 ms
median 50 ms
max 211 ms
Phases
Setup 24 ms Call 33 ms Teardown 1 ms
Categories
Database 29 ms Other (Libraries, Templates, pytest, Unsampled) 28 ms

5 database queries per run

Needs 168 KB of memory (max 856 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 16 hours ago · open run
Show pytest frames
setup10 ms21.2%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()10 ms21.2%
TestCase._enter_atomicsdjango/test/testcases.py:139610 ms21.2%
Atomic.__enter__django/db/transaction.py:19810 ms21.2%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45410 ms21.2%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30310 ms21.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms21.2%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27910 ms21.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms21.2%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2569 ms18.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms18.8%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3339 ms18.8%
Connection.connectpsycopg/connection.py:1098 ms16.5%
wait_connpsycopg/waiting.py:1414 ms9.4%
EpollSelector.select<stdlib>/selectors.py:4524 ms9.4%
wait_connpsycopg/waiting.py:1453 ms7.1%
BaseConnection._connect_genpsycopg/_connection_base.py:4393 ms7.1%
Connection.connectpsycopg/connection.py:1001 ms2.4%
conninfo_attemptspsycopg/_conninfo_attempts.py:451 ms2.4%
_resolve_hostnamespsycopg/_conninfo_attempts.py:1021 ms2.4%
getaddrinfo<stdlib>/socket.py:9981 ms2.4%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2581 ms2.4%
DatabaseWrapper.init_connection_statedjango/db/backends/postgresql/base.py:4021 ms2.4%
DatabaseWrapper._configure_connectiondjango/db/backends/postgresql/base.py:3741 ms2.4%
DatabaseWrapper._configure_timezonedjango/db/backends/postgresql/base.py:3571 ms2.4%
Cursor.executepsycopg/cursor.py:1131 ms2.4%
Connection.waitpsycopg/connection.py:4951 ms2.4%
call35 ms77.4%
TestChangelogPage.test_changelogft/tests.py:144 response = self.client.get(reverse("changelog"))35 ms77.4%
Client.getdjango/test/client.py:112435 ms77.4%
RequestFactory.getdjango/test/client.py:47535 ms77.4%
RequestFactory.genericdjango/test/client.py:67135 ms77.4%
Client.requestdjango/test/client.py:108235 ms77.4%
ClientHandler.__call__django/test/client.py:17333 ms71.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6233 ms71.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10433 ms71.9%
WhiteNoise.add_fileswhitenoise/base.py:10833 ms71.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12028 ms60.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13128 ms60.8%
WhiteNoise.get_static_filewhitenoise/base.py:20825 ms55.3%
StaticFile.__init__whitenoise/responders.py:778 ms16.6%
StaticFile.get_alternativeswhitenoise/responders.py:2008 ms16.6%
__init____init__:-13 ms5.5%
StaticFile.__init__whitenoise/responders.py:738 ms16.6%
StaticFile.get_headerswhitenoise/responders.py:1765 ms11.1%
formatdate<stdlib>/email/utils.py:2665 ms11.1%
format_datetime<stdlib>/email/utils.py:2845 ms11.1%
StaticFile.get_headerswhitenoise/responders.py:1703 ms5.5%
StaticFile.__init__whitenoise/responders.py:765 ms11.1%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1883 ms5.5%
StaticFile.__init__whitenoise/responders.py:743 ms5.5%
parsedate<stdlib>/email/_parseaddr.py:1853 ms5.5%
StaticFile.__init__whitenoise/responders.py:753 ms5.5%
Headers.__getitem__<stdlib>/wsgiref/headers.py:833 ms5.5%
Headers.get<stdlib>/wsgiref/headers.py:1063 ms5.5%
WhiteNoise.get_static_filewhitenoise/base.py:2033 ms5.5%
WhiteNoise.add_cache_headerswhitenoise/base.py:2243 ms5.5%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1763 ms5.5%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1973 ms5.5%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms5.5%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2053 ms5.5%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1783 ms5.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms11.1%
scantreewhitenoise/base.py:2643 ms5.5%
scantreewhitenoise/base.py:2623 ms5.5%
scantreewhitenoise/base.py:2623 ms5.5%
scantreewhitenoise/base.py:2643 ms5.5%
ClientHandler.__call__django/test/client.py:1863 ms5.5%
BaseHandler.get_responsedjango/core/handlers/base.py:1413 ms5.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms5.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1303 ms5.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms5.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms5.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms5.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1233 ms5.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms5.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms5.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms5.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms5.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms5.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms5.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms5.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms5.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms5.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms5.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms5.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms5.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms5.5%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:343 ms5.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms5.5%
BaseHandler._get_responsedjango/core/handlers/base.py:1983 ms5.5%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:1903 ms5.5%
vary_on_headers.<locals>.decorator.<locals>._view_wrapperdjango/views/decorators/vary.py:313 ms5.5%
changelogft/urls.py:79 return render(request, "changelog.html", {"logged_in": request.user.is_authenticated})3 ms5.5%
renderdjango/shortcuts.py:253 ms5.5%
render_to_stringdjango/template/loader.py:623 ms5.5%
Template.renderdjango/template/backends/django.py:1073 ms5.5%
Template.renderdjango/template/base.py:1743 ms5.5%
instrumented_test_renderdjango/test/utils.py:1143 ms5.5%
NodeList.renderdjango/template/base.py:10913 ms5.5%
Node.render_annotateddjango/template/base.py:10523 ms5.5%
ExtendsNode.renderdjango/template/loader_tags.py:1603 ms5.5%
instrumented_test_renderdjango/test/utils.py:1143 ms5.5%
NodeList.renderdjango/template/base.py:10913 ms5.5%
Node.render_annotateddjango/template/base.py:10523 ms5.5%
ExtendsNode.renderdjango/template/loader_tags.py:1603 ms5.5%
instrumented_test_renderdjango/test/utils.py:1143 ms5.5%
NodeList.renderdjango/template/base.py:10913 ms5.5%
Node.render_annotateddjango/template/base.py:10523 ms5.5%
BlockNode.renderdjango/template/loader_tags.py:663 ms5.5%
NodeList.renderdjango/template/base.py:10913 ms5.5%
Estimated from 23 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

ft/tests.py:144
response = self.client.get(reverse("changelog"))
TestChangelogPage.test_changelog · Libraries
33 ms
ft/urls.py:79
return render(request, "changelog.html", {"logged_in": request.user.is_authenticated})
changelog · Templates
3 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestChangelogPage class 9 ms
_django_setup_unittest class 0.24 ms
_dj_autoclear_mailbox function 0.04 ms
_template_string_if_invalid_marker function 0.04 ms
_django_db_marker function 0.03 ms
_live_server_helper function 0.03 ms
_django_set_urlconf function 0.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

5 queries · 0.78 ms
No repeated queries.

Biggest pieces of work

call test body
ft/tests.py:144
35 ms
setup setUpClass
django/test/testcases.py:1423
10 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
16 hours ago CI github-actions:test passed 46 ms e141198 main Profile
1 week, 5 days ago CI github-actions:test passed 23 ms 46ec2aa main Profile
2 weeks, 1 day ago CI github-actions:test passed 55 ms afde85b main Profile
2 weeks, 1 day ago CI github-actions:test passed 34 ms fe29f9d main Profile
2 weeks, 1 day ago CI github-actions:test passed 62 ms 044719a main Profile
2 weeks, 2 days ago CI github-actions:test passed 29 ms b3fedae main Profile
2 weeks, 4 days ago CI github-actions:test passed 51 ms 43c4eda main Profile
2 weeks, 6 days ago CI github-actions:test passed 50 ms 9caa567 main Profile
2 weeks, 6 days ago CI github-actions:test passed 49 ms ec75501 main Profile
3 weeks ago CI github-actions:test passed 54 ms d2c12e5 main Profile
3 weeks ago CI github-actions:test passed 24 ms 0b902f6 main Profile
3 weeks ago CI github-actions:test passed 211 ms 78a4357 main Profile