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

McpTest::test_initialize_with_older_and_unknown_versions

First seen 8 hours ago in 78a4357
CI github-actions:test 5 runs
Average
41 ms
median 40 ms
max 58 ms
Phases
Setup 0.74 ms Call 40 ms Teardown 0.18 ms
Categories
Database 10 ms Other (Libraries, Unsampled) 32 ms

9 database queries per run

Needs 0 KB of memory (max 0 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, an hour ago · open run
Hide pytest frames
call38 ms97.5%
CallInfo.from_call_pytest/runner.py:35338 ms97.5%
call_and_report.<locals>.<lambda>_pytest/runner.py:24538 ms97.5%
HookCaller.__call__pluggy/_hooks.py:51238 ms97.5%
PluginManager._hookexecpluggy/_manager.py:12038 ms97.5%
_multicallpluggy/_callers.py:12138 ms97.5%
pytest_runtest_call_pytest/runner.py:17938 ms97.5%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:57338 ms97.5%
SimpleTestCase.__call__django/test/testcases.py:31338 ms97.5%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36832 ms81.3%
TestCase.__call__<stdlib>/unittest/case.py:74732 ms81.3%
TestCase.run<stdlib>/unittest/case.py:69132 ms81.3%
TestCase._callTestMethod<stdlib>/unittest/case.py:63732 ms81.3%
McpTest.test_initialize_with_older_and_unknown_versionsapps/mcp/tests.py:97 self.rpc("initialize", {"protocolVersion": "2025-03-26"})["result"]["protocolVersion"], "2025-03-26"29 ms73.1%
McpTest.rpcapps/mcp/tests.py:7429 ms73.1%
McpTest.postapps/mcp/tests.py:66 return self.client.post(29 ms73.1%
Client.postdjango/test/client.py:115329 ms73.1%
RequestFactory.postdjango/test/client.py:49929 ms73.1%
RequestFactory.genericdjango/test/client.py:67129 ms73.1%
Client.requestdjango/test/client.py:108229 ms73.1%
ClientHandler.__call__django/test/client.py:17329 ms73.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6229 ms73.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10429 ms73.1%
WhiteNoise.add_fileswhitenoise/base.py:10829 ms73.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12025 ms65.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13125 ms65.0%
WhiteNoise.get_static_filewhitenoise/base.py:20819 ms48.8%
StaticFile.__init__whitenoise/responders.py:7310 ms24.4%
StaticFile.get_headerswhitenoise/responders.py:1713 ms8.1%
StaticFile.get_headerswhitenoise/responders.py:1783 ms8.1%
StaticFile.get_headerswhitenoise/responders.py:1763 ms8.1%
formatdate<stdlib>/email/utils.py:2663 ms8.1%
StaticFile.__init__whitenoise/responders.py:773 ms8.1%
StaticFile.get_alternativeswhitenoise/responders.py:2003 ms8.1%
__init____init__:-13 ms8.1%
StaticFile.__init__whitenoise/responders.py:743 ms8.1%
parsedate<stdlib>/email/_parseaddr.py:1853 ms8.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms8.1%
scantreewhitenoise/base.py:2623 ms8.1%
scantreewhitenoise/base.py:2623 ms8.1%
scantreewhitenoise/base.py:2603 ms8.1%
McpTest.test_initialize_with_older_and_unknown_versionsapps/mcp/tests.py:1003 ms8.1%
McpTest.rpcapps/mcp/tests.py:743 ms8.1%
McpTest.postapps/mcp/tests.py:66 return self.client.post(3 ms8.1%
Client.postdjango/test/client.py:11533 ms8.1%
RequestFactory.postdjango/test/client.py:4993 ms8.1%
RequestFactory.genericdjango/test/client.py:6713 ms8.1%
Client.requestdjango/test/client.py:10823 ms8.1%
ClientHandler.__call__django/test/client.py:1863 ms8.1%
BaseHandler.get_responsedjango/core/handlers/base.py:1413 ms8.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms8.1%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1303 ms8.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms8.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms8.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms8.1%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1233 ms8.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms8.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms8.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms8.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms8.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms8.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms8.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms8.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms8.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms8.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms8.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms8.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms8.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms8.1%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:343 ms8.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms8.1%
BaseHandler._get_responsedjango/core/handlers/base.py:1983 ms8.1%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:653 ms8.1%
mcpapps/mcp/urls.py:1253 ms8.1%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()3 ms8.1%
QuerySet.firstdjango/db/models/query.py:11453 ms8.1%
QuerySet.__iter__django/db/models/query.py:3903 ms8.1%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms8.1%
ModelIterable.__iter__django/db/models/query.py:953 ms8.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms8.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms8.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms8.1%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1003 ms8.1%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms8.1%
Cursor.executepsycopg/cursor.py:1133 ms8.1%
Connection.waitpsycopg/connection.py:4953 ms8.1%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3716 ms16.3%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()6 ms16.3%
TestCase._fixture_teardowndjango/test/testcases.py:14953 ms8.1%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4833 ms8.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms8.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms8.1%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1003 ms8.1%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms8.1%
Cursor.executepsycopg/cursor.py:1133 ms8.1%
Connection.waitpsycopg/connection.py:4953 ms8.1%
TestCase._fixture_teardowndjango/test/testcases.py:14973 ms8.1%
TestCase._rollback_atomicsdjango/test/testcases.py:14053 ms8.1%
Atomic.__exit__django/db/transaction.py:2833 ms8.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms8.1%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4133 ms8.1%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3713 ms8.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms8.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms8.1%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1003 ms8.1%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms8.1%
Cursor.executepsycopg/cursor.py:1133 ms8.1%
Connection.waitpsycopg/connection.py:4953 ms8.1%
Estimated from 12 samples; phase durations are exact. Frames from pytest and pluggy are shown .

Hot lines in your code

apps/mcp/tests.py:66
return self.client.post(
McpTest.post · Libraries
29 ms
apps/mcp/urls.py:55
project = Project.objects.filter(secrettokens__token=token).first()
authenticate · Database
3 ms

Fixtures

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

Database

9 queries · 3 ms
No repeated queries.

Biggest pieces of work

call test body
apps/mcp/tests.py:97
32 ms
call _post_teardown
django/test/testcases.py:1240
6 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 39 ms 9caa567 main Profile
an hour ago CI github-actions:test passed 40 ms ec75501 main Profile
8 hours ago CI github-actions:test passed 50 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 58 ms 78a4357 main Profile