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

McpTest::test_list_memory_tests

First seen 3 weeks ago in 78a4357
CI github-actions:test 12 runs
Average
41 ms
median 44 ms
max 57 ms
Phases
Setup 0.66 ms Call 40 ms Teardown 0.16 ms
Categories
Database 14 ms App code 0.20 ms Other (Libraries, Unsampled, pytest) 27 ms

10 database queries per run

Needs 25 KB of memory (max 256 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 16 hours ago · open run
Show pytest frames
call44 ms98.1%
McpTest.test_list_memory_testsapps/mcp/tests.py:205 result = self.call("list_memory_tests", limit=5)39 ms86.6%
McpTest.callapps/mcp/tests.py:8239 ms86.6%
McpTest.rpcapps/mcp/tests.py:7539 ms86.6%
McpTest.postapps/mcp/tests.py:67 return self.client.post(39 ms86.6%
Client.postdjango/test/client.py:115339 ms86.6%
RequestFactory.postdjango/test/client.py:49939 ms86.6%
RequestFactory.genericdjango/test/client.py:67139 ms86.6%
Client.requestdjango/test/client.py:108239 ms86.6%
ClientHandler.__call__django/test/client.py:17326 ms57.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6226 ms57.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10426 ms57.7%
WhiteNoise.add_fileswhitenoise/base.py:10824 ms51.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12021 ms46.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13121 ms46.2%
WhiteNoise.get_static_filewhitenoise/base.py:20816 ms34.6%
StaticFile.__init__whitenoise/responders.py:745 ms11.5%
parsedate<stdlib>/email/_parseaddr.py:1855 ms11.5%
StaticFile.__init__whitenoise/responders.py:775 ms11.5%
StaticFile.get_alternativeswhitenoise/responders.py:2005 ms11.5%
__init____init__:-13 ms5.8%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:503 ms5.8%
StaticFile.__init__whitenoise/responders.py:763 ms5.8%
StaticFile.__init__whitenoise/responders.py:733 ms5.8%
StaticFile.get_headerswhitenoise/responders.py:1763 ms5.8%
formatdate<stdlib>/email/utils.py:2663 ms5.8%
WhiteNoise.get_static_filewhitenoise/base.py:2035 ms11.5%
WhiteNoise.add_cache_headerswhitenoise/base.py:2245 ms11.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms5.8%
scantreewhitenoise/base.py:2623 ms5.8%
scantreewhitenoise/base.py:2623 ms5.8%
scantreewhitenoise/base.py:2623 ms5.8%
scantreewhitenoise/base.py:2623 ms5.8%
scantreewhitenoise/base.py:2623 ms5.8%
scantreewhitenoise/base.py:2603 ms5.8%
ClientHandler.__call__django/test/client.py:18613 ms28.9%
BaseHandler.get_responsedjango/core/handlers/base.py:14113 ms28.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms28.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13013 ms28.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms28.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30913 ms28.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms28.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12313 ms28.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms28.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30913 ms28.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms28.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30913 ms28.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms28.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30913 ms28.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms28.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30913 ms28.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms28.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30913 ms28.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms28.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30913 ms28.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms28.9%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3413 ms28.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms28.9%
BaseHandler._get_responsedjango/core/handlers/base.py:19813 ms28.9%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:6513 ms28.9%
mcpapps/mcp/urls.py:14713 ms28.9%
handleapps/mcp/urls.py:11513 ms28.9%
call_toolapps/mcp/urls.py:7513 ms28.9%
Tools.callapps/mcp/tools.py:18813 ms28.9%
Tools.list_memory_testsapps/mcp/tools.py:26913 ms28.9%
memory_testsapps/projects/analytics.py:518 scope.perf()8 ms17.3%
QuerySet.__iter__django/db/models/query.py:3908 ms17.3%
QuerySet._fetch_alldjango/db/models/query.py:20008 ms17.3%
ModelIterable.__iter__django/db/models/query.py:958 ms17.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16118 ms17.3%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7678 ms17.3%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:875 ms11.5%
SQLCompiler.get_order_bydjango/db/models/sql/compiler.py:4913 ms5.8%
SQLCompiler._order_by_pairsdjango/db/models/sql/compiler.py:4743 ms5.8%
SQLCompiler.get_order_bydjango/db/models/sql/compiler.py:4923 ms5.8%
BaseExpression.resolve_expressiondjango/db/models/expressions.py:2973 ms5.8%
BaseExpression.copydjango/db/models/expressions.py:4443 ms5.8%
copy<stdlib>/copy.py:1003 ms5.8%
_reconstruct<stdlib>/copy.py:2633 ms5.8%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:863 ms5.8%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:753 ms5.8%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:2553 ms5.8%
memory_testsapps/projects/analytics.py:519 .filter(test_id__in=[row["test_id"] for row in rows], memory_peak__isnull=False)5 ms11.5%
QuerySet.filterdjango/db/models/query.py:15425 ms11.5%
QuerySet._filter_or_excludedjango/db/models/query.py:15605 ms11.5%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15705 ms11.5%
Query.add_qdjango/db/models/sql/query.py:16715 ms11.5%
Query._add_qdjango/db/models/sql/query.py:17035 ms11.5%
Query.build_filterdjango/db/models/sql/query.py:15733 ms5.8%
Query.get_initial_aliasdjango/db/models/sql/query.py:11143 ms5.8%
Query.build_filterdjango/db/models/sql/query.py:16133 ms5.8%
Query.build_lookupdjango/db/models/sql/query.py:14303 ms5.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()5 ms11.5%
TestCase._fixture_teardowndjango/test/testcases.py:14943 ms5.8%
TestCase._should_check_constraintsdjango/test/testcases.py:15033 ms5.8%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:4923 ms5.8%
Cursor.executepsycopg/cursor.py:1133 ms5.8%
Connection.waitpsycopg/connection.py:4953 ms5.8%
TestCase._fixture_teardowndjango/test/testcases.py:14953 ms5.8%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4833 ms5.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms5.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms5.8%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms5.8%
Cursor.executepsycopg/cursor.py:1133 ms5.8%
Connection.waitpsycopg/connection.py:4953 ms5.8%
Estimated from 17 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
26 ms
apps/projects/analytics.py:518
scope.perf()
memory_tests · Database
8 ms
apps/projects/analytics.py:519
.filter(test_id__in=[row["test_id"] for row in rows], memory_peak__isnull=False)
memory_tests · Database
5 ms

Fixtures

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

Database

10 queries · 5 ms
No repeated queries.

Biggest pieces of work

call test body
apps/mcp/tests.py:205
39 ms
call _post_teardown
django/test/testcases.py:1240
5 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 21 ms 46ec2aa main Profile
2 weeks, 1 day ago CI github-actions:test passed 43 ms afde85b main Profile
2 weeks, 1 day ago CI github-actions:test passed 38 ms fe29f9d main Profile
2 weeks, 1 day ago CI github-actions:test passed 55 ms 044719a main Profile
2 weeks, 2 days ago CI github-actions:test passed 25 ms b3fedae main Profile
2 weeks, 4 days ago CI github-actions:test passed 45 ms 43c4eda main Profile
2 weeks, 6 days ago CI github-actions:test passed 44 ms 9caa567 main Profile
2 weeks, 6 days ago CI github-actions:test passed 43 ms ec75501 main Profile
3 weeks ago CI github-actions:test passed 57 ms d2c12e5 main Profile
3 weeks ago CI github-actions:test passed 24 ms 0b902f6 main Profile
3 weeks ago CI github-actions:test passed 47 ms 78a4357 main Profile