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

McpTest::test_list_environments

First seen 1 month, 1 week ago in 78a4357
CI github-actions:test 15 runs
Average
35 ms
median 40 ms
max 45 ms
Phases
Setup 0.63 ms Call 34 ms Teardown 0.15 ms
Categories
Database 9 ms App code 0.11 ms Test code 0.08 ms Other (Libraries, Unsampled, pytest) 26 ms

10 database queries per run

Needs 189 KB of memory (max 552 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call32 ms97.9%
McpTest.test_list_environmentsapps/mcp/tests.py:184 result = self.call("list_environments")29 ms89.8%
McpTest.callapps/mcp/tests.py:8229 ms89.8%
McpTest.rpcapps/mcp/tests.py:7529 ms89.8%
McpTest.postapps/mcp/tests.py:67 return self.client.post(29 ms89.8%
Client.postdjango/test/client.py:115329 ms89.8%
RequestFactory.postdjango/test/client.py:49929 ms89.8%
RequestFactory.genericdjango/test/client.py:67129 ms89.8%
Client.requestdjango/test/client.py:108229 ms89.8%
ClientHandler.__call__django/test/client.py:17321 ms65.3%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6221 ms65.3%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10421 ms65.3%
WhiteNoise.add_fileswhitenoise/base.py:10821 ms65.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12013 ms40.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13111 ms32.6%
WhiteNoise.get_static_filewhitenoise/base.py:2085 ms16.3%
StaticFile.__init__whitenoise/responders.py:723 ms8.2%
StaticFile.get_headerswhitenoise/responders.py:1673 ms8.2%
StaticFile.__init__whitenoise/responders.py:733 ms8.2%
StaticFile.get_headerswhitenoise/responders.py:1673 ms8.2%
WhiteNoise.get_static_filewhitenoise/base.py:2033 ms8.2%
WhiteNoise.add_cache_headerswhitenoise/base.py:2243 ms8.2%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1763 ms8.2%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1973 ms8.2%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms8.2%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2053 ms8.2%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1863 ms8.2%
WhiteNoise.get_static_filewhitenoise/base.py:2023 ms8.2%
WhiteNoise.add_mime_headerswhitenoise/base.py:2213 ms8.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms16.3%
scantreewhitenoise/base.py:2625 ms16.3%
scantreewhitenoise/base.py:2625 ms16.3%
scantreewhitenoise/base.py:2625 ms16.3%
scantreewhitenoise/base.py:2623 ms8.2%
scantreewhitenoise/base.py:2623 ms8.2%
scantreewhitenoise/base.py:2643 ms8.2%
ClientHandler.__call__django/test/client.py:1868 ms24.5%
BaseHandler.get_responsedjango/core/handlers/base.py:1418 ms24.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms24.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1308 ms24.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms24.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms24.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms24.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1238 ms24.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms24.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms24.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms24.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms24.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms24.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms24.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms24.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms24.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms24.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms24.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms24.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms24.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms24.5%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:348 ms24.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms24.5%
BaseHandler._get_responsedjango/core/handlers/base.py:1988 ms24.5%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:658 ms24.5%
mcpapps/mcp/urls.py:1475 ms16.3%
handleapps/mcp/urls.py:1155 ms16.3%
call_toolapps/mcp/urls.py:755 ms16.3%
Tools.callapps/mcp/tools.py:1885 ms16.3%
Tools.list_environmentsapps/mcp/tools.py:1915 ms16.3%
environment_rowsapps/projects/analytics.py:221 for row in Profile.objects.filter(project=project, status=Profile.StatusTypes.PROCESSED, started_at__gte=since)3 ms8.2%
QuerySet.__iter__django/db/models/query.py:3903 ms8.2%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms8.2%
ValuesIterable.__iter__django/db/models/query.py:2223 ms8.2%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15733 ms8.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms8.2%
CursorWrapper.executedjango/db/backends/utils.py:793 ms8.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms8.2%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms8.2%
Cursor.executepsycopg/cursor.py:1133 ms8.2%
Connection.waitpsycopg/connection.py:4953 ms8.2%
environment_rowsapps/projects/analytics.py:237 for environment in Environment.objects.filter(project=project):3 ms8.2%
QuerySet.__iter__django/db/models/query.py:3903 ms8.2%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms8.2%
ModelIterable.__iter__django/db/models/query.py:953 ms8.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms8.2%
CursorWrapper.executedjango/db/backends/utils.py:793 ms8.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms8.2%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms8.2%
Cursor.executepsycopg/cursor.py:1133 ms8.2%
Connection.waitpsycopg/connection.py:4953 ms8.2%
mcpapps/mcp/urls.py:1253 ms8.2%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()3 ms8.2%
QuerySet.firstdjango/db/models/query.py:11453 ms8.2%
QuerySet.__iter__django/db/models/query.py:3903 ms8.2%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms8.2%
ModelIterable.__iter__django/db/models/query.py:953 ms8.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms8.2%
CursorWrapper.executedjango/db/backends/utils.py:793 ms8.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms8.2%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms8.2%
Cursor.executepsycopg/cursor.py:1133 ms8.2%
Connection.waitpsycopg/connection.py:4953 ms8.2%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()3 ms8.2%
TestCase._fixture_teardowndjango/test/testcases.py:14953 ms8.2%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4833 ms8.2%
CursorWrapper.executedjango/db/backends/utils.py:793 ms8.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms8.2%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms8.2%
Cursor.executepsycopg/cursor.py:1133 ms8.2%
Connection.waitpsycopg/connection.py:4953 ms8.2%
Estimated from 12 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/mcp/tests.py:67
return self.client.post(
McpTest.post · Libraries
21 ms
apps/mcp/urls.py:55
project = Project.objects.filter(secrettokens__token=token).first()
authenticate · Database
3 ms
apps/projects/analytics.py:221
for row in Profile.objects.filter(project=project, status=Profile.StatusTypes.PROCESSED, started_at__gte=since)
environment_rows · Database
3 ms
apps/projects/analytics.py:237
for environment in Environment.objects.filter(project=project):
environment_rows · Database
3 ms

Fixtures

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

Database

10 queries · 3 ms
No repeated queries.

Biggest pieces of work

call test body
apps/mcp/tests.py:184
29 ms
call _post_teardown
django/test/testcases.py:1240
3 ms

Reliability

15 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 15 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 33 ms cb18ed3 main Profile
2 weeks, 4 days ago CI github-actions:test passed 38 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 19 ms 19dac9b main Profile
3 weeks ago CI github-actions:test passed 40 ms e141198 main Profile
1 month ago CI github-actions:test passed 20 ms 46ec2aa main Profile
1 month ago CI github-actions:test passed 41 ms afde85b main Profile
1 month ago CI github-actions:test passed 36 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 45 ms 044719a main Profile
1 month ago CI github-actions:test passed 26 ms b3fedae main Profile
1 month, 1 week ago CI github-actions:test passed 42 ms 43c4eda main Profile
1 month, 1 week ago CI github-actions:test passed 41 ms 9caa567 main Profile
1 month, 1 week ago CI github-actions:test passed 41 ms ec75501 main Profile
1 month, 1 week ago CI github-actions:test passed 45 ms d2c12e5 main Profile
1 month, 1 week ago CI github-actions:test passed 20 ms 0b902f6 main Profile
1 month, 1 week ago CI github-actions:test passed 41 ms 78a4357 main Profile