flakytest.dev anze3db fedidevs
Tests / accounts/tests.py

TestStaticPages::test_developers_on_mastodon

First seen 2 years, 3 months ago in 11beb36
CI github-actions:test 13 runs
Average
394 ms
median 320 ms
max 749 ms
Phases
Setup 17 ms Call 376 ms Teardown 0.61 ms
Categories
Database 32 ms Other (Libraries, Templates, Unsampled, pytest, ...) 361 ms

8 database queries per run

Needs 74 KB of memory (max 260 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
setup10 ms4.4%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()9 ms3.9%
TestCase._enter_atomicsdjango/test/testcases.py:13999 ms3.9%
Atomic.__enter__django/db/transaction.py:2109 ms3.9%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4549 ms3.9%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3049 ms3.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms3.9%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2799 ms3.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms3.9%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2569 ms3.9%
DatabaseWrapper.get_new_connectionfedidevs/db/postgresql/base.py:39 return super().get_new_connection(conn_params)9 ms3.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms3.9%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3459 ms3.9%
Connection.connectpsycopg/connection.py:1098 ms3.4%
wait_connpsycopg/waiting.py:1454 ms1.9%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms1.9%
wait_connpsycopg/waiting.py:1413 ms1.5%
EpollSelector.select<stdlib>/selectors.py:4523 ms1.5%
1 smaller frames hidden
call214 ms95.5%
TestStaticPages.test_developers_on_mastodonaccounts/tests.py:536 response = self.client.get("/developers-on-mastodon/")213 ms95.0%
Client.getdjango/test/client.py:1133213 ms95.0%
RequestFactory.getdjango/test/client.py:475213 ms95.0%
RequestFactory.genericdjango/test/client.py:671213 ms95.0%
Client.requestdjango/test/client.py:1091213 ms95.0%
ClientHandler.__call__django/test/client.py:173194 ms86.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:63194 ms86.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:104194 ms86.6%
WhiteNoise.add_fileswhitenoise/base.py:108194 ms86.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:120187 ms83.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:131187 ms83.2%
WhiteNoise.get_static_filewhitenoise/base.py:217187 ms83.2%
StaticFile.__init__whitenoise/responders.py:77186 ms82.7%
StaticFile.get_alternativeswhitenoise/responders.py:203186 ms82.7%
Headers.__setitem__<stdlib>/wsgiref/headers.py:60186 ms82.7%
<GC>~186 ms82.7%
1 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:1158 ms3.4%
scantreewhitenoise/base.py:2718 ms3.4%
scantreewhitenoise/base.py:2718 ms3.4%
scantreewhitenoise/base.py:2717 ms3.0%
scantreewhitenoise/base.py:2717 ms3.0%
scantreewhitenoise/base.py:2717 ms3.0%
scantreewhitenoise/base.py:2737 ms3.0%
<GC>~6 ms2.5%
1 smaller frames hidden
ClientHandler.__call__django/test/client.py:18619 ms8.4%
BaseHandler.get_responsedjango/core/handlers/base.py:14219 ms8.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms8.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms8.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms8.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms8.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms8.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms8.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms8.4%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12319 ms8.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms8.4%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14519 ms8.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms8.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms8.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms8.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms8.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms8.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms8.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms8.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms8.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms8.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms8.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms8.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms8.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms8.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms8.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms8.4%
BaseHandler._get_responsedjango/core/handlers/base.py:19919 ms8.4%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:18919 ms8.4%
devs_on_mastodonaccounts/views.py:525 return render(19 ms8.4%
renderdjango/shortcuts.py:2719 ms8.4%
render_to_stringdjango/template/loader.py:6219 ms8.4%
Template.renderdjango/template/backends/django.py:10719 ms8.4%
Template.renderdjango/template/base.py:17519 ms8.4%
instrumented_test_renderdjango/test/utils.py:11319 ms8.4%
NodeList.renderdjango/template/base.py:110819 ms8.4%
Node.render_annotateddjango/template/base.py:106919 ms8.4%
ExtendsNode.renderdjango/template/loader_tags.py:16019 ms8.4%
instrumented_test_renderdjango/test/utils.py:11319 ms8.4%
NodeList.renderdjango/template/base.py:110819 ms8.4%
Node.render_annotateddjango/template/base.py:106918 ms7.9%
BlockNode.renderdjango/template/loader_tags.py:6612 ms5.4%
NodeList.renderdjango/template/base.py:110812 ms5.4%
Node.render_annotateddjango/template/base.py:106912 ms5.4%
IncludeNode.renderdjango/template/loader_tags.py:21112 ms5.4%
Template.renderdjango/template/base.py:17712 ms5.4%
instrumented_test_renderdjango/test/utils.py:11312 ms5.4%
NodeList.renderdjango/template/base.py:110812 ms5.4%
Node.render_annotateddjango/template/base.py:106912 ms5.4%
ForNode.renderdjango/template/defaulttags.py:20212 ms5.4%
QuerySet.__len__django/db/models/query.py:42112 ms5.4%
QuerySet._fetch_alldjango/db/models/query.py:226212 ms5.4%
ValuesIterable.__iter__django/db/models/query.py:24712 ms5.4%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:157412 ms5.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162512 ms5.4%
CursorWrapper.executedjango/db/backends/utils.py:7912 ms5.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9212 ms5.4%
CursorWrapper._executedjango/db/backends/utils.py:10512 ms5.4%
Cursor.executepsycopg/cursor.py:11312 ms5.4%
Connection.waitpsycopg/connection.py:49512 ms5.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:20612 ms5.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28612 ms5.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7812 ms5.4%
IfNode.renderdjango/template/defaulttags.py:3332 ms1.0%
NodeList.renderdjango/template/base.py:11082 ms1.0%
Node.render_annotateddjango/template/base.py:10692 ms1.0%
3 smaller frames hidden
1 smaller frames hidden
Estimated from 203 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

accounts/tests.py:536
response = self.client.get("/developers-on-mastodon/")
TestStaticPages.test_developers_on_mastodon · Libraries
194 ms
accounts/views.py:525
return render(
devs_on_mastodon · Database
18 ms
fedidevs/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection · Database
9 ms
accounts/templatetags/account_extras.py:36
for instance in instances:
instances_datalist · Database
1 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestStaticPages class 8 ms
_django_setup_unittest class 0.27 ms
_django_db_marker function 0.04 ms
_template_string_if_invalid_marker function 0.04 ms
_dj_autoclear_mailbox function 0.03 ms
_django_isolate_apps 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

8 queries · 9 ms
No repeated queries.

Biggest pieces of work

call test body
accounts/tests.py:536
213 ms
setup setUpClass
django/test/testcases.py:1426
9 ms
call _post_teardown
django/test/testcases.py:1243
1 ms
setup __init__
__init__:-1
1 ms

Reliability

14 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 14 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 224 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 285 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 320 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 290 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 305 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 344 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 541 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 320 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 287 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 272 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 749 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 688 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 490 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 131 ms 0c23747 main Run