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

TestStaticPages::test_developers_on_mastodon

First seen 2 years, 1 month ago in 11beb36
CI github-actions:test 4 runs
Average
550 ms
median 589 ms
max 749 ms
Phases
Setup 19 ms Call 529 ms Teardown 1 ms
Categories
Database 35 ms Other (Libraries, Templates, Cache, pytest, ...) 515 ms

8 database queries per run

Needs 22 KB of memory (max 64 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
setup17 ms6.4%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()14 ms5.0%
TestCase._enter_atomicsdjango/test/testcases.py:139914 ms5.0%
Atomic.__enter__django/db/transaction.py:21014 ms5.0%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45414 ms5.0%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30414 ms5.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2614 ms5.0%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27914 ms5.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2614 ms5.0%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25614 ms5.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2614 ms5.0%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34514 ms5.0%
Connection.connectpsycopg/connection.py:10914 ms5.0%
wait_connpsycopg/waiting.py:1419 ms3.4%
EpollSelector.select<stdlib>/selectors.py:4529 ms3.4%
wait_connpsycopg/waiting.py:1454 ms1.3%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms1.3%
1 smaller frames hidden
TestCase.setUpClassdjango/test/testcases.py:1420 super().setUpClass()4 ms1.3%
TransactionTestCase.setUpClassdjango/test/testcases.py:11334 ms1.3%
SimpleTestCase.setUpClassdjango/test/testcases.py:2204 ms1.3%
SimpleTestCase._add_databases_failuresdjango/test/testcases.py:2634 ms1.3%
_patch_object<stdlib>/unittest/mock.py:17164 ms1.3%
call255 ms93.5%
TestStaticPages.test_developers_on_mastodonaccounts/tests.py:536 response = self.client.get("/developers-on-mastodon/")254 ms93.1%
Client.getdjango/test/client.py:1133254 ms93.1%
RequestFactory.getdjango/test/client.py:475254 ms93.1%
RequestFactory.genericdjango/test/client.py:671254 ms93.1%
Client.requestdjango/test/client.py:1091254 ms93.1%
ClientHandler.__call__django/test/client.py:173240 ms88.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:63240 ms88.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:104239 ms87.8%
WhiteNoise.add_fileswhitenoise/base.py:108239 ms87.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:120232 ms85.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:131231 ms84.9%
WhiteNoise.get_static_filewhitenoise/base.py:217229 ms84.1%
StaticFile.__init__whitenoise/responders.py:72226 ms82.9%
StaticFile.get_file_statswhitenoise/responders.py:161226 ms82.9%
__init____init__:-1225 ms82.4%
FileEntry.__init__whitenoise/responders.py:260225 ms82.4%
<GC>~225 ms82.4%
StaticFile.__init__whitenoise/responders.py:732 ms0.8%
StaticFile.get_headerswhitenoise/responders.py:1672 ms0.8%
1 smaller frames hidden
WhiteNoise.get_static_filewhitenoise/base.py:2122 ms0.8%
WhiteNoise.add_cache_headerswhitenoise/base.py:2332 ms0.8%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms0.8%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms0.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1157 ms2.5%
scantreewhitenoise/base.py:2717 ms2.5%
scantreewhitenoise/base.py:2716 ms2.1%
scantreewhitenoise/base.py:2714 ms1.6%
scantreewhitenoise/base.py:2714 ms1.6%
scantreewhitenoise/base.py:2714 ms1.6%
scantreewhitenoise/base.py:2734 ms1.6%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
ClientHandler.__call__django/test/client.py:18613 ms4.9%
BaseHandler.get_responsedjango/core/handlers/base.py:14213 ms4.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms4.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38013 ms4.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms4.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38013 ms4.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms4.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38013 ms4.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms4.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12313 ms4.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms4.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14513 ms4.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms4.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38013 ms4.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms4.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38013 ms4.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms4.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38013 ms4.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms4.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38013 ms4.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms4.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38013 ms4.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms4.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38013 ms4.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms4.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38013 ms4.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms4.9%
BaseHandler._get_responsedjango/core/handlers/base.py:19913 ms4.9%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:18913 ms4.9%
devs_on_mastodonaccounts/views.py:519 by_python_devs = [i for i in by_language_devs if i["accountlookup__language"] == "python"][:10]9 ms3.3%
QuerySet.__iter__django/db/models/query.py:4399 ms3.3%
QuerySet._fetch_alldjango/db/models/query.py:22629 ms3.3%
ValuesIterable.__iter__django/db/models/query.py:2479 ms3.3%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15749 ms3.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16258 ms2.9%
CursorWrapper.executedjango/db/backends/utils.py:798 ms2.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:928 ms2.9%
CursorWrapper._executedjango/db/backends/utils.py:1058 ms2.9%
Cursor.executepsycopg/cursor.py:1138 ms2.9%
Connection.waitpsycopg/connection.py:4958 ms2.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms0.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms0.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms0.8%
1 smaller frames hidden
devs_on_mastodonaccounts/views.py:525 return render(4 ms1.6%
renderdjango/shortcuts.py:274 ms1.6%
render_to_stringdjango/template/loader.py:623 ms1.2%
Template.renderdjango/template/backends/django.py:1073 ms1.2%
Template.renderdjango/template/base.py:1753 ms1.2%
instrumented_test_renderdjango/test/utils.py:1133 ms1.2%
NodeList.renderdjango/template/base.py:11083 ms1.2%
Node.render_annotateddjango/template/base.py:10693 ms1.2%
ExtendsNode.renderdjango/template/loader_tags.py:1603 ms1.2%
instrumented_test_renderdjango/test/utils.py:1133 ms1.2%
NodeList.renderdjango/template/base.py:11083 ms1.2%
Node.render_annotateddjango/template/base.py:10693 ms1.2%
1 smaller frames hidden
1 smaller frames hidden
Estimated from 247 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
240 ms
accounts/views.py:519
by_python_devs = [i for i in by_language_devs if i["accountlookup__language"] == "python"][:10]
devs_on_mastodon · Database
9 ms
accounts/views.py:525
return render(
devs_on_mastodon · Templates
3 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 16 ms
_django_setup_unittest class 0.47 ms
_django_db_marker function 0.08 ms
_template_string_if_invalid_marker function 0.05 ms
_dj_autoclear_mailbox function 0.04 ms
_django_isolate_apps function 0.04 ms
_live_server_helper function 0.03 ms
_django_set_urlconf function 0.03 ms
_django_clear_site_cache function 0.03 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
254 ms
setup setUpClass
django/test/testcases.py:1426
17 ms
call _post_teardown
django/test/testcases.py:1243
1 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
7 hours ago CI github-actions:test passed 272 ms d923a46 main Profile
7 hours ago CI github-actions:test passed 749 ms 82997f8 main Profile
7 hours ago CI github-actions:test passed 688 ms 623aa3e main Profile
12 hours ago CI github-actions:test passed 490 ms ab6465a main Profile
12 hours ago CI github-actions:test passed 131 ms 0c23747 main Run
3 months, 3 weeks ago CI github-actions passed 56 ms 69d78ea HEAD Run
3 months, 3 weeks ago CI github-actions passed 78 ms 8fac7b5 main Run
3 months, 3 weeks ago CI github-actions passed 77 ms 36b9579 main Run
3 months, 3 weeks ago CI github-actions passed 90 ms 553d048 main Run
3 months, 3 weeks ago CI github-actions passed 84 ms 8eb0f44 HEAD Run
3 months, 3 weeks ago CI github-actions passed 90 ms e0fb3ac HEAD Run
3 months, 3 weeks ago CI github-actions passed 76 ms a849b58 HEAD Run
3 months, 3 weeks ago CI github-actions passed 86 ms 6418e05 HEAD Run
3 months, 3 weeks ago CI github-actions passed 92 ms 5b9b309 main Run
3 months, 4 weeks ago CI github-actions passed 90 ms 1f2c5a6 main Run
3 months, 4 weeks ago CI github-actions passed 90 ms 5ec7fa8 main Run
3 months, 4 weeks ago CI github-actions passed 92 ms 1e42064 main Run
3 months, 4 weeks ago CI github-actions passed 85 ms fcb1b79 main Run
3 months, 4 weeks ago CI github-actions passed 96 ms 1460ac2 HEAD Run
3 months, 4 weeks ago CI github-actions passed 96 ms 8129f09 HEAD Run