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

McpTest::test_list_runs

First seen 1 month, 1 week ago in 78a4357
CI github-actions:test 15 runs
Average
50 ms
median 56 ms
max 64 ms
Phases
Setup 0.64 ms Call 49 ms Teardown 0.15 ms
Categories
Database 26 ms App code 1 ms Other (Libraries, Unsampled, pytest, Serialization) 22 ms

17 database queries per run

Needs 100 KB of memory (max 612 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call43 ms98.5%
McpTest.test_list_runsapps/mcp/tests.py:271 result = self.call("list_runs", limit=2)32 ms73.8%
McpTest.callapps/mcp/tests.py:8232 ms73.8%
McpTest.rpcapps/mcp/tests.py:7532 ms73.8%
McpTest.postapps/mcp/tests.py:67 return self.client.post(32 ms73.8%
Client.postdjango/test/client.py:115332 ms73.8%
RequestFactory.postdjango/test/client.py:49932 ms73.8%
RequestFactory.genericdjango/test/client.py:67132 ms73.8%
Client.requestdjango/test/client.py:108232 ms73.8%
ClientHandler.__call__django/test/client.py:17323 ms54.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6223 ms54.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10423 ms54.2%
WhiteNoise.add_fileswhitenoise/base.py:10823 ms54.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12021 ms49.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13121 ms49.2%
WhiteNoise.get_static_filewhitenoise/base.py:20817 ms39.4%
StaticFile.__init__whitenoise/responders.py:736 ms14.8%
StaticFile.get_headerswhitenoise/responders.py:1764 ms9.8%
formatdate<stdlib>/email/utils.py:2662 ms4.9%
StaticFile.get_headerswhitenoise/responders.py:1782 ms4.9%
parsedate<stdlib>/email/_parseaddr.py:1852 ms4.9%
StaticFile.__init__whitenoise/responders.py:776 ms14.8%
StaticFile.get_alternativeswhitenoise/responders.py:2006 ms14.8%
__init____init__:-16 ms14.8%
Headers.__init__<stdlib>/wsgiref/headers.py:366 ms14.8%
<GC>~6 ms14.8%
StaticFile.__init__whitenoise/responders.py:722 ms4.9%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms4.9%
__init____init__:-12 ms4.9%
FileEntry.__init__whitenoise/responders.py:2602 ms4.9%
<GC>~2 ms4.9%
WhiteNoise.get_static_filewhitenoise/base.py:2024 ms9.8%
WhiteNoise.add_mime_headerswhitenoise/base.py:2212 ms4.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms4.9%
ClientHandler.__call__django/test/client.py:1869 ms19.7%
BaseHandler.get_responsedjango/core/handlers/base.py:1419 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms19.7%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1309 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms19.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms19.7%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1239 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms19.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms19.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms19.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms19.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms19.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms19.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms19.7%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:349 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms19.7%
BaseHandler._get_responsedjango/core/handlers/base.py:1989 ms19.7%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:659 ms19.7%
mcpapps/mcp/urls.py:1476 ms14.8%
handleapps/mcp/urls.py:1156 ms14.8%
call_toolapps/mcp/urls.py:754 ms9.8%
Tools.callapps/mcp/tools.py:1884 ms9.8%
Tools.list_runsapps/mcp/tools.py:471 scope.profiles().select_related("commit").defer("summary", "insights").order_by("-started_at")[:limit]2 ms4.9%
QuerySet.__iter__django/db/models/query.py:3902 ms4.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.9%
ModelIterable.__iter__django/db/models/query.py:1282 ms4.9%
Model.from_dbdjango/db/models/base.py:6052 ms4.9%
Tools.list_runsapps/mcp/tools.py:495 for session in sessions:2 ms4.9%
QuerySet.__iter__django/db/models/query.py:3902 ms4.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.9%
ModelIterable.__iter__django/db/models/query.py:952 ms4.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.9%
Cursor.executepsycopg/cursor.py:1132 ms4.9%
Connection.waitpsycopg/connection.py:4952 ms4.9%
call_toolapps/mcp/urls.py:802 ms4.9%
as_textapps/mcp/tools.py:511 return json.dumps(result, separators=(",", ":"), ensure_ascii=False, default=str)2 ms4.9%
dumps<stdlib>/json/__init__.py:2412 ms4.9%
JSONEncoder.encode<stdlib>/json/encoder.py:2022 ms4.9%
JSONEncoder.iterencode<stdlib>/json/encoder.py:2632 ms4.9%
mcpapps/mcp/urls.py:1252 ms4.9%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()2 ms4.9%
QuerySet.firstdjango/db/models/query.py:11452 ms4.9%
QuerySet.__iter__django/db/models/query.py:3902 ms4.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.9%
ModelIterable.__iter__django/db/models/query.py:952 ms4.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms4.9%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7922 ms4.9%
SQLCompiler.get_from_clausedjango/db/models/sql/compiler.py:11592 ms4.9%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms4.9%
Join.as_sqldjango/db/models/sql/datastructures.py:882 ms4.9%
DatabaseOperations.prepare_join_on_clausedjango/db/backends/postgresql/operations.py:3992 ms4.9%
McpTest.test_list_runsapps/mcp/tests.py:2756 ms14.8%
McpTest.callapps/mcp/tests.py:826 ms14.8%
McpTest.rpcapps/mcp/tests.py:756 ms14.8%
McpTest.postapps/mcp/tests.py:67 return self.client.post(6 ms14.8%
Client.postdjango/test/client.py:11536 ms14.8%
RequestFactory.postdjango/test/client.py:4996 ms14.8%
RequestFactory.genericdjango/test/client.py:6716 ms14.8%
Client.requestdjango/test/client.py:10826 ms14.8%
ClientHandler.__call__django/test/client.py:1866 ms14.8%
BaseHandler.get_responsedjango/core/handlers/base.py:1416 ms14.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms14.8%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1306 ms14.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms14.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms14.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms14.8%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1236 ms14.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms14.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms14.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms14.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms14.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms14.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms14.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms14.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms14.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms14.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms14.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms14.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms14.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms14.8%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:346 ms14.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms14.8%
BaseHandler._get_responsedjango/core/handlers/base.py:1986 ms14.8%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:656 ms14.8%
mcpapps/mcp/urls.py:1474 ms9.8%
handleapps/mcp/urls.py:1154 ms9.8%
call_toolapps/mcp/urls.py:754 ms9.8%
Tools.callapps/mcp/tools.py:1884 ms9.8%
Tools.list_runsapps/mcp/tools.py:471 scope.profiles().select_related("commit").defer("summary", "insights").order_by("-started_at")[:limit]2 ms4.9%
QuerySet.__iter__django/db/models/query.py:3902 ms4.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.9%
ModelIterable.__iter__django/db/models/query.py:952 ms4.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.9%
Tools.list_runsapps/mcp/tools.py:495 for session in sessions:2 ms4.9%
QuerySet.__iter__django/db/models/query.py:3902 ms4.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.9%
ModelIterable.__iter__django/db/models/query.py:952 ms4.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.9%
Cursor.executepsycopg/cursor.py:1132 ms4.9%
Connection.waitpsycopg/connection.py:4952 ms4.9%
mcpapps/mcp/urls.py:1252 ms4.9%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()2 ms4.9%
QuerySet.firstdjango/db/models/query.py:11452 ms4.9%
QuerySet.__iter__django/db/models/query.py:3902 ms4.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.9%
ModelIterable.__iter__django/db/models/query.py:952 ms4.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.9%
Cursor.executepsycopg/cursor.py:1132 ms4.9%
Connection.waitpsycopg/connection.py:4952 ms4.9%
TransactionTestCase._pre_setupdjango/test/testcases.py:1164 cls._fixture_setup()2 ms4.9%
TestCase._fixture_setupdjango/test/testcases.py:14782 ms4.9%
TestCase._enter_atomicsdjango/test/testcases.py:13962 ms4.9%
Atomic.__enter__django/db/transaction.py:2112 ms4.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.9%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms4.9%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms4.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.9%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms4.9%
Cursor.executepsycopg/cursor.py:1132 ms4.9%
Connection.waitpsycopg/connection.py:4952 ms4.9%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms4.9%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms4.9%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4842 ms4.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.9%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms4.9%
Cursor.executepsycopg/cursor.py:1132 ms4.9%
Connection.waitpsycopg/connection.py:4952 ms4.9%
Estimated from 20 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/mcp/urls.py:55
project = Project.objects.filter(secrettokens__token=token).first()
authenticate · Database
4 ms
apps/mcp/tools.py:471
scope.profiles().select_related("commit").defer("summary", "insights").order_by("-started_at")[:limit]
Tools.list_runs · Database
4 ms
apps/mcp/tools.py:495
for session in sessions:
Tools.list_runs · Database
4 ms
apps/mcp/tools.py:511
return json.dumps(result, separators=(",", ":"), ensure_ascii=False, default=str)
as_text · Serialization
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.02 ms

Database

17 queries · 7 ms
No repeated queries.

Biggest pieces of work

call test body
apps/mcp/tests.py:271
38 ms
call _pre_setup
django/test/testcases.py:1164
2 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 43 ms cb18ed3 main Profile
2 weeks, 4 days ago CI github-actions:test passed 64 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 34 ms 19dac9b main Profile
3 weeks ago CI github-actions:test passed 59 ms e141198 main Profile
1 month ago CI github-actions:test passed 28 ms 46ec2aa main Profile
1 month ago CI github-actions:test passed 52 ms afde85b main Profile
1 month ago CI github-actions:test passed 48 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 61 ms 044719a main Profile
1 month ago CI github-actions:test passed 31 ms b3fedae main Profile
1 month, 1 week ago CI github-actions:test passed 62 ms 43c4eda main Profile
1 month, 1 week ago CI github-actions:test passed 60 ms 9caa567 main Profile
1 month, 1 week ago CI github-actions:test passed 58 ms ec75501 main Profile
1 month, 1 week ago CI github-actions:test passed 61 ms d2c12e5 main Profile
1 month, 1 week ago CI github-actions:test passed 30 ms 0b902f6 main Profile
1 month, 1 week ago CI github-actions:test passed 56 ms 78a4357 main Profile