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

TestTrubleshootingPage::test_troubleshooting

First seen 2 years, 11 months ago in b9e98d9
CI github-actions:test 15 runs
Average
98 ms
median 53 ms
max 230 ms
Phases
Setup 10 ms Call 88 ms Teardown 0.17 ms
Categories
Database 11 ms Test code 0.01 ms Other (Libraries, Templates, pytest, Unsampled, ...) 88 ms

5 database queries per run

Needs 105 KB of memory (max 420 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()5 ms15.8%
TestCase._enter_atomicsdjango/test/testcases.py:13965 ms15.8%
Atomic.__enter__django/db/transaction.py:1985 ms15.8%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4545 ms15.8%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3035 ms15.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms15.8%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2795 ms15.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms15.8%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2565 ms15.8%
DatabaseWrapper.get_new_connectionft/db/postgresql/base.py:39 return super().get_new_connection(conn_params)5 ms15.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms15.8%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3335 ms15.8%
Connection.connectpsycopg/connection.py:1095 ms15.8%
wait_connpsycopg/waiting.py:1454 ms10.5%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms10.5%
wait_connpsycopg/waiting.py:1412 ms5.3%
EpollSelector.select<stdlib>/selectors.py:4522 ms5.3%
call26 ms78.6%
TestTrubleshootingPage.test_troubleshootingft/tests.py:103 response = self.client.get(reverse("trubleshooting"))25 ms73.4%
Client.getdjango/test/client.py:112425 ms73.4%
RequestFactory.getdjango/test/client.py:47525 ms73.4%
RequestFactory.genericdjango/test/client.py:67125 ms73.4%
Client.requestdjango/test/client.py:108225 ms73.4%
ClientHandler.__call__django/test/client.py:17323 ms68.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6223 ms68.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10423 ms68.1%
WhiteNoise.add_fileswhitenoise/base.py:10823 ms68.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12021 ms62.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13121 ms62.9%
WhiteNoise.get_static_filewhitenoise/base.py:20818 ms52.4%
StaticFile.__init__whitenoise/responders.py:725 ms15.7%
StaticFile.get_file_statswhitenoise/responders.py:1635 ms15.7%
<GC>~5 ms15.7%
StaticFile.__init__whitenoise/responders.py:735 ms15.7%
StaticFile.get_headerswhitenoise/responders.py:1764 ms10.5%
formatdate<stdlib>/email/utils.py:2662 ms5.2%
StaticFile.get_headerswhitenoise/responders.py:1702 ms5.2%
StaticFile.__init__whitenoise/responders.py:764 ms10.5%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1894 ms10.5%
Headers.__getitem__<stdlib>/wsgiref/headers.py:834 ms10.5%
Headers.get<stdlib>/wsgiref/headers.py:1072 ms5.2%
Headers.get<stdlib>/wsgiref/headers.py:1042 ms5.2%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:502 ms5.2%
StaticFile.__init__whitenoise/responders.py:742 ms5.2%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms5.2%
WhiteNoise.get_static_filewhitenoise/base.py:2034 ms10.5%
WhiteNoise.add_cache_headerswhitenoise/base.py:2244 ms10.5%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1764 ms10.5%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms5.2%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms5.2%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2052 ms5.2%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1862 ms5.2%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2092 ms5.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms5.2%
scantreewhitenoise/base.py:2622 ms5.2%
scantreewhitenoise/base.py:2622 ms5.2%
scantreewhitenoise/base.py:2602 ms5.2%
ClientHandler.__call__django/test/client.py:1862 ms5.2%
BaseHandler.get_responsedjango/core/handlers/base.py:1412 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1302 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1232 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.2%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:342 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.2%
BaseHandler._get_responsedjango/core/handlers/base.py:1822 ms5.2%
BaseHandler.resolve_requestdjango/core/handlers/base.py:3142 ms5.2%
URLResolver.resolvedjango/urls/resolvers.py:6732 ms5.2%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms5.2%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms5.2%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4822 ms5.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms5.2%
Estimated from 23 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

ft/tests.py:103
response = self.client.get(reverse("trubleshooting"))
TestTrubleshootingPage.test_troubleshooting · Libraries
25 ms
ft/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection · Database
5 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestTrubleshootingPage class 6 ms
_django_setup_unittest class 0.20 ms
_template_string_if_invalid_marker function 0.05 ms
_dj_autoclear_mailbox function 0.04 ms
_live_server_helper function 0.03 ms
_django_db_marker function 0.03 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.43 ms
No repeated queries.

Biggest pieces of work

call test body
ft/tests.py:103
25 ms
setup setUpClass
django/test/testcases.py:1423
5 ms
setup pytest internals 2 ms
call _post_teardown
django/test/testcases.py:1240
2 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 33 ms cb18ed3 main Profile
2 weeks, 4 days ago CI github-actions:test passed 48 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 60 ms e141198 main Profile
1 month ago CI github-actions:test passed 29 ms 46ec2aa main Profile
1 month ago CI github-actions:test passed 53 ms afde85b main Profile
1 month ago CI github-actions:test passed 49 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 27 ms b3fedae main Profile
1 month, 1 week ago CI github-actions:test passed 230 ms 43c4eda main Profile
1 month, 1 week ago CI github-actions:test passed 212 ms 9caa567 main Profile
1 month, 1 week ago CI github-actions:test passed 208 ms ec75501 main Profile
1 month, 1 week ago CI github-actions:test passed 219 ms d2c12e5 main Profile
1 month, 1 week ago CI github-actions:test passed 169 ms 0b902f6 main Profile
1 month, 1 week ago CI github-actions:test passed 49 ms 78a4357 main Profile