CI
github-actions:test
15 runs
Average
53 ms
median 59 ms
max 78 ms
max 78 ms
Phases
Setup 0.65 ms
Call 52 ms
Teardown 0.15 ms
Categories
Database 28 ms
App code 1 ms
Other (Libraries, Unsampled, pytest) 24 ms
23 database queries per run
Needs 96 KB of memory (max 292 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup0.57 ms1.3%
call44 ms98.4%
McpTest.test_list_flaky_testsapps/mcp/tests.py:253 result = self.call("list_flaky_tests")31 ms69.7%
McpTest.callapps/mcp/tests.py:8231 ms69.7%
McpTest.rpcapps/mcp/tests.py:7531 ms69.7%
McpTest.postapps/mcp/tests.py:67 return self.client.post(31 ms69.7%
Client.postdjango/test/client.py:115331 ms69.7%
RequestFactory.postdjango/test/client.py:49931 ms69.7%
RequestFactory.genericdjango/test/client.py:67131 ms69.7%
Client.requestdjango/test/client.py:108231 ms69.7%
ClientHandler.__call__django/test/client.py:17320 ms45.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6218 ms41.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10418 ms41.0%
WhiteNoise.add_fileswhitenoise/base.py:10818 ms41.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12015 ms32.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13113 ms28.7%
WhiteNoise.get_static_filewhitenoise/base.py:2037 ms16.4%
WhiteNoise.add_cache_headerswhitenoise/base.py:2247 ms16.4%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1764 ms8.2%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1974 ms8.2%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms4.1%
WhiteNoise.get_static_filewhitenoise/base.py:2086 ms12.3%
StaticFile.__init__whitenoise/responders.py:772 ms4.1%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms4.1%
StaticFile.__init__whitenoise/responders.py:732 ms4.1%
StaticFile.get_headerswhitenoise/responders.py:1762 ms4.1%
formatdate<stdlib>/email/utils.py:2662 ms4.1%
format_datetime<stdlib>/email/utils.py:2842 ms4.1%
StaticFile.__init__whitenoise/responders.py:742 ms4.1%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms4.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms8.2%
scantreewhitenoise/base.py:2624 ms8.2%
scantreewhitenoise/base.py:2624 ms8.2%
scantreewhitenoise/base.py:2642 ms4.1%
scantreewhitenoise/base.py:2622 ms4.1%
scantreewhitenoise/base.py:2622 ms4.1%
scantreewhitenoise/base.py:2622 ms4.1%
scantreewhitenoise/base.py:2642 ms4.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:962 ms4.1%
convert_exception_to_responsedjango/core/handlers/exception.py:522 ms4.1%
update_wrapper<stdlib>/functools.py:562 ms4.1%
ClientHandler.__call__django/test/client.py:18611 ms24.6%
BaseHandler.get_responsedjango/core/handlers/base.py:14111 ms24.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms24.6%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13011 ms24.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms24.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms24.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms24.6%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12311 ms24.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms24.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms24.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms24.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms24.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms24.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms24.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms24.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms24.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms24.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms24.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms24.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30911 ms24.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms24.6%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3411 ms24.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5511 ms24.6%
BaseHandler._get_responsedjango/core/handlers/base.py:19811 ms24.6%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:6511 ms24.6%
mcpapps/mcp/urls.py:1479 ms20.5%
handleapps/mcp/urls.py:1159 ms20.5%
call_toolapps/mcp/urls.py:759 ms20.5%
Tools.callapps/mcp/tools.py:1889 ms20.5%
Tools.list_flaky_testsapps/mcp/tools.py:4189 ms20.5%
flaky_reportapps/projects/flakiness.py:2537 ms16.4%
compute_flaky_reportapps/projects/flakiness.py:2684 ms8.2%
failing_test_idsapps/projects/flakiness.py:202 ids = set(2 ms4.1%
QuerySet.__iter__django/db/models/query.py:3902 ms4.1%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.1%
FlatValuesListIterable.__iter__django/db/models/query.py:2772 ms4.1%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms4.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.1%
Cursor.executepsycopg/cursor.py:1132 ms4.1%
Connection.waitpsycopg/connection.py:4952 ms4.1%
failing_test_idsapps/projects/flakiness.py:212 ids |= set(2 ms4.1%
QuerySet.__iter__django/db/models/query.py:3902 ms4.1%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.1%
FlatValuesListIterable.__iter__django/db/models/query.py:2772 ms4.1%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms4.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.1%
Cursor.executepsycopg/cursor.py:1132 ms4.1%
Connection.waitpsycopg/connection.py:4952 ms4.1%
compute_flaky_reportapps/projects/flakiness.py:2724 ms8.2%
observations_forapps/projects/flakiness.py:186 perfs = list(perfs)2 ms4.1%
QuerySet.__iter__django/db/models/query.py:3902 ms4.1%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.1%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms4.1%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms4.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.1%
Cursor.executepsycopg/cursor.py:1132 ms4.1%
Connection.waitpsycopg/connection.py:4952 ms4.1%
observations_forapps/projects/flakiness.py:189 for row in Profile.objects.filter(id__in={row[3] for row in perfs}).values_list(2 ms4.1%
QuerySet.__iter__django/db/models/query.py:3902 ms4.1%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.1%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms4.1%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms4.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16622 ms4.1%
cursor_iterdjango/db/models/sql/compiler.py:22542 ms4.1%
flaky_reportapps/projects/flakiness.py:2502 ms4.1%
data_versionapps/projects/flakiness.py:228 ingest = Ingest.objects.filter(project=project).aggregate(latest=Max("id"))["latest"]2 ms4.1%
QuerySet.aggregatedjango/db/models/query.py:5942 ms4.1%
Query.get_aggregationdjango/db/models/sql/query.py:6332 ms4.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.1%
Cursor.executepsycopg/cursor.py:1132 ms4.1%
Connection.waitpsycopg/connection.py:4952 ms4.1%
mcpapps/mcp/urls.py:1252 ms4.1%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()2 ms4.1%
QuerySet.firstdjango/db/models/query.py:11452 ms4.1%
QuerySet.__iter__django/db/models/query.py:3902 ms4.1%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.1%
ModelIterable.__iter__django/db/models/query.py:952 ms4.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.1%
Cursor.executepsycopg/cursor.py:1132 ms4.1%
Connection.waitpsycopg/connection.py:4952 ms4.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms4.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms4.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms4.1%
McpTest.test_list_flaky_testsapps/mcp/tests.py:2599 ms20.5%
McpTest.callapps/mcp/tests.py:829 ms20.5%
McpTest.rpcapps/mcp/tests.py:759 ms20.5%
McpTest.postapps/mcp/tests.py:67 return self.client.post(9 ms20.5%
Client.postdjango/test/client.py:11539 ms20.5%
RequestFactory.postdjango/test/client.py:4999 ms20.5%
RequestFactory.genericdjango/test/client.py:6719 ms20.5%
Client.requestdjango/test/client.py:10829 ms20.5%
ClientHandler.__call__django/test/client.py:1869 ms20.5%
BaseHandler.get_responsedjango/core/handlers/base.py:1419 ms20.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms20.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1309 ms20.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms20.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms20.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms20.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1239 ms20.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms20.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms20.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms20.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms20.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms20.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms20.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms20.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms20.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms20.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms20.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms20.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms16.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms16.4%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:347 ms16.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms16.4%
BaseHandler._get_responsedjango/core/handlers/base.py:1987 ms16.4%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:657 ms16.4%
mcpapps/mcp/urls.py:1476 ms12.3%
handleapps/mcp/urls.py:1156 ms12.3%
call_toolapps/mcp/urls.py:756 ms12.3%
Tools.callapps/mcp/tools.py:1886 ms12.3%
Tools.list_flaky_testsapps/mcp/tools.py:4186 ms12.3%
flaky_reportapps/projects/flakiness.py:2534 ms8.2%
compute_flaky_reportapps/projects/flakiness.py:2724 ms8.2%
observations_forapps/projects/flakiness.py:165 test_runs = list(test_runs)2 ms4.1%
QuerySet.__iter__django/db/models/query.py:3902 ms4.1%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.1%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms4.1%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms4.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms4.1%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7952 ms4.1%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms4.1%
WhereNode.as_sqldjango/db/models/sql/where.py:1512 ms4.1%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms4.1%
BuiltinLookup.as_sqldjango/db/models/lookups.py:2382 ms4.1%
BuiltinLookup.process_lhsdjango/db/models/lookups.py:2302 ms4.1%
Lookup.process_lhsdjango/db/models/lookups.py:1092 ms4.1%
BaseExpression.resolve_expressiondjango/db/models/expressions.py:2972 ms4.1%
BaseExpression.copydjango/db/models/expressions.py:4442 ms4.1%
copy<stdlib>/copy.py:1002 ms4.1%
_reconstruct<stdlib>/copy.py:2522 ms4.1%
observations_forapps/projects/flakiness.py:185 ).values_list("test_id", "date", "outcome", "profile_id")2 ms4.1%
QuerySet.values_listdjango/db/models/query.py:14582 ms4.1%
QuerySet._valuesdjango/db/models/query.py:14092 ms4.1%
Query.set_valuesdjango/db/models/sql/query.py:26052 ms4.1%
Query.add_fieldsdjango/db/models/sql/query.py:22662 ms4.1%
Query.setup_joinsdjango/db/models/sql/query.py:19742 ms4.1%
Query.is_nullabledjango/db/models/sql/query.py:27342 ms4.1%
flaky_reportapps/projects/flakiness.py:2502 ms4.1%
data_versionapps/projects/flakiness.py:229 profile = Profile.objects.filter(project=project).aggregate(latest=Max("date_processed"))["latest"]2 ms4.1%
QuerySet.aggregatedjango/db/models/query.py:5942 ms4.1%
Query.get_aggregationdjango/db/models/sql/query.py:6332 ms4.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.1%
Cursor.executepsycopg/cursor.py:1132 ms4.1%
Connection.waitpsycopg/connection.py:4952 ms4.1%
mcpapps/mcp/urls.py:1252 ms4.1%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()2 ms4.1%
QuerySet.firstdjango/db/models/query.py:11452 ms4.1%
QuerySet.__iter__django/db/models/query.py:3902 ms4.1%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.1%
ModelIterable.__iter__django/db/models/query.py:952 ms4.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.1%
Cursor.executepsycopg/cursor.py:1132 ms4.1%
Connection.waitpsycopg/connection.py:4952 ms4.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3102 ms4.1%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()4 ms8.2%
TestCase._fixture_teardowndjango/test/testcases.py:14954 ms8.2%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms4.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.1%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms4.1%
Cursor.executepsycopg/cursor.py:1132 ms4.1%
Connection.waitpsycopg/connection.py:4952 ms4.1%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4842 ms4.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.1%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms4.1%
Cursor.executepsycopg/cursor.py:1132 ms4.1%
Connection.waitpsycopg/connection.py:4952 ms4.1%
Estimated from 25 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
|
22 ms |
|
apps/mcp/urls.py:55
project = Project.objects.filter(secrettokens__token=token).first()
authenticate
· Database
|
4 ms |
|
apps/projects/flakiness.py:228
ingest = Ingest.objects.filter(project=project).aggregate(latest=Max("id"))["latest"]
data_version
· Database
|
2 ms |
|
apps/projects/flakiness.py:202
ids = set(
failing_test_ids
· Database
|
2 ms |
|
apps/projects/flakiness.py:212
ids |= set(
failing_test_ids
· Database
|
2 ms |
|
apps/projects/flakiness.py:186
perfs = list(perfs)
observations_for
· Database
|
2 ms |
|
apps/projects/flakiness.py:189
for row in Profile.objects.filter(id__in={row[3] for row in perfs}).values_list(
observations_for
· 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:165
test_runs = list(test_runs)
observations_for
· Database
|
2 ms |
|
apps/projects/flakiness.py:185
).values_list("test_id", "date", "outcome", "profile_id")
observations_for
· Database
|
2 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.05 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _django_db_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
23 queries · 9 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/mcp/tests.py:253
|
41 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
4 ms |
| setup pytest internals | 0.57 ms |
Reliability
15 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 15 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 45 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 62 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 32 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 61 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 36 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 54 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 54 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 78 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 38 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 61 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 59 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 59 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 64 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 32 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 62 ms | Profile |