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

TestStaticPages::test_developers_on_mastodon

First seen 2 years, 2 months ago in 11beb36
CI github-actions:test 11 runs
Average
419 ms
median 320 ms
max 749 ms
Phases
Setup 18 ms Call 400 ms Teardown 0.68 ms
Categories
Database 34 ms Other (Libraries, Templates, Unsampled, pytest, ...) 385 ms

8 database queries per run

Needs 66 KB of memory (max 260 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
call294 ms91.7%
TestStaticPages.test_developers_on_mastodonaccounts/tests.py:536 response = self.client.get("/developers-on-mastodon/")290 ms90.5%
Client.getdjango/test/client.py:1133290 ms90.5%
RequestFactory.getdjango/test/client.py:475290 ms90.5%
RequestFactory.genericdjango/test/client.py:671290 ms90.5%
Client.requestdjango/test/client.py:1091290 ms90.5%
ClientHandler.__call__django/test/client.py:173259 ms80.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:63259 ms80.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:104259 ms80.9%
WhiteNoise.add_fileswhitenoise/base.py:108259 ms80.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:120210 ms65.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:131210 ms65.7%
WhiteNoise.get_static_filewhitenoise/base.py:212163 ms50.8%
WhiteNoise.add_cache_headerswhitenoise/base.py:233157 ms49.0%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:176156 ms48.7%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:197156 ms48.7%
URLMixin.urldebug_toolbar/panels/staticfiles.py:21151 ms47.2%
<GC>~149 ms46.6%
URLMixin.urldebug_toolbar/panels/staticfiles.py:204 ms1.2%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2354 ms1.2%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2162 ms0.6%
2 smaller frames hidden
1 smaller frames hidden
WhiteNoise.add_cache_headerswhitenoise/base.py:2365 ms1.5%
Headers.__setitem__<stdlib>/wsgiref/headers.py:625 ms1.5%
Headers.__delitem__<stdlib>/wsgiref/headers.py:725 ms1.5%
1 smaller frames hidden
WhiteNoise.get_static_filewhitenoise/base.py:21739 ms12.2%
StaticFile.__init__whitenoise/responders.py:7321 ms6.6%
StaticFile.get_headerswhitenoise/responders.py:1769 ms2.7%
Headers.__setitem__<stdlib>/wsgiref/headers.py:625 ms1.5%
Headers.__delitem__<stdlib>/wsgiref/headers.py:715 ms1.5%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:484 ms1.2%
1 smaller frames hidden
formatdate<stdlib>/email/utils.py:2662 ms0.6%
StaticFile.get_headerswhitenoise/responders.py:1785 ms1.5%
parsedate<stdlib>/email/_parseaddr.py:1854 ms1.2%
parsedate_tz<stdlib>/email/_parseaddr.py:504 ms1.2%
_parsedate_tz<stdlib>/email/_parseaddr.py:693 ms0.9%
1 smaller frames hidden
StaticFile.get_headerswhitenoise/responders.py:1713 ms0.9%
Headers.__contains__<stdlib>/wsgiref/headers.py:872 ms0.6%
Headers.get<stdlib>/wsgiref/headers.py:1042 ms0.6%
StaticFile.get_headerswhitenoise/responders.py:1803 ms0.9%
StaticFile.get_headerswhitenoise/responders.py:1672 ms0.6%
__init____init__:-12 ms0.6%
StaticFile.__init__whitenoise/responders.py:726 ms1.8%
StaticFile.get_file_statswhitenoise/responders.py:1615 ms1.5%
__init____init__:-15 ms1.5%
FileEntry.__init__whitenoise/responders.py:2635 ms1.5%
FileEntry.stat_regular_filewhitenoise/responders.py:2764 ms1.2%
1 smaller frames hidden
1 smaller frames hidden
StaticFile.__init__whitenoise/responders.py:765 ms1.5%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1893 ms0.9%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms0.6%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms0.6%
Headers.__contains__<stdlib>/wsgiref/headers.py:872 ms0.6%
StaticFile.__init__whitenoise/responders.py:774 ms1.2%
StaticFile.get_alternativeswhitenoise/responders.py:1982 ms0.6%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms0.6%
StaticFile.__init__whitenoise/responders.py:743 ms0.9%
parsedate<stdlib>/email/_parseaddr.py:1853 ms0.9%
WhiteNoise.get_static_filewhitenoise/base.py:2119 ms2.7%
WhiteNoise.add_mime_headerswhitenoise/base.py:2308 ms2.4%
Headers.add_header<stdlib>/wsgiref/headers.py:1853 ms0.9%
Headers.add_header<stdlib>/wsgiref/headers.py:1903 ms0.9%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:483 ms0.9%
2 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:11549 ms15.2%
scantreewhitenoise/base.py:27147 ms14.6%
scantreewhitenoise/base.py:27147 ms14.6%
scantreewhitenoise/base.py:27145 ms14.0%
scantreewhitenoise/base.py:27145 ms14.0%
scantreewhitenoise/base.py:27145 ms14.0%
scantreewhitenoise/base.py:27344 ms13.7%
<GC>~11 ms3.6%
1 smaller frames hidden
2 smaller frames hidden
ClientHandler.__call__django/test/client.py:18631 ms9.6%
BaseHandler.get_responsedjango/core/handlers/base.py:14231 ms9.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5631 ms9.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38031 ms9.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5631 ms9.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38031 ms9.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5631 ms9.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38031 ms9.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5631 ms9.6%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12331 ms9.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5631 ms9.6%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14531 ms9.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5631 ms9.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38031 ms9.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5631 ms9.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38031 ms9.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5631 ms9.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38031 ms9.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5631 ms9.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38031 ms9.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5631 ms9.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38031 ms9.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5631 ms9.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38031 ms9.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5631 ms9.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38031 ms9.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5631 ms9.6%
BaseHandler._get_responsedjango/core/handlers/base.py:19931 ms9.6%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:18931 ms9.6%
devs_on_mastodonaccounts/views.py:52531 ms9.6%
renderdjango/shortcuts.py:2731 ms9.6%
render_to_stringdjango/template/loader.py:6231 ms9.6%
Template.renderdjango/template/backends/django.py:10731 ms9.6%
Template.renderdjango/template/base.py:17531 ms9.6%
instrumented_test_renderdjango/test/utils.py:11331 ms9.6%
NodeList.renderdjango/template/base.py:110831 ms9.6%
Node.render_annotateddjango/template/base.py:106931 ms9.6%
ExtendsNode.renderdjango/template/loader_tags.py:16031 ms9.6%
instrumented_test_renderdjango/test/utils.py:11331 ms9.6%
NodeList.renderdjango/template/base.py:110831 ms9.6%
Node.render_annotateddjango/template/base.py:106931 ms9.6%
IfNode.renderdjango/template/defaulttags.py:33331 ms9.6%
NodeList.renderdjango/template/base.py:110831 ms9.6%
Node.render_annotateddjango/template/base.py:106931 ms9.6%
IncludeNode.renderdjango/template/loader_tags.py:21131 ms9.6%
Template.renderdjango/template/base.py:17731 ms9.6%
instrumented_test_renderdjango/test/utils.py:11331 ms9.6%
NodeList.renderdjango/template/base.py:110831 ms9.6%
Node.render_annotateddjango/template/base.py:106931 ms9.6%
SimpleNode.renderdjango/template/library.py:34331 ms9.6%
instances_datalistaccounts/templatetags/account_extras.py:36 for instance in instances:31 ms9.6%
QuerySet.__iter__django/db/models/query.py:43931 ms9.6%
QuerySet._fetch_alldjango/db/models/query.py:226231 ms9.6%
FlatValuesListIterable.__iter__django/db/models/query.py:30231 ms9.6%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:157431 ms9.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:161231 ms9.6%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:79631 ms9.6%
SQLCompiler.compiledjango/db/models/sql/compiler.py:57531 ms9.6%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()4 ms1.2%
TestCase._fixture_teardowndjango/test/testcases.py:14974 ms1.2%
TestCase._should_check_constraintsdjango/test/testcases.py:15064 ms1.2%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5044 ms1.2%
Cursor.executepsycopg/cursor.py:1134 ms1.2%
Connection.waitpsycopg/connection.py:4954 ms1.2%
Estimated from 307 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
259 ms
accounts/templatetags/account_extras.py:36
for instance in instances:
instances_datalist · Database
31 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestStaticPages class 22 ms
_django_setup_unittest class 0.39 ms
_live_server_helper function 0.07 ms
_template_string_if_invalid_marker function 0.07 ms
_django_db_marker function 0.07 ms
_dj_autoclear_mailbox function 0.07 ms
_django_isolate_apps function 0.05 ms
monkeypatch function 0.05 ms
_django_set_urlconf function 0.05 ms
_django_clear_site_cache function 0.04 ms

Database

8 queries · 16 ms
No repeated queries.

Biggest pieces of work

call test body
accounts/tests.py:536
290 ms
call _post_teardown
django/test/testcases.py:1243
4 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 320 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 290 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 305 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 344 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 541 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 320 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 287 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 272 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 749 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 688 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 490 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 131 ms 0c23747 main Run