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

McpTest::test_initialize_with_older_and_unknown_versions

First seen 1 month, 1 week ago in 78a4357
CI github-actions:test 15 runs
Average
36 ms
median 40 ms
max 58 ms
Phases
Setup 0.66 ms Call 36 ms Teardown 0.15 ms
Categories
Database 9 ms Other (Libraries, Unsampled, pytest, Serialization) 27 ms

9 database queries per run

Needs 138 KB of memory (max 580 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call25 ms97.4%
McpTest.test_initialize_with_older_and_unknown_versionsapps/mcp/tests.py:98 self.rpc("initialize", {"protocolVersion": "2025-03-26"})["result"]["protocolVersion"], "2025-03-26"20 ms79.7%
McpTest.rpcapps/mcp/tests.py:7520 ms79.7%
McpTest.postapps/mcp/tests.py:67 return self.client.post(20 ms79.7%
Client.postdjango/test/client.py:115320 ms79.7%
RequestFactory.postdjango/test/client.py:49920 ms79.7%
RequestFactory.genericdjango/test/client.py:67120 ms79.7%
Client.requestdjango/test/client.py:108220 ms79.7%
ClientHandler.__call__django/test/client.py:17316 ms62.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6216 ms62.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10416 ms62.0%
WhiteNoise.add_fileswhitenoise/base.py:10816 ms62.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1209 ms35.4%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1319 ms35.4%
WhiteNoise.get_static_filewhitenoise/base.py:2085 ms17.7%
StaticFile.__init__whitenoise/responders.py:775 ms17.7%
StaticFile.get_alternativeswhitenoise/responders.py:2005 ms17.7%
__init____init__:-12 ms8.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms17.7%
scantreewhitenoise/base.py:2625 ms17.7%
scantreewhitenoise/base.py:2625 ms17.7%
scantreewhitenoise/base.py:2602 ms8.9%
scantreewhitenoise/base.py:2642 ms8.9%
ClientHandler.__call__django/test/client.py:1865 ms17.7%
BaseHandler.get_responsedjango/core/handlers/base.py:1415 ms17.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms17.7%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1305 ms17.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms17.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms17.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms17.7%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1235 ms17.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms17.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms17.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms17.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms17.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms17.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms17.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms17.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms17.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms17.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms17.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms17.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms17.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms17.7%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:345 ms17.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms17.7%
BaseHandler._get_responsedjango/core/handlers/base.py:1985 ms17.7%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:655 ms17.7%
mcpapps/mcp/urls.py:1255 ms17.7%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()5 ms17.7%
QuerySet.firstdjango/db/models/query.py:11455 ms17.7%
QuerySet.__iter__django/db/models/query.py:3905 ms17.7%
QuerySet._fetch_alldjango/db/models/query.py:20005 ms17.7%
ModelIterable.__iter__django/db/models/query.py:922 ms8.9%
Query.get_compilerdjango/db/models/sql/query.py:3692 ms8.9%
ModelIterable.__iter__django/db/models/query.py:1282 ms8.9%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15772 ms8.9%
SQLCompiler.get_convertersdjango/db/models/sql/compiler.py:15252 ms8.9%
Col.get_db_convertersdjango/db/models/expressions.py:13392 ms8.9%
McpTest.test_initialize_with_older_and_unknown_versionsapps/mcp/tests.py:1012 ms8.9%
McpTest.rpcapps/mcp/tests.py:752 ms8.9%
McpTest.postapps/mcp/tests.py:67 return self.client.post(2 ms8.9%
Client.postdjango/test/client.py:11532 ms8.9%
RequestFactory.postdjango/test/client.py:4992 ms8.9%
RequestFactory.genericdjango/test/client.py:6712 ms8.9%
Client.requestdjango/test/client.py:10822 ms8.9%
ClientHandler.__call__django/test/client.py:1862 ms8.9%
BaseHandler.get_responsedjango/core/handlers/base.py:1412 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms8.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1302 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms8.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1232 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms8.9%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:342 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms8.9%
BaseHandler._get_responsedjango/core/handlers/base.py:1982 ms8.9%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:652 ms8.9%
mcpapps/mcp/urls.py:1252 ms8.9%
authenticateapps/mcp/urls.py:57 SecretTokens.objects.filter(token=token).update(date_last_used=timezone.now())2 ms8.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms8.9%
QuerySet.filterdjango/db/models/query.py:15422 ms8.9%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms8.9%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms8.9%
Query.add_qdjango/db/models/sql/query.py:16712 ms8.9%
Query._add_qdjango/db/models/sql/query.py:17032 ms8.9%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms8.9%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms8.9%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms8.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms8.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms8.9%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms8.9%
Cursor.executepsycopg/cursor.py:1132 ms8.9%
Connection.waitpsycopg/connection.py:4952 ms8.9%
Estimated from 11 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
16 ms
apps/mcp/urls.py:55
project = Project.objects.filter(secrettokens__token=token).first()
authenticate · Database
5 ms
apps/mcp/urls.py:57
SecretTokens.objects.filter(token=token).update(date_last_used=timezone.now())
authenticate · Database
2 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.05 ms
_template_string_if_invalid_marker function 0.03 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.01 ms

Database

9 queries · 2 ms
No repeated queries.

Biggest pieces of work

call test body
apps/mcp/tests.py:98
23 ms
call _post_teardown
django/test/testcases.py:1240
2 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 26 ms cb18ed3 main Profile
2 weeks, 4 days ago CI github-actions:test passed 43 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 21 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 22 ms 46ec2aa main Profile
1 month ago CI github-actions:test passed 44 ms afde85b main Profile
1 month ago CI github-actions:test passed 33 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 51 ms 044719a main Profile
1 month ago CI github-actions:test passed 19 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 39 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 50 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 58 ms 78a4357 main Profile