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

McpTest::test_initialized_notification

First seen 3 weeks ago in 78a4357
CI github-actions:test 12 runs
Average
35 ms
median 38 ms
max 56 ms
Phases
Setup 0.67 ms Call 34 ms Teardown 0.15 ms
Categories
Database 13 ms App code 0.16 ms Other (Libraries, pytest, Unsampled, Serialization, ...) 22 ms

7 database queries per run

Needs 54 KB of memory (max 544 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 16 hours ago · open run
Show pytest frames
call35 ms97.7%
McpTest.test_initialized_notificationapps/mcp/tests.py:105 response = self.post({"jsonrpc": "2.0", "method": "notifications/initialized"})31 ms85.5%
McpTest.postapps/mcp/tests.py:67 return self.client.post(31 ms85.5%
Client.postdjango/test/client.py:115331 ms85.5%
RequestFactory.postdjango/test/client.py:49931 ms85.5%
RequestFactory.genericdjango/test/client.py:67131 ms85.5%
Client.requestdjango/test/client.py:108229 ms79.4%
ClientHandler.__call__django/test/client.py:17324 ms67.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6224 ms67.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10422 ms61.1%
WhiteNoise.add_fileswhitenoise/base.py:10822 ms61.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12022 ms61.1%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13120 ms55.0%
WhiteNoise.get_static_filewhitenoise/base.py:20818 ms48.9%
StaticFile.__init__whitenoise/responders.py:777 ms18.3%
StaticFile.get_alternativeswhitenoise/responders.py:2007 ms18.3%
__init____init__:-17 ms18.3%
Headers.__init__<stdlib>/wsgiref/headers.py:367 ms18.3%
<GC>~7 ms18.3%
StaticFile.__init__whitenoise/responders.py:724 ms12.2%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms6.1%
__init____init__:-12 ms6.1%
FileEntry.__init__whitenoise/responders.py:2602 ms6.1%
<GC>~2 ms6.1%
StaticFile.get_file_statswhitenoise/responders.py:1632 ms6.1%
StaticFile.__init__whitenoise/responders.py:732 ms6.1%
StaticFile.get_headerswhitenoise/responders.py:1782 ms6.1%
parsedate<stdlib>/email/_parseaddr.py:1872 ms6.1%
WhiteNoise.get_static_filewhitenoise/base.py:2022 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:722 ms6.1%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms6.1%
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:1254 ms12.2%
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:16112 ms6.1%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7922 ms6.1%
SQLCompiler.get_from_clausedjango/db/models/sql/compiler.py:11592 ms6.1%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms6.1%
Join.as_sqldjango/db/models/sql/datastructures.py:882 ms6.1%
DatabaseOperations.prepare_join_on_clausedjango/db/backends/postgresql/operations.py:3992 ms6.1%
ForeignKey.db_typedjango/db/models/fields/related.py:12232 ms6.1%
authenticateapps/mcp/urls.py:57 SecretTokens.objects.filter(token=token).update(date_last_used=timezone.now())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%
Client.requestdjango/test/client.py:10702 ms6.1%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()4 ms12.2%
TestCase._fixture_teardowndjango/test/testcases.py:14942 ms6.1%
TestCase._should_check_constraintsdjango/test/testcases.py:15032 ms6.1%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:4922 ms6.1%
Cursor.executepsycopg/cursor.py:1132 ms6.1%
Connection.waitpsycopg/connection.py:4952 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
26 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.03 ms
_django_clear_site_cache function 0.03 ms
_django_set_urlconf 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:105
31 ms
call _post_teardown
django/test/testcases.py:1240
4 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 36 ms e141198 main Profile
1 week, 5 days ago CI github-actions:test passed 17 ms 46ec2aa main Profile
2 weeks, 1 day ago CI github-actions:test passed 40 ms afde85b main Profile
2 weeks, 1 day ago CI github-actions:test passed 32 ms fe29f9d main Profile
2 weeks, 1 day ago CI github-actions:test passed 56 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 43 ms 43c4eda main Profile
2 weeks, 6 days ago CI github-actions:test passed 41 ms 9caa567 main Profile
2 weeks, 6 days ago CI github-actions:test passed 42 ms ec75501 main Profile
3 weeks ago CI github-actions:test passed 42 ms d2c12e5 main Profile
3 weeks ago CI github-actions:test passed 17 ms 0b902f6 main Profile
3 weeks ago CI github-actions:test passed 36 ms 78a4357 main Profile