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

TestShareStarterPack::test_languages_hidden_when_unset

First seen 3 weeks ago in 0c23747
CI github-actions:test 11 runs
Average
191 ms
median 142 ms
max 452 ms
Phases
Setup 1 ms Call 190 ms Teardown 0.34 ms
Categories
Database 32 ms App code 0.32 ms Other (Libraries, Templates, Unsampled, pytest) 159 ms

12 database queries per run

Needs 415 KB of memory (max 1 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
call335 ms99.5%
TestShareStarterPack.test_languages_hidden_when_unsetstarter_packs/tests.py:704 response = self.client.get(reverse("share_starter_pack", args=[self.starter_pack.slug]))327 ms97.3%
Client.getdjango/test/client.py:1133327 ms97.3%
RequestFactory.getdjango/test/client.py:475327 ms97.3%
RequestFactory.genericdjango/test/client.py:671327 ms97.3%
Client.requestdjango/test/client.py:1091327 ms97.3%
ClientHandler.__call__django/test/client.py:186320 ms95.0%
BaseHandler.get_responsedjango/core/handlers/base.py:142320 ms95.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56320 ms95.0%
MiddlewareMixin.__call__django/utils/deprecation.py:380320 ms95.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56320 ms95.0%
MiddlewareMixin.__call__django/utils/deprecation.py:380320 ms95.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56320 ms95.0%
MiddlewareMixin.__call__django/utils/deprecation.py:380320 ms95.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56320 ms95.0%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:123320 ms95.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56320 ms95.0%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:145320 ms95.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56320 ms95.0%
MiddlewareMixin.__call__django/utils/deprecation.py:380320 ms95.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56320 ms95.0%
MiddlewareMixin.__call__django/utils/deprecation.py:380320 ms95.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56320 ms95.0%
MiddlewareMixin.__call__django/utils/deprecation.py:380320 ms95.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56320 ms95.0%
MiddlewareMixin.__call__django/utils/deprecation.py:380320 ms95.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56320 ms95.0%
MiddlewareMixin.__call__django/utils/deprecation.py:380320 ms95.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56320 ms95.0%
MiddlewareMixin.__call__django/utils/deprecation.py:380320 ms95.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56320 ms95.0%
MiddlewareMixin.__call__django/utils/deprecation.py:380320 ms95.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56320 ms95.0%
BaseHandler._get_responsedjango/core/handlers/base.py:199320 ms95.0%
share_starter_packstarter_packs/views.py:862 return render(319 ms94.6%
renderdjango/shortcuts.py:27319 ms94.6%
render_to_stringdjango/template/loader.py:62319 ms94.6%
Template.renderdjango/template/backends/django.py:107319 ms94.6%
Template.renderdjango/template/base.py:175319 ms94.6%
instrumented_test_renderdjango/test/utils.py:113319 ms94.6%
NodeList.renderdjango/template/base.py:1108319 ms94.6%
Node.render_annotateddjango/template/base.py:1069319 ms94.6%
ExtendsNode.renderdjango/template/loader_tags.py:160319 ms94.6%
instrumented_test_renderdjango/test/utils.py:113319 ms94.6%
NodeList.renderdjango/template/base.py:1108319 ms94.6%
Node.render_annotateddjango/template/base.py:1069319 ms94.6%
BlockNode.renderdjango/template/loader_tags.py:66316 ms93.9%
NodeList.renderdjango/template/base.py:1108316 ms93.9%
Node.render_annotateddjango/template/base.py:1069316 ms93.9%
IncludeNode.renderdjango/template/loader_tags.py:211286 ms84.8%
Template.renderdjango/template/base.py:177286 ms84.8%
instrumented_test_renderdjango/test/utils.py:113286 ms84.8%
NodeList.renderdjango/template/base.py:1108286 ms84.8%
Node.render_annotateddjango/template/base.py:1069286 ms84.8%
ForNode.renderdjango/template/defaulttags.py:249286 ms84.8%
Node.render_annotateddjango/template/base.py:1069286 ms84.8%
IncludeNode.renderdjango/template/loader_tags.py:211286 ms84.8%
Template.renderdjango/template/base.py:177286 ms84.8%
instrumented_test_renderdjango/test/utils.py:113286 ms84.8%
NodeList.renderdjango/template/base.py:1108286 ms84.8%
Node.render_annotateddjango/template/base.py:1069286 ms84.8%
IfNode.renderdjango/template/defaulttags.py:326278 ms82.6%
infix.<locals>.Operator.evaldjango/template/smartif.py:61278 ms82.6%
<lambda>django/template/smartif.py:106278 ms82.6%
TemplateLiteral.evaldjango/template/defaulttags.py:917250 ms74.3%
<GC>~250 ms74.3%
TemplateLiteral.evaldjango/template/defaulttags.py:91828 ms8.3%
FilterExpression.resolvedjango/template/base.py:80628 ms8.3%
Variable.resolvedjango/template/base.py:94528 ms8.3%
Variable._resolve_lookupdjango/template/base.py:99927 ms7.9%
1 smaller frames hidden
VariableNode.renderdjango/template/base.py:11673 ms0.8%
FilterExpression.resolvedjango/template/base.py:8063 ms0.8%
Variable.resolvedjango/template/base.py:9453 ms0.8%
Variable._resolve_lookupdjango/template/base.py:9963 ms0.8%
4 smaller frames hidden
IfNode.renderdjango/template/defaulttags.py:33228 ms8.3%
Page.__len__django/core/paginator.py:31228 ms8.3%
QuerySet.__len__django/db/models/query.py:42128 ms8.3%
QuerySet._fetch_alldjango/db/models/query.py:226228 ms8.3%
ModelIterable.__iter__django/db/models/query.py:10328 ms8.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162528 ms8.3%
CursorWrapper.executedjango/db/backends/utils.py:7928 ms8.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9228 ms8.3%
CursorWrapper._executedjango/db/backends/utils.py:10528 ms8.3%
Cursor.executepsycopg/cursor.py:11328 ms8.3%
Connection.waitpsycopg/connection.py:49528 ms8.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:20628 ms8.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28628 ms8.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7828 ms8.3%
IfNode.renderdjango/template/defaulttags.py:3333 ms0.8%
NodeList.renderdjango/template/base.py:11083 ms0.8%
Node.render_annotateddjango/template/base.py:10693 ms0.8%
IfNode.renderdjango/template/defaulttags.py:3333 ms0.8%
NodeList.renderdjango/template/base.py:11083 ms0.8%
Node.render_annotateddjango/template/base.py:10693 ms0.8%
IncludeNode.renderdjango/template/loader_tags.py:2113 ms0.8%
Template.renderdjango/template/base.py:1773 ms0.8%
instrumented_test_renderdjango/test/utils.py:1133 ms0.8%
NodeList.renderdjango/template/base.py:11083 ms0.8%
Node.render_annotateddjango/template/base.py:10693 ms0.8%
SimpleNode.renderdjango/template/library.py:3433 ms0.8%
1 smaller frames hidden
ClientHandler.__call__django/test/client.py:1738 ms2.3%
BaseHandler.load_middlewaredjango/core/handlers/base.py:638 ms2.3%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1118 ms2.3%
WhiteNoise.add_fileswhitenoise/base.py:1088 ms2.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1208 ms2.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1318 ms2.3%
WhiteNoise.get_static_filewhitenoise/base.py:2178 ms2.3%
StaticFile.__init__whitenoise/responders.py:766 ms1.9%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1886 ms1.9%
Headers.__contains__<stdlib>/wsgiref/headers.py:876 ms1.9%
Headers.get<stdlib>/wsgiref/headers.py:1046 ms1.9%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:506 ms1.9%
1 smaller frames hidden
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()6 ms1.9%
TestCase._fixture_teardowndjango/test/testcases.py:14973 ms0.8%
TestCase._should_check_constraintsdjango/test/testcases.py:15063 ms0.8%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5043 ms0.8%
Cursor.executepsycopg/cursor.py:1133 ms0.8%
Connection.waitpsycopg/connection.py:4953 ms0.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2053 ms0.8%
BaseCursor._convert_querypsycopg/_cursor_base.py:4653 ms0.8%
PostgresClientQuery.convertpsycopg/_queries.py:2733 ms0.8%
PostgresQuery._ensure_bytespsycopg/_queries.py:1673 ms0.8%
conn_encodingpsycopg/_encodings.py:873 ms0.8%
TestCase._fixture_teardowndjango/test/testcases.py:14983 ms0.8%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4953 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms0.8%
Cursor.executepsycopg/cursor.py:1133 ms0.8%
Connection.waitpsycopg/connection.py:4953 ms0.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms0.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms0.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms0.8%
1 smaller frames hidden
Estimated from 264 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/views.py:862
return render(
share_starter_pack · Templates
316 ms
starter_packs/tests.py:704
response = self.client.get(reverse("share_starter_pack", args=[self.starter_pack.slug]))
TestShareStarterPack.test_languages_hidden_when_unset · Libraries
8 ms
starter_packs/views.py:729
starter_pack = get_object_or_404(StarterPack, slug=starter_pack_slug, deleted_at__isnull=True)
share_starter_pack · Database
1 ms
accounts/templatetags/account_extras.py:34
instances = Instance.objects.filter(deleted_at__isnull=True).values_list("domain", flat=True)
instances_datalist · Templates
1 ms
accounts/templatetags/account_extras.py:36
for instance in instances:
instances_datalist · Database
1 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.05 ms
_template_string_if_invalid_marker function 0.05 ms
_django_db_marker function 0.04 ms
_django_isolate_apps function 0.04 ms
_live_server_helper function 0.04 ms
_django_set_urlconf function 0.04 ms
_django_clear_site_cache function 0.03 ms
monkeypatch function 0.02 ms

Database

12 queries · 16 ms
No repeated queries.

Biggest pieces of work

call test body
starter_packs/tests.py:704
327 ms
call _post_teardown
django/test/testcases.py:1243
6 ms
call pytest internals 1 ms

Reliability

12 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 12 results, oldest first in the strip
When Environment Outcome Duration Commit
7 hours ago CI github-actions:test passed 337 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 91 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 168 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 111 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 452 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 102 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 142 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 72 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 251 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 242 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 138 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 91 ms 0c23747 main Run