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

McpTest::test_unknown_environment_is_a_tool_error

First seen 1 month, 1 week ago in 78a4357
CI github-actions:test 15 runs
Average
34 ms
median 38 ms
max 48 ms
Phases
Setup 0.66 ms Call 33 ms Teardown 0.78 ms
Categories
Database 10 ms App code 0.11 ms Other (Libraries, pytest, Unsampled) 24 ms

9 database queries per run

Needs 160 KB of memory (max 488 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call27 ms96.0%
McpTest.test_unknown_environment_is_a_tool_errorapps/mcp/tests.py:200 body = self.rpc("tools/call", {"name": "get_overview", "arguments": {"environment": "ci:nope"}})25 ms88.0%
McpTest.rpcapps/mcp/tests.py:7525 ms88.0%
McpTest.postapps/mcp/tests.py:67 return self.client.post(25 ms88.0%
Client.postdjango/test/client.py:115325 ms88.0%
RequestFactory.postdjango/test/client.py:49925 ms88.0%
RequestFactory.genericdjango/test/client.py:67125 ms88.0%
Client.requestdjango/test/client.py:108225 ms88.0%
ClientHandler.__call__django/test/client.py:17320 ms72.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6220 ms72.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10420 ms72.0%
WhiteNoise.add_fileswhitenoise/base.py:10816 ms56.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12016 ms56.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13116 ms56.0%
WhiteNoise.get_static_filewhitenoise/base.py:20816 ms56.0%
StaticFile.__init__whitenoise/responders.py:777 ms24.0%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms8.0%
StaticFile.get_alternativeswhitenoise/responders.py:2062 ms8.0%
StaticFile.__init__whitenoise/responders.py:735 ms16.0%
StaticFile.get_headerswhitenoise/responders.py:1782 ms8.0%
parsedate<stdlib>/email/_parseaddr.py:1852 ms8.0%
parsedate_tz<stdlib>/email/_parseaddr.py:502 ms8.0%
_parsedate_tz<stdlib>/email/_parseaddr.py:1622 ms8.0%
StaticFile.get_headerswhitenoise/responders.py:1812 ms8.0%
StaticFile.__init__whitenoise/responders.py:742 ms8.0%
parsedate<stdlib>/email/_parseaddr.py:1852 ms8.0%
WhiteNoise.add_fileswhitenoise/base.py:1075 ms16.0%
isdir<frozen genericpath>:522 ms8.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms8.0%
scantreewhitenoise/base.py:2622 ms8.0%
scantreewhitenoise/base.py:2622 ms8.0%
scantreewhitenoise/base.py:2622 ms8.0%
scantreewhitenoise/base.py:2622 ms8.0%
scantreewhitenoise/base.py:2622 ms8.0%
scantreewhitenoise/base.py:2642 ms8.0%
ClientHandler.__call__django/test/client.py:1862 ms8.0%
BaseHandler.get_responsedjango/core/handlers/base.py:1412 ms8.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms8.0%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1302 ms8.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms8.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms8.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms8.0%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1232 ms8.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms8.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms8.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms8.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms8.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms8.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms8.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms8.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms8.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms8.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms8.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms8.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms8.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms8.0%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:342 ms8.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms8.0%
BaseHandler._get_responsedjango/core/handlers/base.py:1982 ms8.0%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:652 ms8.0%
mcpapps/mcp/urls.py:1472 ms8.0%
handleapps/mcp/urls.py:1152 ms8.0%
call_toolapps/mcp/urls.py:752 ms8.0%
Tools.callapps/mcp/tools.py:1882 ms8.0%
Tools.get_overviewapps/mcp/tools.py:2112 ms8.0%
Tools.scopeapps/mcp/tools.py:1802 ms8.0%
resolve_scopeapps/projects/analytics.py:198 selected = Environment.objects.filter(project=project, name=env).first()2 ms8.0%
QuerySet.firstdjango/db/models/query.py:11452 ms8.0%
QuerySet.__iter__django/db/models/query.py:3902 ms8.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms8.0%
ModelIterable.__iter__django/db/models/query.py:952 ms8.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms8.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms8.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms8.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms8.0%
Cursor.executepsycopg/cursor.py:1132 ms8.0%
Connection.waitpsycopg/connection.py:4952 ms8.0%
ClientHandler.__call__django/test/client.py:2072 ms8.0%
HttpResponseBase.closedjango/http/response.py:3412 ms8.0%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms8.0%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms8.0%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms8.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms8.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms8.0%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms8.0%
Cursor.executepsycopg/cursor.py:1132 ms8.0%
Connection.waitpsycopg/connection.py:4952 ms8.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms8.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms8.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms8.0%
teardown0.55 ms2.0%
TestCase.tearDownClassdjango/test/testcases.py:1453 cls._rollback_atomics(cls.cls_atomics)0.55 ms2.0%
TestCase._rollback_atomicsdjango/test/testcases.py:14050.55 ms2.0%
Atomic.__exit__django/db/transaction.py:2950.55 ms2.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.55 ms2.0%
BaseDatabaseWrapper.rollbackdjango/db/backends/base/base.py:3370.55 ms2.0%
BaseDatabaseWrapper._rollbackdjango/db/backends/base/base.py:3080.55 ms2.0%
Connection.rollbackpsycopg/connection.py:3140.55 ms2.0%
Connection.waitpsycopg/connection.py:4950.55 ms2.0%
Estimated from 13 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
23 ms
apps/projects/analytics.py:198
selected = Environment.objects.filter(project=project, name=env).first()
resolve_scope · Database
2 ms

Fixtures

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

Database

9 queries · 2 ms
No repeated queries.

Biggest pieces of work

call test body
apps/mcp/tests.py:200
25 ms
call _post_teardown
django/test/testcases.py:1240
2 ms
teardown tearDownClass
django/test/testcases.py:1453
0.55 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 28 ms cb18ed3 main Profile
2 weeks, 4 days ago CI github-actions:test passed 40 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 20 ms 19dac9b main Profile
3 weeks ago CI github-actions:test passed 38 ms e141198 main Profile
1 month ago CI github-actions:test passed 18 ms 46ec2aa main Profile
1 month ago CI github-actions:test passed 38 ms afde85b main Profile
1 month ago CI github-actions:test passed 31 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 48 ms 044719a main Profile
1 month ago CI github-actions:test passed 25 ms b3fedae main Profile
1 month, 1 week ago CI github-actions:test passed 41 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 40 ms ec75501 main Profile
1 month, 1 week ago CI github-actions:test passed 44 ms d2c12e5 main Profile
1 month, 1 week ago CI github-actions:test passed 19 ms 0b902f6 main Profile
1 month, 1 week ago CI github-actions:test passed 38 ms 78a4357 main Profile