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

TestChangelogPage::test_changelog

First seen 2 years, 9 months ago in b9e98d9
CI github-actions:test 5 runs
Average
78 ms
median 50 ms
max 211 ms
Phases
Setup 42 ms Call 34 ms Teardown 1 ms
Categories
Database 49 ms Other (Libraries, pytest, Templates, Unsampled) 29 ms

5 database queries per run

Needs 1 KB of memory (max 4 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, an hour ago · open run
Show pytest frames
setup10 ms20.0%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()9 ms18.0%
TestCase._enter_atomicsdjango/test/testcases.py:13969 ms18.0%
Atomic.__enter__django/db/transaction.py:1989 ms18.0%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4549 ms18.0%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3039 ms18.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms18.0%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2799 ms18.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms18.0%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2568 ms16.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms16.0%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3338 ms16.0%
Connection.connectpsycopg/connection.py:1098 ms16.0%
wait_connpsycopg/waiting.py:1413 ms6.0%
EpollSelector.select<stdlib>/selectors.py:4523 ms6.0%
wait_connpsycopg/waiting.py:1453 ms6.0%
BaseConnection._connect_genpsycopg/_connection_base.py:4393 ms6.0%
wait_connpsycopg/waiting.py:1472 ms4.0%
_PollLikeSelector.unregister<stdlib>/selectors.py:3522 ms4.0%
_BaseSelectorImpl.unregister<stdlib>/selectors.py:2532 ms4.0%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2580.99 ms2.0%
DatabaseWrapper.init_connection_statedjango/db/backends/postgresql/base.py:4020.99 ms2.0%
DatabaseWrapper._configure_connectiondjango/db/backends/postgresql/base.py:3740.99 ms2.0%
DatabaseWrapper._configure_timezonedjango/db/backends/postgresql/base.py:3570.99 ms2.0%
Cursor.executepsycopg/cursor.py:1130.99 ms2.0%
Connection.waitpsycopg/connection.py:4950.99 ms2.0%
call39 ms78.7%
TestChangelogPage.test_changelogft/tests.py:143 response = self.client.get(reverse("changelog"))34 ms68.2%
Client.getdjango/test/client.py:112434 ms68.2%
RequestFactory.getdjango/test/client.py:47534 ms68.2%
RequestFactory.genericdjango/test/client.py:67134 ms68.2%
Client.requestdjango/test/client.py:108234 ms68.2%
ClientHandler.__call__django/test/client.py:17331 ms62.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6231 ms62.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10429 ms57.7%
WhiteNoise.add_fileswhitenoise/base.py:10829 ms57.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12018 ms36.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13118 ms36.7%
WhiteNoise.get_static_filewhitenoise/base.py:20813 ms26.2%
StaticFile.__init__whitenoise/responders.py:7310 ms21.0%
StaticFile.get_headerswhitenoise/responders.py:17610 ms21.0%
formatdate<stdlib>/email/utils.py:2665 ms10.5%
format_datetime<stdlib>/email/utils.py:2845 ms10.5%
StaticFile.__init__whitenoise/responders.py:773 ms5.2%
StaticFile.get_alternativeswhitenoise/responders.py:2013 ms5.2%
WhiteNoise.get_static_filewhitenoise/base.py:2035 ms10.5%
WhiteNoise.add_cache_headerswhitenoise/base.py:2245 ms10.5%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1765 ms10.5%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1975 ms10.5%
URLMixin.urldebug_toolbar/panels/staticfiles.py:205 ms10.5%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2053 ms5.2%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1863 ms5.2%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2093 ms5.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11510 ms21.0%
scantreewhitenoise/base.py:26210 ms21.0%
scantreewhitenoise/base.py:2628 ms15.7%
scantreewhitenoise/base.py:2645 ms10.5%
<GC>~3 ms5.2%
scantreewhitenoise/base.py:2643 ms5.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1113 ms5.2%
WhiteNoise.add_fileswhitenoise/base.py:1083 ms5.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1203 ms5.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1313 ms5.2%
WhiteNoise.get_static_filewhitenoise/base.py:2083 ms5.2%
StaticFile.__init__whitenoise/responders.py:743 ms5.2%
parsedate<stdlib>/email/_parseaddr.py:1853 ms5.2%
ClientHandler.__call__django/test/client.py:1863 ms5.2%
BaseHandler.get_responsedjango/core/handlers/base.py:1413 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms5.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1303 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms5.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1233 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms5.2%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:343 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms5.2%
BaseHandler._get_responsedjango/core/handlers/base.py:1983 ms5.2%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:1903 ms5.2%
vary_on_headers.<locals>.decorator.<locals>._view_wrapperdjango/views/decorators/vary.py:313 ms5.2%
changelogft/urls.py:79 return render(request, "changelog.html", {"logged_in": request.user.is_authenticated})3 ms5.2%
renderdjango/shortcuts.py:253 ms5.2%
render_to_stringdjango/template/loader.py:613 ms5.2%
get_templatedjango/template/loader.py:153 ms5.2%
DjangoTemplates.get_templatedjango/template/backends/django.py:793 ms5.2%
Engine.get_templatedjango/template/engine.py:1863 ms5.2%
Engine.find_templatedjango/template/engine.py:1593 ms5.2%
Loader.get_templatedjango/template/loaders/cached.py:573 ms5.2%
Loader.get_templatedjango/template/loaders/base.py:233 ms5.2%
Loader.get_contentsdjango/template/loaders/cached.py:263 ms5.2%
Loader.get_contentsdjango/template/loaders/filesystem.py:223 ms5.2%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()3 ms5.2%
TestCase._fixture_teardowndjango/test/testcases.py:14953 ms5.2%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4843 ms5.2%
CursorWrapper.executedjango/db/backends/utils.py:793 ms5.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms5.2%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms5.2%
Cursor.executepsycopg/cursor.py:1133 ms5.2%
Connection.waitpsycopg/connection.py:4953 ms5.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms5.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms5.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms5.2%
Estimated from 25 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

ft/tests.py:143
response = self.client.get(reverse("changelog"))
TestChangelogPage.test_changelog · Libraries
31 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.33 ms
_template_string_if_invalid_marker function 0.05 ms
_django_db_marker function 0.04 ms
_dj_autoclear_mailbox function 0.04 ms
_django_set_urlconf function 0.04 ms
_live_server_helper function 0.04 ms
_django_clear_site_cache function 0.03 ms
monkeypatch function 0.02 ms

Database

5 queries · 1 ms
No repeated queries.

Biggest pieces of work

call test body
ft/tests.py:143
34 ms
setup setUpClass
django/test/testcases.py:1423
9 ms
call pytest internals 3 ms
call _post_teardown
django/test/testcases.py:1240
3 ms
setup pytest internals 0.99 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 50 results, oldest first in the strip
When Environment Outcome Duration Commit
an hour ago CI github-actions:test passed 50 ms 9caa567 main Profile
an hour ago CI github-actions:test passed 49 ms ec75501 main Profile
8 hours ago CI github-actions:test passed 54 ms d2c12e5 main Profile
8 hours ago CI github-actions:test passed 24 ms 0b902f6 main Profile
8 hours ago CI github-actions:test passed 211 ms 78a4357 main Profile
2 years ago CI github-actions passed 102 ms 61209a6 main Run
2 years, 2 months ago CI github-actions passed 97 ms 55ca4c2 main Run
2 years, 3 months ago CI github-actions passed 104 ms d007c85 main Run
2 years, 4 months ago CI github-actions passed 102 ms 3d86013 main Run
2 years, 4 months ago CI github-actions passed 106 ms bed0acb main Run
2 years, 4 months ago CI github-actions passed 109 ms 78c1737 main Run
2 years, 4 months ago CI github-actions passed 97 ms 1a5664b main Run
2 years, 5 months ago CI github-actions passed 97 ms c3680ac main Run
2 years, 5 months ago CI github-actions passed 95 ms 06a1df4 main Run
2 years, 5 months ago CI github-actions passed 119 ms a29c34e main Run
2 years, 5 months ago CI github-actions passed 96 ms e55e63f main Run
2 years, 5 months ago CI github-actions passed 98 ms ba5cb67 main Run
2 years, 6 months ago CI github-actions passed 96 ms 7c123d8 main Run
2 years, 6 months ago CI github-actions passed 96 ms 5ae45e1 main Run
2 years, 6 months ago CI github-actions passed 93 ms 1680367 main Run