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

TestChangelogPage::test_changelog

First seen 2 years, 11 months ago in b9e98d9
CI github-actions:test 15 runs
Average
53 ms
median 46 ms
max 211 ms
Phases
Setup 20 ms Call 31 ms Teardown 1 ms
Categories
Database 26 ms Other (Libraries, Templates, pytest, Unsampled) 27 ms

5 database queries per run

Needs 181 KB of memory (max 856 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
setup7 ms20.5%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()7 ms20.5%
TestCase._enter_atomicsdjango/test/testcases.py:13967 ms20.5%
Atomic.__enter__django/db/transaction.py:1987 ms20.5%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4547 ms20.5%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3037 ms20.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:267 ms20.5%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2797 ms20.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:267 ms20.5%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2567 ms20.5%
DatabaseWrapper.get_new_connectionft/db/postgresql/base.py:39 return super().get_new_connection(conn_params)7 ms20.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:267 ms20.5%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3337 ms20.5%
Connection.connectpsycopg/connection.py:1097 ms20.5%
wait_connpsycopg/waiting.py:1453 ms10.3%
BaseConnection._connect_genpsycopg/_connection_base.py:4393 ms10.3%
wait_connpsycopg/waiting.py:1362 ms6.8%
BaseConnection._connect_genpsycopg/_connection_base.py:4392 ms6.8%
wait_connpsycopg/waiting.py:1411 ms3.4%
EpollSelector.select<stdlib>/selectors.py:4521 ms3.4%
call25 ms78.4%
TestChangelogPage.test_changelogft/tests.py:150 response = self.client.get(reverse("changelog"))22 ms68.6%
Client.getdjango/test/client.py:112422 ms68.6%
RequestFactory.getdjango/test/client.py:47522 ms68.6%
RequestFactory.genericdjango/test/client.py:67122 ms68.6%
Client.requestdjango/test/client.py:108222 ms68.6%
ClientHandler.__call__django/test/client.py:17322 ms68.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6222 ms68.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10422 ms68.6%
WhiteNoise.add_fileswhitenoise/base.py:10822 ms68.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12019 ms58.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13119 ms58.8%
WhiteNoise.get_static_filewhitenoise/base.py:2089 ms29.4%
StaticFile.__init__whitenoise/responders.py:776 ms19.6%
StaticFile.get_alternativeswhitenoise/responders.py:2013 ms9.8%
Headers.__setitem__<stdlib>/wsgiref/headers.py:623 ms9.8%
Headers.__delitem__<stdlib>/wsgiref/headers.py:723 ms9.8%
<GC>~3 ms9.8%
StaticFile.__init__whitenoise/responders.py:763 ms9.8%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1893 ms9.8%
Headers.__getitem__<stdlib>/wsgiref/headers.py:833 ms9.8%
Headers.get<stdlib>/wsgiref/headers.py:1063 ms9.8%
WhiteNoise.get_static_filewhitenoise/base.py:2036 ms19.6%
WhiteNoise.add_cache_headerswhitenoise/base.py:2246 ms19.6%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1766 ms19.6%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1976 ms19.6%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms9.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms9.8%
scantreewhitenoise/base.py:2623 ms9.8%
scantreewhitenoise/base.py:2623 ms9.8%
scantreewhitenoise/base.py:2643 ms9.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()3 ms9.8%
TestCase._fixture_teardowndjango/test/testcases.py:14953 ms9.8%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4843 ms9.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms9.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms9.8%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms9.8%
Cursor.executepsycopg/cursor.py:1133 ms9.8%
Connection.waitpsycopg/connection.py:4953 ms9.8%
Estimated from 14 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

ft/tests.py:150
response = self.client.get(reverse("changelog"))
TestChangelogPage.test_changelog · Libraries
22 ms
ft/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection · Database
7 ms

Fixtures

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

Database

5 queries · 0.48 ms
No repeated queries.

Biggest pieces of work

call test body
ft/tests.py:150
22 ms
setup setUpClass
django/test/testcases.py:1423
7 ms
call _post_teardown
django/test/testcases.py:1240
3 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 32 ms cb18ed3 main Profile
2 weeks, 4 days ago CI github-actions:test passed 40 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 29 ms 19dac9b main Profile
3 weeks ago CI github-actions:test passed 46 ms e141198 main Profile
1 month ago CI github-actions:test passed 23 ms 46ec2aa main Profile
1 month ago CI github-actions:test passed 55 ms afde85b main Profile
1 month ago CI github-actions:test passed 34 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 62 ms 044719a main Profile
1 month ago CI github-actions:test passed 29 ms b3fedae main Profile
1 month, 1 week ago CI github-actions:test passed 51 ms 43c4eda main Profile
1 month, 1 week ago CI github-actions:test passed 50 ms 9caa567 main Profile
1 month, 1 week ago CI github-actions:test passed 49 ms ec75501 main Profile
1 month, 1 week ago CI github-actions:test passed 54 ms d2c12e5 main Profile
1 month, 1 week ago CI github-actions:test passed 24 ms 0b902f6 main Profile
1 month, 1 week ago CI github-actions:test passed 211 ms 78a4357 main Profile