flakytest.dev anze3db flakytest
Tests / apps/mcp/tests.py

McpTest::test_list_environments

First seen 8 hours ago in 78a4357
CI github-actions:test 5 runs
Average
38 ms
median 41 ms
max 45 ms
Phases
Setup 0.71 ms Call 37 ms Teardown 0.17 ms
Categories
Database 7 ms Other (Libraries, Unsampled, pytest) 30 ms

10 database queries per run

Needs 13 KB of memory (max 64 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, an hour ago · open run
Show pytest frames
setup0.64 ms1.6%
__init____init__:-10.64 ms1.6%
call40 ms98.0%
McpTest.test_list_environmentsapps/mcp/tests.py:183 result = self.call("list_environments")36 ms88.2%
McpTest.callapps/mcp/tests.py:8136 ms88.2%
McpTest.rpcapps/mcp/tests.py:7436 ms88.2%
McpTest.postapps/mcp/tests.py:66 return self.client.post(36 ms88.2%
Client.postdjango/test/client.py:115336 ms88.2%
RequestFactory.postdjango/test/client.py:49936 ms88.2%
RequestFactory.genericdjango/test/client.py:67136 ms88.2%
Client.requestdjango/test/client.py:108236 ms88.2%
ClientHandler.__call__django/test/client.py:17328 ms68.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6224 ms58.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10424 ms58.8%
WhiteNoise.add_fileswhitenoise/base.py:10824 ms58.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12016 ms39.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13112 ms29.4%
WhiteNoise.get_static_filewhitenoise/base.py:2088 ms19.6%
StaticFile.__init__whitenoise/responders.py:734 ms9.8%
StaticFile.get_headerswhitenoise/responders.py:1764 ms9.8%
formatdate<stdlib>/email/utils.py:2664 ms9.8%
WhiteNoise.get_static_filewhitenoise/base.py:2024 ms9.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1158 ms19.6%
scantreewhitenoise/base.py:2624 ms9.8%
scantreewhitenoise/base.py:2624 ms9.8%
scantreewhitenoise/base.py:2624 ms9.8%
scantreewhitenoise/base.py:2624 ms9.8%
scantreewhitenoise/base.py:2624 ms9.8%
scantreewhitenoise/base.py:2644 ms9.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:964 ms9.8%
ClientHandler.__call__django/test/client.py:1868 ms19.6%
BaseHandler.get_responsedjango/core/handlers/base.py:1418 ms19.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms19.6%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1308 ms19.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms19.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms19.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms19.6%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1238 ms19.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms19.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms19.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms19.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms19.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms19.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms19.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms19.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms19.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms19.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms19.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms19.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms19.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms19.6%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:348 ms19.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms19.6%
BaseHandler._get_responsedjango/core/handlers/base.py:1988 ms19.6%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:658 ms19.6%
mcpapps/mcp/urls.py:1254 ms9.8%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()4 ms9.8%
QuerySet.firstdjango/db/models/query.py:11454 ms9.8%
QuerySet.__iter__django/db/models/query.py:3904 ms9.8%
QuerySet._fetch_alldjango/db/models/query.py:20004 ms9.8%
ModelIterable.__iter__django/db/models/query.py:954 ms9.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16244 ms9.8%
CursorWrapper.executedjango/db/backends/utils.py:794 ms9.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms9.8%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms9.8%
Cursor.executepsycopg/cursor.py:1134 ms9.8%
Connection.waitpsycopg/connection.py:4954 ms9.8%
mcpapps/mcp/urls.py:1474 ms9.8%
handleapps/mcp/urls.py:1154 ms9.8%
call_toolapps/mcp/urls.py:754 ms9.8%
Tools.callapps/mcp/tools.py:1814 ms9.8%
Tools.list_environmentsapps/mcp/tools.py:1844 ms9.8%
environment_rowsapps/projects/analytics.py:237 for environment in Environment.objects.filter(project=project):4 ms9.8%
QuerySet.__iter__django/db/models/query.py:3904 ms9.8%
QuerySet._fetch_alldjango/db/models/query.py:20004 ms9.8%
ModelIterable.__iter__django/db/models/query.py:954 ms9.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16114 ms9.8%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7674 ms9.8%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:864 ms9.8%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:754 ms9.8%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3174 ms9.8%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5784 ms9.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()4 ms9.8%
TestCase._fixture_teardowndjango/test/testcases.py:14954 ms9.8%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4834 ms9.8%
CursorWrapper.executedjango/db/backends/utils.py:794 ms9.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms9.8%
CursorWrapper._executedjango/db/backends/utils.py:1034 ms9.8%
Cursor.executepsycopg/cursor.py:1134 ms9.8%
Connection.waitpsycopg/connection.py:4954 ms9.8%
Estimated from 11 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/mcp/tests.py:66
return self.client.post(
McpTest.post · Libraries
28 ms
apps/mcp/urls.py:55
project = Project.objects.filter(secrettokens__token=token).first()
authenticate · Database
4 ms
apps/projects/analytics.py:237
for environment in Environment.objects.filter(project=project):
environment_rows · Database
4 ms

Fixtures

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

Database

10 queries · 4 ms
No repeated queries.

Biggest pieces of work

call test body
apps/mcp/tests.py:183
36 ms
call _post_teardown
django/test/testcases.py:1240
4 ms
setup __init__
__init__:-1
0.64 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
an hour ago CI github-actions:test passed 41 ms 9caa567 main Profile
an hour ago CI github-actions:test passed 41 ms ec75501 main Profile
8 hours ago CI github-actions:test passed 45 ms d2c12e5 main Profile
8 hours ago CI github-actions:test passed 20 ms 0b902f6 main Profile
8 hours ago CI github-actions:test passed 41 ms 78a4357 main Profile