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

McpTest::test_list_flaky_tests

First seen 3 weeks ago in 78a4357
CI github-actions:test 12 runs
Average
55 ms
median 59 ms
max 78 ms
Phases
Setup 0.69 ms Call 54 ms Teardown 0.16 ms
Categories
Database 27 ms App code 1 ms Other (Libraries, Unsampled, pytest) 27 ms

23 database queries per run

Needs 120 KB of memory (max 292 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 16 hours ago · open run
Show pytest frames
call61 ms98.6%
McpTest.test_list_flaky_testsapps/mcp/tests.py:253 result = self.call("list_flaky_tests")48 ms78.8%
McpTest.callapps/mcp/tests.py:8248 ms78.8%
McpTest.rpcapps/mcp/tests.py:7548 ms78.8%
McpTest.postapps/mcp/tests.py:67 return self.client.post(48 ms78.8%
Client.postdjango/test/client.py:115348 ms78.8%
RequestFactory.postdjango/test/client.py:49948 ms78.8%
RequestFactory.genericdjango/test/client.py:67148 ms78.8%
Client.requestdjango/test/client.py:108248 ms78.8%
ClientHandler.__call__django/test/client.py:18624 ms39.4%
BaseHandler.get_responsedjango/core/handlers/base.py:14124 ms39.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms39.4%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13024 ms39.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms39.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30924 ms39.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms39.4%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12324 ms39.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms39.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30924 ms39.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms39.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30924 ms39.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms39.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30924 ms39.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms39.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30924 ms39.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms39.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30924 ms39.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms39.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30924 ms39.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms39.4%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3424 ms39.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5524 ms39.4%
BaseHandler._get_responsedjango/core/handlers/base.py:19824 ms39.4%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:6524 ms39.4%
mcpapps/mcp/urls.py:14724 ms39.4%
handleapps/mcp/urls.py:11524 ms39.4%
call_toolapps/mcp/urls.py:7524 ms39.4%
Tools.callapps/mcp/tools.py:18824 ms39.4%
Tools.list_flaky_testsapps/mcp/tools.py:41722 ms36.1%
flaky_reportapps/projects/flakiness.py:25322 ms36.1%
compute_flaky_reportapps/projects/flakiness.py:27222 ms36.1%
observations_forapps/projects/flakiness.py:186 perfs = list(perfs)22 ms36.1%
QuerySet.__iter__django/db/models/query.py:39022 ms36.1%
QuerySet._fetch_alldjango/db/models/query.py:200022 ms36.1%
ValuesListIterable.__iter__django/db/models/query.py:23822 ms36.1%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:157322 ms36.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162422 ms36.1%
CursorWrapper.executedjango/db/backends/utils.py:7922 ms36.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9222 ms36.1%
CursorWrapper._executedjango/db/backends/utils.py:10522 ms36.1%
Cursor.executepsycopg/cursor.py:11322 ms36.1%
Connection.waitpsycopg/connection.py:49522 ms36.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:20622 ms36.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28622 ms36.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7822 ms36.1%
Tools.list_flaky_testsapps/mcp/tools.py:4282 ms3.3%
Tools.urlapps/mcp/tools.py:1722 ms3.3%
Project.urlapps/projects/models.py:59 return reverse(name, args=[self.organization.slug, self.slug, *args])2 ms3.3%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2572 ms3.3%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2222 ms3.3%
QuerySet.getdjango/db/models/query.py:6352 ms3.3%
QuerySet.__len__django/db/models/query.py:3722 ms3.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.3%
ModelIterable.__iter__django/db/models/query.py:952 ms3.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms3.3%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms3.3%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms3.3%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms3.3%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:2552 ms3.3%
ClientHandler.__call__django/test/client.py:17324 ms39.4%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6224 ms39.4%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10424 ms39.4%
WhiteNoise.add_fileswhitenoise/base.py:10824 ms39.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12020 ms32.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13118 ms29.6%
WhiteNoise.get_static_filewhitenoise/base.py:20818 ms29.6%
StaticFile.__init__whitenoise/responders.py:7710 ms16.4%
StaticFile.get_alternativeswhitenoise/responders.py:2006 ms9.9%
__init____init__:-12 ms3.3%
Headers.__init__<stdlib>/wsgiref/headers.py:442 ms3.3%
StaticFile.get_alternativeswhitenoise/responders.py:2014 ms6.6%
StaticFile.__init__whitenoise/responders.py:734 ms6.6%
StaticFile.get_headerswhitenoise/responders.py:1762 ms3.3%
StaticFile.get_headerswhitenoise/responders.py:1782 ms3.3%
parsedate<stdlib>/email/_parseaddr.py:1852 ms3.3%
parsedate_tz<stdlib>/email/_parseaddr.py:502 ms3.3%
_parsedate_tz<stdlib>/email/_parseaddr.py:1612 ms3.3%
StaticFile.__init__whitenoise/responders.py:762 ms3.3%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms3.3%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms3.3%
Headers.get<stdlib>/wsgiref/headers.py:1042 ms3.3%
StaticFile.__init__whitenoise/responders.py:742 ms3.3%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms3.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1232 ms3.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms3.3%
scantreewhitenoise/base.py:2622 ms3.3%
scantreewhitenoise/base.py:2622 ms3.3%
scantreewhitenoise/base.py:2622 ms3.3%
scantreewhitenoise/base.py:2622 ms3.3%
scantreewhitenoise/base.py:2642 ms3.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1182 ms3.3%
McpTest.test_list_flaky_testsapps/mcp/tests.py:25912 ms19.7%
McpTest.callapps/mcp/tests.py:8212 ms19.7%
McpTest.rpcapps/mcp/tests.py:7512 ms19.7%
McpTest.postapps/mcp/tests.py:67 return self.client.post(12 ms19.7%
Client.postdjango/test/client.py:115312 ms19.7%
RequestFactory.postdjango/test/client.py:49912 ms19.7%
RequestFactory.genericdjango/test/client.py:67112 ms19.7%
Client.requestdjango/test/client.py:108212 ms19.7%
ClientHandler.__call__django/test/client.py:18612 ms19.7%
BaseHandler.get_responsedjango/core/handlers/base.py:14112 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5512 ms19.7%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13012 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5512 ms19.7%
MiddlewareMixin.__call__django/utils/deprecation.py:30912 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5512 ms19.7%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12312 ms19.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5512 ms19.7%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms16.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms16.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms16.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms16.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms16.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms16.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms16.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms16.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms16.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms16.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms16.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms16.4%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3410 ms16.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms16.4%
BaseHandler._get_responsedjango/core/handlers/base.py:19810 ms16.4%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:6510 ms16.4%
mcpapps/mcp/urls.py:1478 ms13.1%
handleapps/mcp/urls.py:1158 ms13.1%
call_toolapps/mcp/urls.py:758 ms13.1%
Tools.callapps/mcp/tools.py:1888 ms13.1%
Tools.list_flaky_testsapps/mcp/tools.py:4178 ms13.1%
flaky_reportapps/projects/flakiness.py:2536 ms9.9%
compute_flaky_reportapps/projects/flakiness.py:267 environments = list(Environment.objects.filter(project=project, kind=environment_kind))2 ms3.3%
QuerySet.__iter__django/db/models/query.py:3902 ms3.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.3%
ModelIterable.__iter__django/db/models/query.py:952 ms3.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.3%
compute_flaky_reportapps/projects/flakiness.py:2682 ms3.3%
failing_test_idsapps/projects/flakiness.py:202 ids = set(2 ms3.3%
QuerySet.__iter__django/db/models/query.py:3902 ms3.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.3%
FlatValuesListIterable.__iter__django/db/models/query.py:2772 ms3.3%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms3.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.3%
Cursor.executepsycopg/cursor.py:1132 ms3.3%
Connection.waitpsycopg/connection.py:4952 ms3.3%
compute_flaky_reportapps/projects/flakiness.py:2722 ms3.3%
observations_forapps/projects/flakiness.py:186 perfs = list(perfs)2 ms3.3%
flaky_reportapps/projects/flakiness.py:2502 ms3.3%
data_versionapps/projects/flakiness.py:229 profile = Profile.objects.filter(project=project).aggregate(latest=Max("date_processed"))["latest"]2 ms3.3%
QuerySet.aggregatedjango/db/models/query.py:5942 ms3.3%
Query.get_aggregationdjango/db/models/sql/query.py:6332 ms3.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.3%
Cursor.executepsycopg/cursor.py:1132 ms3.3%
Connection.waitpsycopg/connection.py:4952 ms3.3%
mcpapps/mcp/urls.py:1252 ms3.3%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()2 ms3.3%
QuerySet.firstdjango/db/models/query.py:11452 ms3.3%
QuerySet.__iter__django/db/models/query.py:3902 ms3.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.3%
ModelIterable.__iter__django/db/models/query.py:952 ms3.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3082 ms3.3%
SessionMiddleware.process_requestdjango/contrib/sessions/middleware.py:202 ms3.3%
__init____init__:-12 ms3.3%
SessionStore.__init__django/contrib/sessions/backends/db.py:182 ms3.3%
SessionBase.__init__django/contrib/sessions/backends/base.py:492 ms3.3%
import_stringdjango/utils/module_loading.py:302 ms3.3%
teardown0.19 ms0.3%
Estimated from 31 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/flakiness.py:186
perfs = list(perfs)
observations_for · Database
24 ms
apps/projects/models.py:59
return reverse(name, args=[self.organization.slug, self.slug, *args])
Project.url · Database
2 ms
apps/mcp/urls.py:55
project = Project.objects.filter(secrettokens__token=token).first()
authenticate · Database
2 ms
apps/projects/flakiness.py:229
profile = Profile.objects.filter(project=project).aggregate(latest=Max("date_processed"))["latest"]
data_version · Database
2 ms
apps/projects/flakiness.py:267
environments = list(Environment.objects.filter(project=project, kind=environment_kind))
compute_flaky_report · Database
2 ms
apps/projects/flakiness.py:202
ids = set(
failing_test_ids · Database
2 ms

Fixtures

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

Database

23 queries · 9 ms
No repeated queries.

Biggest pieces of work

call test body
apps/mcp/tests.py:253
61 ms
teardown pytest internals 0.19 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 61 ms e141198 main Profile
1 week, 5 days ago CI github-actions:test passed 36 ms 46ec2aa main Profile
2 weeks, 1 day ago CI github-actions:test passed 54 ms afde85b main Profile
2 weeks, 1 day ago CI github-actions:test passed 54 ms fe29f9d main Profile
2 weeks, 1 day ago CI github-actions:test passed 78 ms 044719a main Profile
2 weeks, 2 days ago CI github-actions:test passed 38 ms b3fedae main Profile
2 weeks, 4 days ago CI github-actions:test passed 61 ms 43c4eda main Profile
2 weeks, 6 days ago CI github-actions:test passed 59 ms 9caa567 main Profile
2 weeks, 6 days ago CI github-actions:test passed 59 ms ec75501 main Profile
3 weeks ago CI github-actions:test passed 64 ms d2c12e5 main Profile
3 weeks ago CI github-actions:test passed 32 ms 0b902f6 main Profile
3 weeks ago CI github-actions:test passed 62 ms 78a4357 main Profile