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

TestAccountIndexRobots::test_canonical_page_is_indexable

First seen 1 month, 1 week ago in 0c23747
CI github-actions:test 13 runs
Average
164 ms
median 135 ms
max 338 ms
Phases
Setup 17 ms Call 147 ms Teardown 0.40 ms
Categories
Database 58 ms App code 0.92 ms Other (Libraries, Templates, pytest, Unsampled, ...) 106 ms

8 database queries per run

Needs 0 KB of memory (max 0 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
setup11 ms11.9%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()11 ms11.9%
TestCase._enter_atomicsdjango/test/testcases.py:139911 ms11.9%
Atomic.__enter__django/db/transaction.py:21011 ms11.9%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45411 ms11.9%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30411 ms11.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms11.9%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27911 ms11.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms11.9%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25611 ms11.9%
DatabaseWrapper.get_new_connectionfedidevs/db/postgresql/base.py:39 return super().get_new_connection(conn_params)11 ms11.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms11.9%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34511 ms11.9%
Connection.connectpsycopg/connection.py:10911 ms11.9%
wait_connpsycopg/waiting.py:1456 ms6.6%
BaseConnection._connect_genpsycopg/_connection_base.py:4396 ms6.6%
wait_connpsycopg/waiting.py:1414 ms4.0%
EpollSelector.select<stdlib>/selectors.py:4524 ms4.0%
wait_connpsycopg/waiting.py:1361 ms1.3%
BaseConnection._connect_genpsycopg/_connection_base.py:4391 ms1.3%
call78 ms87.9%
TestAccountIndexRobots.test_canonical_page_is_indexableaccounts/tests.py:560 self.assert_indexable("/python/")78 ms87.9%
TestAccountIndexRobots.assert_indexableaccounts/tests.py:555 response = self.client.get(url)78 ms87.9%
Client.getdjango/test/client.py:113378 ms87.9%
RequestFactory.getdjango/test/client.py:47578 ms87.9%
RequestFactory.genericdjango/test/client.py:67178 ms87.9%
Client.requestdjango/test/client.py:109178 ms87.9%
ClientHandler.__call__django/test/client.py:18649 ms54.9%
BaseHandler.get_responsedjango/core/handlers/base.py:14249 ms54.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5649 ms54.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38049 ms54.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5649 ms54.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38049 ms54.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5649 ms54.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38049 ms54.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5649 ms54.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12349 ms54.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5649 ms54.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14549 ms54.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5649 ms54.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38049 ms54.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5649 ms54.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38049 ms54.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5649 ms54.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38049 ms54.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5649 ms54.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38049 ms54.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5649 ms54.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38049 ms54.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5649 ms54.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38049 ms54.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5649 ms54.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38049 ms54.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5649 ms54.9%
BaseHandler._get_responsedjango/core/handlers/base.py:19949 ms54.9%
indexaccounts/views.py:295 language_counts = Daily.objects.order_by("date").last()25 ms28.6%
QuerySet.lastdjango/db/models/query.py:122525 ms28.6%
QuerySet.__iter__django/db/models/query.py:43925 ms28.6%
QuerySet._fetch_alldjango/db/models/query.py:226225 ms28.6%
ModelIterable.__iter__django/db/models/query.py:10323 ms26.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162523 ms26.4%
CursorWrapper.executedjango/db/backends/utils.py:7923 ms26.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9223 ms26.4%
CursorWrapper._executedjango/db/backends/utils.py:10519 ms22.0%
Cursor.executepsycopg/cursor.py:11319 ms22.0%
Connection.waitpsycopg/connection.py:49519 ms22.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:20619 ms22.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28619 ms22.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7819 ms22.0%
ModelIterable.__iter__django/db/models/query.py:1152 ms2.2%
indexaccounts/views.py:41214 ms15.4%
CountlessPaginator.get_pageaccounts/views.py:8414 ms15.4%
CountlessPaginator.pageaccounts/views.py:9014 ms15.4%
CountlessPage.__init__accounts/views.py:28 self.object_list = list(self.object_list)14 ms15.4%
QuerySet.__iter__django/db/models/query.py:43914 ms15.4%
QuerySet._fetch_alldjango/db/models/query.py:226214 ms15.4%
ModelIterable.__iter__django/db/models/query.py:10314 ms15.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162514 ms15.4%
CursorWrapper.executedjango/db/backends/utils.py:7914 ms15.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9214 ms15.4%
CursorWrapper._executedjango/db/backends/utils.py:10514 ms15.4%
Cursor.executepsycopg/cursor.py:11314 ms15.4%
Connection.waitpsycopg/connection.py:49514 ms15.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2066 ms6.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2866 ms6.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:786 ms6.6%
indexaccounts/views.py:375 .filter(search_query)6 ms6.6%
QuerySet.filterdjango/db/models/query.py:16766 ms6.6%
QuerySet._filter_or_excludedjango/db/models/query.py:16944 ms4.4%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17044 ms4.4%
Query.add_qdjango/db/models/sql/query.py:16814 ms4.4%
Query._add_qdjango/db/models/sql/query.py:17134 ms4.4%
Query.build_filterdjango/db/models/sql/query.py:15284 ms4.4%
Query._add_qdjango/db/models/sql/query.py:17134 ms4.4%
Query.build_filterdjango/db/models/sql/query.py:15772 ms2.2%
Query.build_filterdjango/db/models/sql/query.py:15512 ms2.2%
Query.solve_lookup_typedjango/db/models/sql/query.py:13582 ms2.2%
Query.names_to_pathdjango/db/models/sql/query.py:18882 ms2.2%
QuerySet._filter_or_excludedjango/db/models/query.py:16892 ms2.2%
QuerySet._chaindjango/db/models/query.py:22342 ms2.2%
QuerySet._clonedjango/db/models/query.py:22472 ms2.2%
Query.chaindjango/db/models/sql/query.py:4382 ms2.2%
Query.clonedjango/db/models/sql/query.py:4242 ms2.2%
indexaccounts/views.py:343 search_query &= Q(accountlookup__language__icontains=selected_lang.code + "\n")2 ms2.2%
indexaccounts/views.py:397 accounts = accounts.order_by(sort_order)2 ms2.2%
QuerySet.order_bydjango/db/models/query.py:19132 ms2.2%
QuerySet._chaindjango/db/models/query.py:22342 ms2.2%
ClientHandler.__call__django/test/client.py:17329 ms33.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6327 ms30.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10423 ms26.4%
WhiteNoise.add_fileswhitenoise/base.py:10823 ms26.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12018 ms19.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13118 ms19.8%
WhiteNoise.get_static_filewhitenoise/base.py:21716 ms17.6%
StaticFile.__init__whitenoise/responders.py:7410 ms11.0%
StaticFile.__init__whitenoise/responders.py:764 ms4.4%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms2.2%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms2.2%
StaticFile.__init__whitenoise/responders.py:732 ms2.2%
StaticFile.get_headerswhitenoise/responders.py:1752 ms2.2%
WhiteNoise.get_static_filewhitenoise/base.py:2122 ms2.2%
WhiteNoise.add_cache_headerswhitenoise/base.py:2332 ms2.2%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms2.2%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms2.2%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms2.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1156 ms6.6%
scantreewhitenoise/base.py:2716 ms6.6%
scantreewhitenoise/base.py:2714 ms4.4%
scantreewhitenoise/base.py:2714 ms4.4%
scantreewhitenoise/base.py:2714 ms4.4%
scantreewhitenoise/base.py:2692 ms2.2%
scantreewhitenoise/base.py:2712 ms2.2%
scantreewhitenoise/base.py:2692 ms2.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:754 ms4.4%
WhiteNoise.__init__whitenoise/base.py:682 ms2.2%
WhiteNoise.add_fileswhitenoise/base.py:1082 ms2.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms2.2%
scantreewhitenoise/base.py:2712 ms2.2%
scantreewhitenoise/base.py:2732 ms2.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:392 ms2.2%
convert_exception_to_responsedjango/core/handlers/exception.py:532 ms2.2%
Estimated from 49 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

accounts/tests.py:555
response = self.client.get(url)
TestAccountIndexRobots.assert_indexable · Libraries
29 ms
accounts/views.py:295
language_counts = Daily.objects.order_by("date").last()
index · Database
25 ms
accounts/views.py:28
self.object_list = list(self.object_list)
CountlessPage.__init__ · Database
14 ms
fedidevs/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection · Database
11 ms
accounts/views.py:375
.filter(search_query)
index · Database
6 ms
accounts/views.py:343
search_query &= Q(accountlookup__language__icontains=selected_lang.code + "\n")
index · App code
2 ms
accounts/views.py:397
accounts = accounts.order_by(sort_order)
index · Database
2 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestAccountIndexRobots class 9 ms
_django_setup_unittest class 0.23 ms
_dj_autoclear_mailbox function 0.05 ms
_template_string_if_invalid_marker function 0.04 ms
_django_db_marker function 0.04 ms
_live_server_helper function 0.03 ms
_django_isolate_apps 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 · 13 ms
No repeated queries.

Biggest pieces of work

call test body
accounts/tests.py:560
78 ms
setup setUpClass
django/test/testcases.py:1426
11 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 89 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 141 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 132 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 79 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 257 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 157 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 119 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 163 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 127 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 97 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 135 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 338 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 303 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 114 ms 0c23747 main Run