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

TestMigratedLegacyConferences::test_djangoconafrica_page

First seen 12 hours ago in 0c23747
CI github-actions:test 4 runs
Average
434 ms
median 399 ms
max 637 ms
Phases
Setup 2 ms Call 432 ms Teardown 0.29 ms
Categories
Database 24 ms Other (Libraries, Templates, Imports, Unsampled, ...) 410 ms

11 database queries per run

Needs 164 KB of memory (max 176 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
setup2 ms0.6%
call323 ms99.3%
TestMigratedLegacyConferences.test_djangoconafrica_pageconfs/tests.py:172 response = self._assert_no_naive_warning(reverse("djangoconafrica"))321 ms98.6%
TestMigratedLegacyConferences._assert_no_naive_warningconfs/tests.py:152 response = self.client.get(url)318 ms97.6%
Client.getdjango/test/client.py:1133318 ms97.6%
RequestFactory.getdjango/test/client.py:475318 ms97.6%
RequestFactory.genericdjango/test/client.py:671318 ms97.6%
Client.requestdjango/test/client.py:1091318 ms97.6%
ClientHandler.__call__django/test/client.py:173291 ms89.4%
BaseHandler.load_middlewaredjango/core/handlers/base.py:63291 ms89.4%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:104290 ms89.1%
WhiteNoise.add_fileswhitenoise/base.py:108290 ms89.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:120281 ms86.4%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:131280 ms86.0%
WhiteNoise.get_static_filewhitenoise/base.py:217272 ms83.6%
StaticFile.__init__whitenoise/responders.py:72260 ms79.9%
StaticFile.get_file_statswhitenoise/responders.py:163252 ms77.5%
<GC>~252 ms77.5%
StaticFile.get_file_statswhitenoise/responders.py:1618 ms2.4%
__init____init__:-18 ms2.4%
FileEntry.__init__whitenoise/responders.py:2638 ms2.4%
FileEntry.stat_regular_filewhitenoise/responders.py:2768 ms2.4%
<GC>~7 ms2.0%
StaticFile.__init__whitenoise/responders.py:738 ms2.4%
StaticFile.get_headerswhitenoise/responders.py:1763 ms1.0%
formatdate<stdlib>/email/utils.py:2663 ms1.0%
format_datetime<stdlib>/email/utils.py:2752 ms0.7%
1 smaller frames hidden
4 smaller frames hidden
StaticFile.__init__whitenoise/responders.py:773 ms1.0%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms0.7%
__init____init__:-12 ms0.7%
Headers.__init__<stdlib>/wsgiref/headers.py:432 ms0.7%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:502 ms0.7%
1 smaller frames hidden
1 smaller frames hidden
WhiteNoise.get_static_filewhitenoise/base.py:2128 ms2.4%
WhiteNoise.add_cache_headerswhitenoise/base.py:2337 ms2.0%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1764 ms1.4%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1974 ms1.4%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms1.0%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2353 ms1.0%
1 smaller frames hidden
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1732 ms0.7%
WhiteNoiseMiddleware.get_name_without_hashwhitenoise/middleware.py:1922 ms0.7%
1 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:1159 ms2.7%
scantreewhitenoise/base.py:2717 ms2.0%
scantreewhitenoise/base.py:2714 ms1.4%
scantreewhitenoise/base.py:2713 ms1.0%
scantreewhitenoise/base.py:2713 ms1.0%
scantreewhitenoise/base.py:2712 ms0.7%
scantreewhitenoise/base.py:2732 ms0.7%
1 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
ClientHandler.__call__django/test/client.py:18627 ms8.2%
BaseHandler.get_responsedjango/core/handlers/base.py:14227 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms8.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38027 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms8.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38027 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms8.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38027 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms8.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12327 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms8.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14527 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms8.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38027 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms8.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38027 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms8.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38027 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms8.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38027 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms8.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38027 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms8.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38027 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms8.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38027 ms8.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms8.2%
BaseHandler._get_responsedjango/core/handlers/base.py:19927 ms8.2%
conferenceconfs/views.py:169 return _conference_detail_cached(request, conference_slug)27 ms8.2%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:18926 ms7.9%
_conference_detailconfs/views.py:173 conference = get_object_or_404(Conference, slug=conference_slug)6 ms1.7%
get_object_or_404django/shortcuts.py:1006 ms1.7%
QuerySet.getdjango/db/models/query.py:7026 ms1.7%
QuerySet.__len__django/db/models/query.py:4216 ms1.7%
QuerySet._fetch_alldjango/db/models/query.py:22626 ms1.7%
ModelIterable.__iter__django/db/models/query.py:1034 ms1.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16254 ms1.4%
CursorWrapper.executedjango/db/backends/utils.py:794 ms1.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms1.4%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms1.4%
Cursor.executepsycopg/cursor.py:1134 ms1.4%
Connection.waitpsycopg/connection.py:4954 ms1.4%
1 smaller frames hidden
_conference_detailconfs/views.py:268 page_obj = paginator.get_page(page_number)6 ms1.7%
Paginator.get_pagedjango/core/paginator.py:1616 ms1.7%
Paginator.validate_numberdjango/core/paginator.py:1536 ms1.7%
cached_property.__get__django/utils/functional.py:476 ms1.7%
Paginator.num_pagesdjango/core/paginator.py:1886 ms1.7%
cached_property.__get__django/utils/functional.py:476 ms1.7%
Paginator.countdjango/core/paginator.py:1826 ms1.7%
QuerySet.countdjango/db/models/query.py:6776 ms1.7%
Query.get_countdjango/db/models/sql/query.py:6576 ms1.7%
Query.get_aggregationdjango/db/models/sql/query.py:6396 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16256 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:796 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:926 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1056 ms1.7%
Cursor.executepsycopg/cursor.py:1136 ms1.7%
Connection.waitpsycopg/connection.py:4956 ms1.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms1.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms1.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms1.0%
_conference_detailconfs/views.py:296 return render(4 ms1.4%
renderdjango/shortcuts.py:274 ms1.4%
render_to_stringdjango/template/loader.py:623 ms1.0%
Template.renderdjango/template/backends/django.py:1073 ms1.0%
Template.renderdjango/template/base.py:1753 ms1.0%
instrumented_test_renderdjango/test/utils.py:1133 ms1.0%
NodeList.renderdjango/template/base.py:11083 ms1.0%
Node.render_annotateddjango/template/base.py:10693 ms1.0%
ExtendsNode.renderdjango/template/loader_tags.py:1603 ms1.0%
instrumented_test_renderdjango/test/utils.py:1133 ms1.0%
NodeList.renderdjango/template/base.py:11083 ms1.0%
Node.render_annotateddjango/template/base.py:10693 ms1.0%
1 smaller frames hidden
_conference_detailconfs/views.py:2763 ms1.0%
_conference_detail.<locals>.<genexpr>confs/views.py:276 current_account = next((account for account in account_counts if account.account.id == account_id), None)3 ms1.0%
QuerySet.__iter__django/db/models/query.py:4393 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:22623 ms1.0%
ModelIterable.__iter__django/db/models/query.py:1033 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms0.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms0.7%
1 smaller frames hidden
_conference_detailconfs/views.py:204 .count()3 ms1.0%
QuerySet.countdjango/db/models/query.py:6773 ms1.0%
Query.get_countdjango/db/models/sql/query.py:6572 ms0.7%
Query.get_aggregationdjango/db/models/sql/query.py:6392 ms0.7%
_conference_detailconfs/views.py:226 counts_dict = {c["created_at_date"].date(): c["count"] for c in counts}2 ms0.7%
QuerySet.__iter__django/db/models/query.py:4392 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms0.7%
ValuesIterable.__iter__django/db/models/query.py:2472 ms0.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15742 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms0.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms0.7%
1 smaller frames hidden
1 smaller frames hidden
reversedjango/urls/base.py:983 ms1.0%
URLResolver._reverse_with_prefixdjango/urls/resolvers.py:8033 ms1.0%
search<stdlib>/re/__init__.py:1793 ms1.0%
_compile<stdlib>/re/__init__.py:3523 ms1.0%
compile<stdlib>/re/_compiler.py:7623 ms1.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:632 ms0.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1042 ms0.7%
WhiteNoise.add_fileswhitenoise/base.py:1082 ms0.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms0.7%
scantreewhitenoise/base.py:2712 ms0.7%
scantreewhitenoise/base.py:2692 ms0.7%
1 smaller frames hidden
2 smaller frames hidden
teardown0.22 ms0.1%
Estimated from 293 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

confs/tests.py:152
response = self.client.get(url)
TestMigratedLegacyConferences._assert_no_naive_warning · Libraries
291 ms
confs/views.py:173
conference = get_object_or_404(Conference, slug=conference_slug)
_conference_detail · Database
6 ms
confs/views.py:268
page_obj = paginator.get_page(page_number)
_conference_detail · Database
6 ms
confs/views.py:296
return render(
_conference_detail · Templates
4 ms
confs/tests.py:172
response = self._assert_no_naive_warning(reverse("djangoconafrica"))
TestMigratedLegacyConferences.test_djangoconafrica_page · Libraries
3 ms
confs/views.py:276
current_account = next((account for account in account_counts if account.account.id == account_id), None)
_conference_detail.<locals>.<genexpr> · Database
3 ms
confs/views.py:204
.count()
_conference_detail · Database
3 ms
confs/views.py:226
counts_dict = {c["created_at_date"].date(): c["count"] for c in counts}
_conference_detail · Database
2 ms
confs/views.py:169
return _conference_detail_cached(request, conference_slug)
conference · Imports
1 ms
confs/views.py:254
.filter(search_query & Q(post__account__instance_model__deleted_at__isnull=True))
_conference_detail · Database
1 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.07 ms
_template_string_if_invalid_marker function 0.04 ms
_django_db_marker function 0.04 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.03 ms
monkeypatch function 0.02 ms

Database

11 queries · 19 ms
No repeated queries.

Biggest pieces of work

call test body
confs/tests.py:172
321 ms
call _pre_setup
django/test/testcases.py:1167
2 ms
setup pytest internals 2 ms
teardown pytest internals 0.22 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 5 results, oldest first in the strip
When Environment Outcome Duration Commit
7 hours ago CI github-actions:test passed 325 ms d923a46 main Profile
7 hours ago CI github-actions:test passed 300 ms 82997f8 main Profile
7 hours ago CI github-actions:test passed 637 ms 623aa3e main Profile
12 hours ago CI github-actions:test passed 473 ms ab6465a main Profile
12 hours ago CI github-actions:test passed 290 ms 0c23747 main Run