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

McpTest::test_tools_list

First seen 3 weeks ago in 78a4357
CI github-actions:test 12 runs
Average
35 ms
median 41 ms
max 49 ms
Phases
Setup 0.68 ms Call 35 ms Teardown 0.16 ms
Categories
Database 7 ms Other (Libraries, pytest, Unsampled, Cache) 29 ms

7 database queries per run

Needs 53 KB of memory (max 632 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 16 hours ago · open run
Show pytest frames
setup0.69 ms1.5%
call44 ms98.1%
McpTest.test_tools_listapps/mcp/tests.py:113 tools = self.rpc("tools/list")["result"]["tools"]40 ms88.0%
McpTest.rpcapps/mcp/tests.py:7540 ms88.0%
McpTest.postapps/mcp/tests.py:67 return self.client.post(40 ms88.0%
Client.postdjango/test/client.py:115340 ms88.0%
RequestFactory.postdjango/test/client.py:49940 ms88.0%
RequestFactory.genericdjango/test/client.py:67140 ms88.0%
Client.requestdjango/test/client.py:108240 ms88.0%
ClientHandler.__call__django/test/client.py:17337 ms81.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6237 ms81.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10437 ms81.2%
WhiteNoise.add_fileswhitenoise/base.py:10837 ms81.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12034 ms74.4%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13134 ms74.4%
WhiteNoise.get_static_filewhitenoise/base.py:20832 ms71.1%
StaticFile.__init__whitenoise/responders.py:7228 ms60.9%
StaticFile.get_file_statswhitenoise/responders.py:16128 ms60.9%
__init____init__:-128 ms60.9%
FileEntry.__init__whitenoise/responders.py:26328 ms60.9%
FileEntry.stat_regular_filewhitenoise/responders.py:27628 ms60.9%
<GC>~28 ms60.9%
StaticFile.__init__whitenoise/responders.py:733 ms6.8%
StaticFile.get_headerswhitenoise/responders.py:1762 ms3.4%
formatdate<stdlib>/email/utils.py:2662 ms3.4%
StaticFile.get_headerswhitenoise/responders.py:1672 ms3.4%
StaticFile.__init__whitenoise/responders.py:772 ms3.4%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms3.4%
__init____init__:-12 ms3.4%
Headers.__init__<stdlib>/wsgiref/headers.py:442 ms3.4%
WhiteNoise.get_static_filewhitenoise/base.py:2032 ms3.4%
WhiteNoise.add_cache_headerswhitenoise/base.py:2272 ms3.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms6.8%
scantreewhitenoise/base.py:2623 ms6.8%
scantreewhitenoise/base.py:2623 ms6.8%
scantreewhitenoise/base.py:2622 ms3.4%
scantreewhitenoise/base.py:2622 ms3.4%
scantreewhitenoise/base.py:2622 ms3.4%
scantreewhitenoise/base.py:2642 ms3.4%
scantreewhitenoise/base.py:2602 ms3.4%
ClientHandler.__call__django/test/client.py:1863 ms6.8%
BaseHandler.get_responsedjango/core/handlers/base.py:1413 ms6.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms6.8%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1303 ms6.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms6.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms6.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms6.8%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1233 ms6.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms6.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms6.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms6.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms6.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms6.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms6.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms6.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms6.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms6.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms6.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms6.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms6.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms6.8%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:343 ms6.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms6.8%
BaseHandler._get_responsedjango/core/handlers/base.py:1983 ms6.8%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:653 ms6.8%
mcpapps/mcp/urls.py:1253 ms6.8%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()2 ms3.4%
QuerySet.firstdjango/db/models/query.py:11452 ms3.4%
QuerySet.__iter__django/db/models/query.py:3902 ms3.4%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.4%
ModelIterable.__iter__django/db/models/query.py:952 ms3.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.4%
Cursor.executepsycopg/cursor.py:1132 ms3.4%
Connection.waitpsycopg/connection.py:4952 ms3.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.4%
authenticateapps/mcp/urls.py:57 SecretTokens.objects.filter(token=token).update(date_last_used=timezone.now())2 ms3.4%
QuerySet.updatedjango/db/models/query.py:13002 ms3.4%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms3.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.4%
Cursor.executepsycopg/cursor.py:1132 ms3.4%
Connection.waitpsycopg/connection.py:4952 ms3.4%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()3 ms6.8%
TestCase._fixture_teardowndjango/test/testcases.py:14943 ms6.8%
TestCase._should_check_constraintsdjango/test/testcases.py:15002 ms3.4%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms3.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.4%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms3.4%
Cursor.executepsycopg/cursor.py:1132 ms3.4%
Connection.waitpsycopg/connection.py:4952 ms3.4%
TransactionTestCase._pre_setupdjango/test/testcases.py:1164 cls._fixture_setup()2 ms3.4%
TestCase._fixture_setupdjango/test/testcases.py:14782 ms3.4%
TestCase._enter_atomicsdjango/test/testcases.py:13962 ms3.4%
Atomic.__enter__django/db/transaction.py:2112 ms3.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms3.4%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms3.4%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms3.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.4%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms3.4%
Cursor.executepsycopg/cursor.py:1132 ms3.4%
Connection.waitpsycopg/connection.py:4952 ms3.4%
Estimated from 30 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
37 ms
apps/mcp/urls.py:55
project = Project.objects.filter(secrettokens__token=token).first()
authenticate · Database
2 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
_django_db_marker function 0.04 ms
_template_string_if_invalid_marker function 0.04 ms
_django_set_urlconf function 0.03 ms
_django_clear_site_cache function 0.03 ms
_live_server_helper function 0.03 ms
monkeypatch function 0.02 ms

Database

7 queries · 3 ms
No repeated queries.

Biggest pieces of work

call test body
apps/mcp/tests.py:113
40 ms
call _post_teardown
django/test/testcases.py:1240
3 ms
call _pre_setup
django/test/testcases.py:1164
2 ms

Reliability

12 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 12 results, oldest first in the strip
When Environment Outcome Duration Commit
16 hours ago CI github-actions:test passed 45 ms e141198 main Profile
1 week, 5 days ago CI github-actions:test passed 20 ms 46ec2aa main Profile
2 weeks, 1 day ago CI github-actions:test passed 42 ms afde85b main Profile
2 weeks, 1 day ago CI github-actions:test passed 25 ms fe29f9d main Profile
2 weeks, 1 day ago CI github-actions:test passed 49 ms 044719a main Profile
2 weeks, 2 days ago CI github-actions:test passed 18 ms b3fedae main Profile
2 weeks, 4 days ago CI github-actions:test passed 44 ms 43c4eda main Profile
2 weeks, 6 days ago CI github-actions:test passed 43 ms 9caa567 main Profile
2 weeks, 6 days ago CI github-actions:test passed 41 ms ec75501 main Profile
3 weeks ago CI github-actions:test passed 41 ms d2c12e5 main Profile
3 weeks ago CI github-actions:test passed 19 ms 0b902f6 main Profile
3 weeks ago CI github-actions:test passed 37 ms 78a4357 main Profile