Tests / apps/mcp/tests.py
McpTest::test_get_test_not_found
First seen 1 month, 1 week ago in 78a4357
CI
github-actions:test
15 runs
Average
39 ms
median 44 ms
max 60 ms
max 60 ms
Phases
Setup 0.60 ms
Call 38 ms
Teardown 0.15 ms
Categories
Database 13 ms
Other (Libraries, Unsampled, pytest) 26 ms
13 database queries per run
Needs 202 KB of memory (max 608 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call31 ms97.9%
McpTest.test_get_test_not_foundapps/mcp/tests.py:238 body = self.rpc("tools/call", {"name": "get_test", "arguments": {"nodeid": "test_other"}})23 ms73.4%
McpTest.rpcapps/mcp/tests.py:7523 ms73.4%
McpTest.postapps/mcp/tests.py:67 return self.client.post(23 ms73.4%
Client.postdjango/test/client.py:115323 ms73.4%
RequestFactory.postdjango/test/client.py:49923 ms73.4%
RequestFactory.genericdjango/test/client.py:67123 ms73.4%
Client.requestdjango/test/client.py:108223 ms73.4%
ClientHandler.__call__django/test/client.py:18615 ms48.9%
BaseHandler.get_responsedjango/core/handlers/base.py:14115 ms48.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms48.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13015 ms48.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms48.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms42.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms42.8%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12314 ms42.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms42.8%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms42.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms42.8%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms42.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms42.8%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms42.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms42.8%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms42.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms42.8%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms42.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms42.8%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms42.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms42.8%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3414 ms42.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms42.8%
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:1256 ms18.3%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()6 ms18.3%
QuerySet.firstdjango/db/models/query.py:11456 ms18.3%
QuerySet.__iter__django/db/models/query.py:3906 ms18.3%
QuerySet._fetch_alldjango/db/models/query.py:20006 ms18.3%
ModelIterable.__iter__django/db/models/query.py:956 ms18.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms6.1%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms6.1%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:872 ms6.1%
SQLCompiler.get_order_bydjango/db/models/sql/compiler.py:4912 ms6.1%
SQLCompiler._order_by_pairsdjango/db/models/sql/compiler.py:3592 ms6.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms6.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms6.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms6.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms6.1%
Cursor.executepsycopg/cursor.py:1132 ms6.1%
Connection.waitpsycopg/connection.py:4952 ms6.1%
mcpapps/mcp/urls.py:1472 ms6.1%
handleapps/mcp/urls.py:1152 ms6.1%
call_toolapps/mcp/urls.py:752 ms6.1%
Tools.callapps/mcp/tools.py:1882 ms6.1%
Tools.get_testapps/mcp/tools.py:3022 ms6.1%
Tools.find_testapps/mcp/tools.py:288 test = tests.filter(name=nodeid).first()2 ms6.1%
QuerySet.firstdjango/db/models/query.py:11452 ms6.1%
QuerySet.__iter__django/db/models/query.py:3902 ms6.1%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms6.1%
ModelIterable.__iter__django/db/models/query.py:952 ms6.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms6.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms6.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms6.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms6.1%
Cursor.executepsycopg/cursor.py:1132 ms6.1%
Connection.waitpsycopg/connection.py:4952 ms6.1%
BaseHandler._get_responsedjango/core/handlers/base.py:1954 ms12.2%
iscoroutinefunction<stdlib>/inspect.py:336 return _has_code_flag(obj, CO_COROUTINE) or _has_coroutine_mark(obj)2 ms6.1%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:652 ms6.1%
mcpapps/mcp/urls.py:1252 ms6.1%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()2 ms6.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms6.1%
QuerySet.filterdjango/db/models/query.py:15422 ms6.1%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms6.1%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms6.1%
Query.add_qdjango/db/models/sql/query.py:16712 ms6.1%
Query._add_qdjango/db/models/sql/query.py:16992 ms6.1%
BaseHandler._get_responsedjango/core/handlers/base.py:1822 ms6.1%
BaseHandler.resolve_requestdjango/core/handlers/base.py:3142 ms6.1%
URLResolver.resolvedjango/urls/resolvers.py:6782 ms6.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3112 ms6.1%
ClientHandler.__call__django/test/client.py:1738 ms24.5%
BaseHandler.load_middlewaredjango/core/handlers/base.py:628 ms24.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1048 ms24.5%
WhiteNoise.add_fileswhitenoise/base.py:1088 ms24.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms12.2%
scantreewhitenoise/base.py:2624 ms12.2%
scantreewhitenoise/base.py:2624 ms12.2%
scantreewhitenoise/base.py:2644 ms12.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1204 ms12.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1314 ms12.2%
WhiteNoise.get_static_filewhitenoise/base.py:2084 ms12.2%
StaticFile.__init__whitenoise/responders.py:742 ms6.1%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms6.1%
StaticFile.__init__whitenoise/responders.py:722 ms6.1%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms6.1%
__init____init__:-12 ms6.1%
FileEntry.__init__whitenoise/responders.py:2632 ms6.1%
FileEntry.stat_regular_filewhitenoise/responders.py:2762 ms6.1%
<GC>~2 ms6.1%
McpTest.test_get_test_not_foundapps/mcp/tests.py:2404 ms12.2%
McpTest.rpcapps/mcp/tests.py:754 ms12.2%
McpTest.postapps/mcp/tests.py:67 return self.client.post(4 ms12.2%
Client.postdjango/test/client.py:11534 ms12.2%
RequestFactory.postdjango/test/client.py:4994 ms12.2%
RequestFactory.genericdjango/test/client.py:6714 ms12.2%
Client.requestdjango/test/client.py:10824 ms12.2%
ClientHandler.__call__django/test/client.py:1864 ms12.2%
BaseHandler.get_responsedjango/core/handlers/base.py:1414 ms12.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms12.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1304 ms12.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms12.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms12.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms12.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1234 ms12.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms12.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms12.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms12.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms12.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms12.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms12.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms12.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms12.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms12.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms12.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms12.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms12.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms12.2%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:344 ms12.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms12.2%
BaseHandler._get_responsedjango/core/handlers/base.py:1984 ms12.2%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:654 ms12.2%
mcpapps/mcp/urls.py:1474 ms12.2%
handleapps/mcp/urls.py:1154 ms12.2%
call_toolapps/mcp/urls.py:754 ms12.2%
Tools.callapps/mcp/tools.py:1884 ms12.2%
Tools.get_testapps/mcp/tools.py:3024 ms12.2%
Tools.find_testapps/mcp/tools.py:288 test = tests.filter(name=nodeid).first()2 ms6.1%
QuerySet.firstdjango/db/models/query.py:11452 ms6.1%
QuerySet.__iter__django/db/models/query.py:3902 ms6.1%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms6.1%
ModelIterable.__iter__django/db/models/query.py:952 ms6.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms6.1%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms6.1%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:872 ms6.1%
SQLCompiler.get_order_bydjango/db/models/sql/compiler.py:4912 ms6.1%
SQLCompiler._order_by_pairsdjango/db/models/sql/compiler.py:3622 ms6.1%
Tools.find_testapps/mcp/tools.py:291 matches = list(tests.filter(name__contains=nodeid).order_by("name")[:11])2 ms6.1%
QuerySet.__iter__django/db/models/query.py:3902 ms6.1%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms6.1%
ModelIterable.__iter__django/db/models/query.py:952 ms6.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms6.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms6.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms6.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms6.1%
Cursor.executepsycopg/cursor.py:1132 ms6.1%
Connection.waitpsycopg/connection.py:4952 ms6.1%
TransactionTestCase._pre_setupdjango/test/testcases.py:1151 super()._pre_setup()2 ms6.1%
SimpleTestCase._pre_setupdjango/test/testcases.py:3852 ms6.1%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms6.1%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms6.1%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms6.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms6.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms6.1%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms6.1%
Cursor.executepsycopg/cursor.py:1132 ms6.1%
Connection.waitpsycopg/connection.py:4952 ms6.1%
Estimated from 16 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
|
14 ms |
|
apps/mcp/urls.py:55
project = Project.objects.filter(secrettokens__token=token).first()
authenticate
· Database
|
8 ms |
|
apps/mcp/tools.py:288
test = tests.filter(name=nodeid).first()
Tools.find_test
· Database
|
4 ms |
|
apps/mcp/tools.py:291
matches = list(tests.filter(name__contains=nodeid).order_by("name")[:11])
Tools.find_test
· Database
|
2 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.03 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.01 ms |
Database
13 queries · 3 ms
Repeated queries are usually N+1 lookups: fetch them once with select_related / prefetch_related (or selectinload).
4×
SELECT "projects_test"."id", "projects_test"."name", "projects_test"."project_id", "projects_test"."slug", "projects_test"."date_last_run", "projects_test"."date_first_seen", "projects_test"."first_commit_id", "projects_test"."muted" FROM "projects_test" WHERE ("projects_test"."project_id" = %s AND…
Biggest pieces of work
|
call test body
apps/mcp/tests.py:238
|
27 ms |
|
call _pre_setup
django/test/testcases.py:1151
|
2 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
2 ms |
Reliability
15 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 15 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 32 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 45 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 23 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 51 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 24 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 46 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 33 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 60 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 22 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 46 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 43 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 44 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 49 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 20 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 44 ms | Profile |