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

McpTest::test_batch

First seen 9 hours ago in 78a4357
CI github-actions:test 5 runs
Average
35 ms
median 38 ms
max 42 ms
Phases
Setup 0.75 ms Call 34 ms Teardown 0.17 ms
Categories
Database 7 ms Other (Libraries, Unsampled, pytest) 28 ms

7 database queries per run

Needs 0 KB of memory (max 0 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 hours ago · open run
Hide pytest frames
call39 ms97.8%
CallInfo.from_call_pytest/runner.py:35339 ms97.8%
call_and_report.<locals>.<lambda>_pytest/runner.py:24539 ms97.8%
HookCaller.__call__pluggy/_hooks.py:51239 ms97.8%
PluginManager._hookexecpluggy/_manager.py:12039 ms97.8%
_multicallpluggy/_callers.py:12139 ms97.8%
pytest_runtest_call_pytest/runner.py:17939 ms97.8%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:57339 ms97.8%
SimpleTestCase.__call__django/test/testcases.py:31339 ms97.8%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36834 ms85.6%
TestCase.__call__<stdlib>/unittest/case.py:74734 ms85.6%
TestCase.run<stdlib>/unittest/case.py:69134 ms85.6%
TestCase._callTestMethod<stdlib>/unittest/case.py:63734 ms85.6%
McpTest.test_batchapps/mcp/tests.py:151 response = self.post(34 ms85.6%
McpTest.postapps/mcp/tests.py:66 return self.client.post(34 ms85.6%
Client.postdjango/test/client.py:115334 ms85.6%
RequestFactory.postdjango/test/client.py:49934 ms85.6%
RequestFactory.genericdjango/test/client.py:67134 ms85.6%
Client.requestdjango/test/client.py:108234 ms85.6%
ClientHandler.__call__django/test/client.py:17332 ms79.5%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6232 ms79.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10429 ms73.3%
WhiteNoise.add_fileswhitenoise/base.py:10829 ms73.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12024 ms61.1%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13124 ms61.1%
WhiteNoise.get_static_filewhitenoise/base.py:20819 ms48.9%
StaticFile.__init__whitenoise/responders.py:777 ms18.3%
StaticFile.get_alternativeswhitenoise/responders.py:2007 ms18.3%
__init____init__:-12 ms6.1%
StaticFile.__init__whitenoise/responders.py:765 ms12.2%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1895 ms12.2%
StaticFile.__init__whitenoise/responders.py:725 ms12.2%
StaticFile.get_file_statswhitenoise/responders.py:1615 ms12.2%
__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%
StaticFile.__init__whitenoise/responders.py:742 ms6.1%
parsedate<stdlib>/email/_parseaddr.py:1852 ms6.1%
WhiteNoise.get_static_filewhitenoise/base.py:2035 ms12.2%
WhiteNoise.add_cache_headerswhitenoise/base.py:2245 ms12.2%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1765 ms12.2%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1975 ms12.2%
URLMixin.urldebug_toolbar/panels/staticfiles.py:205 ms12.2%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2052 ms6.1%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1862 ms6.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms12.2%
scantreewhitenoise/base.py:2625 ms12.2%
scantreewhitenoise/base.py:2625 ms12.2%
scantreewhitenoise/base.py:2625 ms12.2%
scantreewhitenoise/base.py:2625 ms12.2%
scantreewhitenoise/base.py:2622 ms6.1%
scantreewhitenoise/base.py:2642 ms6.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1112 ms6.1%
WhiteNoise.add_fileswhitenoise/base.py:1082 ms6.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1202 ms6.1%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1312 ms6.1%
WhiteNoise.get_static_filewhitenoise/base.py:2082 ms6.1%
StaticFile.__init__whitenoise/responders.py:732 ms6.1%
StaticFile.get_headerswhitenoise/responders.py:1762 ms6.1%
ClientHandler.__call__django/test/client.py:1862 ms6.1%
BaseHandler.get_responsedjango/core/handlers/base.py:1412 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1302 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1232 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:342 ms6.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms6.1%
BaseHandler._get_responsedjango/core/handlers/base.py:1982 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%
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%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 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%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3715 ms12.2%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()5 ms12.2%
TestCase._fixture_teardowndjango/test/testcases.py:14955 ms12.2%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4835 ms12.2%
CursorWrapper.executedjango/db/backends/utils.py:795 ms12.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms12.2%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1005 ms12.2%
CursorWrapper._executedjango/db/backends/utils.py:1035 ms12.2%
Cursor.executepsycopg/cursor.py:1135 ms12.2%
Connection.waitpsycopg/connection.py:4955 ms12.2%
Estimated from 16 samples; phase durations are exact. Frames from pytest and pluggy are shown .

Hot lines in your code

apps/mcp/tests.py:66
return self.client.post(
McpTest.post · Libraries
32 ms
apps/mcp/urls.py:55
project = Project.objects.filter(secrettokens__token=token).first()
authenticate · Database
2 ms

Fixtures

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

Database

7 queries · 4 ms
No repeated queries.

Biggest pieces of work

call test body
apps/mcp/tests.py:151
34 ms
call _post_teardown
django/test/testcases.py:1240
5 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 5 results, oldest first in the strip
When Environment Outcome Duration Commit
2 hours ago CI github-actions:test passed 40 ms 9caa567 main Profile
2 hours ago CI github-actions:test passed 38 ms ec75501 main Profile
9 hours ago CI github-actions:test passed 42 ms d2c12e5 main Profile
9 hours ago CI github-actions:test passed 19 ms 0b902f6 main Profile
9 hours ago CI github-actions:test passed 37 ms 78a4357 main Profile