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

McpTest::test_get_overview

First seen 1 month, 1 week ago in 78a4357
CI github-actions:test 15 runs
Average
80 ms
median 88 ms
max 102 ms
Phases
Setup 0.64 ms Call 79 ms Teardown 0.16 ms
Categories
Database 57 ms App code 1 ms Other (Libraries, Unsampled, pytest) 22 ms

47 database queries per run

Needs 86 KB of memory (max 264 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call73 ms99.1%
McpTest.test_get_overviewapps/mcp/tests.py:189 result = self.call("get_overview", days=30)40 ms55.1%
McpTest.callapps/mcp/tests.py:8240 ms55.1%
McpTest.rpcapps/mcp/tests.py:7540 ms55.1%
McpTest.postapps/mcp/tests.py:67 return self.client.post(40 ms55.1%
Client.postdjango/test/client.py:115340 ms55.1%
RequestFactory.postdjango/test/client.py:49940 ms55.1%
RequestFactory.genericdjango/test/client.py:67140 ms55.1%
Client.requestdjango/test/client.py:108240 ms55.1%
ClientHandler.__call__django/test/client.py:18634 ms46.8%
BaseHandler.get_responsedjango/core/handlers/base.py:14134 ms46.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5534 ms46.8%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13034 ms46.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5534 ms46.8%
MiddlewareMixin.__call__django/utils/deprecation.py:30934 ms46.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5534 ms46.8%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12334 ms46.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5534 ms46.8%
MiddlewareMixin.__call__django/utils/deprecation.py:30934 ms46.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5534 ms46.8%
MiddlewareMixin.__call__django/utils/deprecation.py:30934 ms46.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5534 ms46.8%
MiddlewareMixin.__call__django/utils/deprecation.py:30934 ms46.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5534 ms46.8%
MiddlewareMixin.__call__django/utils/deprecation.py:30934 ms46.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5534 ms46.8%
MiddlewareMixin.__call__django/utils/deprecation.py:30934 ms46.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5534 ms46.8%
MiddlewareMixin.__call__django/utils/deprecation.py:30934 ms46.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5534 ms46.8%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3434 ms46.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5534 ms46.8%
BaseHandler._get_responsedjango/core/handlers/base.py:19834 ms46.8%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:6534 ms46.8%
mcpapps/mcp/urls.py:14724 ms33.0%
handleapps/mcp/urls.py:11524 ms33.0%
call_toolapps/mcp/urls.py:7524 ms33.0%
Tools.callapps/mcp/tools.py:18824 ms33.0%
Tools.get_overviewapps/mcp/tools.py:21218 ms24.8%
overviewapps/projects/analytics.py:3026 ms8.3%
result_countsapps/projects/analytics.py:274 sessions = Session.objects.filter(scope.environment_q(), project=scope.project, date_created__gte=since).aggregate(4 ms5.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.8%
QuerySet.filterdjango/db/models/query.py:15422 ms2.8%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms2.8%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms2.8%
Query.add_qdjango/db/models/sql/query.py:16712 ms2.8%
Query._add_qdjango/db/models/sql/query.py:17032 ms2.8%
QuerySet.aggregatedjango/db/models/query.py:5942 ms2.8%
Query.get_aggregationdjango/db/models/sql/query.py:6332 ms2.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.8%
Cursor.executepsycopg/cursor.py:1132 ms2.8%
Connection.waitpsycopg/connection.py:4952 ms2.8%
result_countsapps/projects/analytics.py:283 ).aggregate(total=Sum(F("tests_count") - F("skipped_count")), failed=Sum(F("failed_count") + F("error_count")))2 ms2.8%
QuerySet.aggregatedjango/db/models/query.py:5942 ms2.8%
Query.get_aggregationdjango/db/models/sql/query.py:6332 ms2.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.8%
Cursor.executepsycopg/cursor.py:1132 ms2.8%
Connection.waitpsycopg/connection.py:4952 ms2.8%
overviewapps/projects/analytics.py:3036 ms8.3%
flaky_reportapps/projects/flakiness.py:2534 ms5.5%
compute_flaky_reportapps/projects/flakiness.py:2684 ms5.5%
failing_test_idsapps/projects/flakiness.py:202 ids = set(2 ms2.8%
QuerySet.__iter__django/db/models/query.py:3902 ms2.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.8%
FlatValuesListIterable.__iter__django/db/models/query.py:2772 ms2.8%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms2.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.8%
Cursor.executepsycopg/cursor.py:1132 ms2.8%
Connection.waitpsycopg/connection.py:4952 ms2.8%
failing_test_idsapps/projects/flakiness.py:212 ids |= set(2 ms2.8%
QuerySet.__iter__django/db/models/query.py:3902 ms2.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.8%
FlatValuesListIterable.__iter__django/db/models/query.py:2772 ms2.8%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms2.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.8%
Cursor.executepsycopg/cursor.py:1132 ms2.8%
Connection.waitpsycopg/connection.py:4952 ms2.8%
flaky_reportapps/projects/flakiness.py:2502 ms2.8%
data_versionapps/projects/flakiness.py:228 ingest = Ingest.objects.filter(project=project).aggregate(latest=Max("id"))["latest"]2 ms2.8%
QuerySet.aggregatedjango/db/models/query.py:5942 ms2.8%
Query.get_aggregationdjango/db/models/sql/query.py:6332 ms2.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.8%
Cursor.executepsycopg/cursor.py:1132 ms2.8%
Connection.waitpsycopg/connection.py:4952 ms2.8%
overviewapps/projects/analytics.py:3014 ms5.5%
latest_profilesapps/projects/analytics.py:2632 ms2.8%
Scope.scoped_environmentsapps/projects/analytics.py:185 return list(Environment.objects.filter(project=self.project))2 ms2.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.8%
latest_profilesapps/projects/analytics.py:264 profile = scope.profiles().filter(environment=environment).order_by("-started_at").first()2 ms2.8%
QuerySet.firstdjango/db/models/query.py:11452 ms2.8%
QuerySet.__iter__django/db/models/query.py:3902 ms2.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.8%
ModelIterable.__iter__django/db/models/query.py:952 ms2.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.8%
Cursor.executepsycopg/cursor.py:1132 ms2.8%
Connection.waitpsycopg/connection.py:4952 ms2.8%
overviewapps/projects/analytics.py:298 started_at__gte=scope.since - dt.timedelta(days=scope.days),2 ms2.8%
Tools.get_overviewapps/mcp/tools.py:2136 ms8.3%
category_breakdownapps/projects/analytics.py:359 summaries = list(4 ms5.5%
QuerySet.__iter__django/db/models/query.py:3904 ms5.5%
QuerySet._fetch_alldjango/db/models/query.py:20004 ms5.5%
SQLCompiler.apply_convertersdjango/db/models/sql/compiler.py:15422 ms2.8%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms2.8%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms2.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.8%
Cursor.executepsycopg/cursor.py:1132 ms2.8%
Connection.waitpsycopg/connection.py:4952 ms2.8%
category_breakdownapps/projects/analytics.py:382 "bar": category_bar(categories, max(test_time, sum(categories.values())), max_segments=6),2 ms2.8%
mcpapps/mcp/urls.py:12510 ms13.8%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()10 ms13.8%
QuerySet.firstdjango/db/models/query.py:114510 ms13.8%
QuerySet.__iter__django/db/models/query.py:39010 ms13.8%
QuerySet._fetch_alldjango/db/models/query.py:200010 ms13.8%
ModelIterable.__iter__django/db/models/query.py:9510 ms13.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162410 ms13.8%
CursorWrapper.executedjango/db/backends/utils.py:7910 ms13.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9210 ms13.8%
CursorWrapper._executedjango/db/backends/utils.py:10510 ms13.8%
Cursor.executepsycopg/cursor.py:11310 ms13.8%
Connection.waitpsycopg/connection.py:49510 ms13.8%
ClientHandler.__call__django/test/client.py:1736 ms8.3%
BaseHandler.load_middlewaredjango/core/handlers/base.py:626 ms8.3%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1046 ms8.3%
WhiteNoise.add_fileswhitenoise/base.py:1086 ms8.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1204 ms5.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1314 ms5.5%
WhiteNoise.get_static_filewhitenoise/base.py:2032 ms2.8%
WhiteNoise.add_cache_headerswhitenoise/base.py:2242 ms2.8%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms2.8%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms2.8%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms2.8%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2052 ms2.8%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1862 ms2.8%
WhiteNoise.get_static_filewhitenoise/base.py:2082 ms2.8%
StaticFile.__init__whitenoise/responders.py:722 ms2.8%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms2.8%
__init____init__:-12 ms2.8%
FileEntry.__init__whitenoise/responders.py:2602 ms2.8%
<GC>~2 ms2.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms2.8%
scantreewhitenoise/base.py:2622 ms2.8%
scantreewhitenoise/base.py:2622 ms2.8%
scantreewhitenoise/base.py:2622 ms2.8%
scantreewhitenoise/base.py:2622 ms2.8%
scantreewhitenoise/base.py:2642 ms2.8%
McpTest.test_get_overviewapps/mcp/tests.py:19530 ms41.3%
McpTest.callapps/mcp/tests.py:8230 ms41.3%
McpTest.rpcapps/mcp/tests.py:7530 ms41.3%
McpTest.postapps/mcp/tests.py:67 return self.client.post(30 ms41.3%
Client.postdjango/test/client.py:115330 ms41.3%
RequestFactory.postdjango/test/client.py:49930 ms41.3%
RequestFactory.genericdjango/test/client.py:67130 ms41.3%
Client.requestdjango/test/client.py:108230 ms41.3%
ClientHandler.__call__django/test/client.py:18630 ms41.3%
BaseHandler.get_responsedjango/core/handlers/base.py:14130 ms41.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5530 ms41.3%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13030 ms41.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5530 ms41.3%
MiddlewareMixin.__call__django/utils/deprecation.py:30930 ms41.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5530 ms41.3%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12330 ms41.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5530 ms41.3%
MiddlewareMixin.__call__django/utils/deprecation.py:30930 ms41.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5530 ms41.3%
MiddlewareMixin.__call__django/utils/deprecation.py:30930 ms41.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5530 ms41.3%
MiddlewareMixin.__call__django/utils/deprecation.py:30930 ms41.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5530 ms41.3%
MiddlewareMixin.__call__django/utils/deprecation.py:30930 ms41.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5530 ms41.3%
MiddlewareMixin.__call__django/utils/deprecation.py:30930 ms41.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5530 ms41.3%
MiddlewareMixin.__call__django/utils/deprecation.py:30930 ms41.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5530 ms41.3%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3430 ms41.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5530 ms41.3%
BaseHandler._get_responsedjango/core/handlers/base.py:19830 ms41.3%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:6530 ms41.3%
mcpapps/mcp/urls.py:14728 ms38.5%
handleapps/mcp/urls.py:11528 ms38.5%
call_toolapps/mcp/urls.py:7528 ms38.5%
Tools.callapps/mcp/tools.py:18828 ms38.5%
Tools.get_overviewapps/mcp/tools.py:21224 ms33.0%
overviewapps/projects/analytics.py:30316 ms22.0%
flaky_reportapps/projects/flakiness.py:25316 ms22.0%
compute_flaky_reportapps/projects/flakiness.py:2688 ms11.0%
failing_test_idsapps/projects/flakiness.py:213 TestPerf.objects.filter(6 ms8.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:876 ms8.3%
QuerySet.filterdjango/db/models/query.py:15426 ms8.3%
QuerySet._filter_or_excludedjango/db/models/query.py:15606 ms8.3%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15706 ms8.3%
Query.add_qdjango/db/models/sql/query.py:16716 ms8.3%
Query._add_qdjango/db/models/sql/query.py:17036 ms8.3%
Query.build_filterdjango/db/models/sql/query.py:15774 ms5.5%
Query.setup_joinsdjango/db/models/sql/query.py:19912 ms2.8%
Query.build_filterdjango/db/models/sql/query.py:16132 ms2.8%
Query.build_lookupdjango/db/models/sql/query.py:14402 ms2.8%
Lookup.__init__django/db/models/lookups.py:352 ms2.8%
failing_test_idsapps/projects/flakiness.py:212 ids |= set(2 ms2.8%
QuerySet.__iter__django/db/models/query.py:3902 ms2.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.8%
FlatValuesListIterable.__iter__django/db/models/query.py:2772 ms2.8%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms2.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.8%
Cursor.executepsycopg/cursor.py:1132 ms2.8%
Connection.waitpsycopg/connection.py:4952 ms2.8%
compute_flaky_reportapps/projects/flakiness.py:2726 ms8.3%
observations_forapps/projects/flakiness.py:162 .exclude(status=TestRun.StatusTypes.SKIP)2 ms2.8%
QuerySet.excludedjango/db/models/query.py:15502 ms2.8%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms2.8%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15682 ms2.8%
Query.add_qdjango/db/models/sql/query.py:16652 ms2.8%
observations_forapps/projects/flakiness.py:169 for row in Session.objects.filter(id__in={row[4] for row in test_runs}).values_list(2 ms2.8%
QuerySet.__iter__django/db/models/query.py:3902 ms2.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.8%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms2.8%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms2.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms2.8%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7922 ms2.8%
SQLCompiler.get_from_clausedjango/db/models/sql/compiler.py:11592 ms2.8%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms2.8%
observations_forapps/projects/flakiness.py:186 perfs = list(perfs)2 ms2.8%
QuerySet.__iter__django/db/models/query.py:3902 ms2.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.8%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms2.8%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms2.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.8%
compute_flaky_reportapps/projects/flakiness.py:3162 ms2.8%
overviewapps/projects/analytics.py:3014 ms5.5%
latest_profilesapps/projects/analytics.py:264 profile = scope.profiles().filter(environment=environment).order_by("-started_at").first()4 ms5.5%
Scope.profilesapps/projects/analytics.py:175 return Profile.objects.filter(2 ms2.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.8%
QuerySet.filterdjango/db/models/query.py:15422 ms2.8%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms2.8%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms2.8%
Query.add_qdjango/db/models/sql/query.py:16712 ms2.8%
Query._add_qdjango/db/models/sql/query.py:17032 ms2.8%
QuerySet.firstdjango/db/models/query.py:11452 ms2.8%
QuerySet.__iter__django/db/models/query.py:3902 ms2.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.8%
ModelIterable.__iter__django/db/models/query.py:952 ms2.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.8%
Cursor.executepsycopg/cursor.py:1132 ms2.8%
Connection.waitpsycopg/connection.py:4952 ms2.8%
overviewapps/projects/analytics.py:2902 ms2.8%
Scope.profilesapps/projects/analytics.py:175 return Profile.objects.filter(2 ms2.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.8%
QuerySet.filterdjango/db/models/query.py:15422 ms2.8%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms2.8%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms2.8%
Query.add_qdjango/db/models/sql/query.py:16712 ms2.8%
Query._add_qdjango/db/models/sql/query.py:17032 ms2.8%
Query.build_filterdjango/db/models/sql/query.py:16132 ms2.8%
Query.build_lookupdjango/db/models/sql/query.py:14302 ms2.8%
overviewapps/projects/analytics.py:2942 ms2.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.8%
QuerySet.filterdjango/db/models/query.py:15422 ms2.8%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms2.8%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms2.8%
Query.add_qdjango/db/models/sql/query.py:16712 ms2.8%
Query._add_qdjango/db/models/sql/query.py:17032 ms2.8%
Query.build_filterdjango/db/models/sql/query.py:15282 ms2.8%
Query._add_qdjango/db/models/sql/query.py:17032 ms2.8%
Query.build_filterdjango/db/models/sql/query.py:15512 ms2.8%
Query.solve_lookup_typedjango/db/models/sql/query.py:13582 ms2.8%
Query.names_to_pathdjango/db/models/sql/query.py:17862 ms2.8%
Tools.get_overviewapps/mcp/tools.py:2112 ms2.8%
Tools.scopeapps/mcp/tools.py:1802 ms2.8%
resolve_scopeapps/projects/analytics.py:198 selected = Environment.objects.filter(project=project, name=env).first()2 ms2.8%
QuerySet.firstdjango/db/models/query.py:11452 ms2.8%
QuerySet.__iter__django/db/models/query.py:3902 ms2.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.8%
ModelIterable.__iter__django/db/models/query.py:1272 ms2.8%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15772 ms2.8%
SQLCompiler.get_convertersdjango/db/models/sql/compiler.py:15262 ms2.8%
Col.get_db_convertersdjango/db/models/expressions.py:13432 ms2.8%
Tools.get_overviewapps/mcp/tools.py:2132 ms2.8%
category_breakdownapps/projects/analytics.py:359 summaries = list(2 ms2.8%
QuerySet.__iter__django/db/models/query.py:3902 ms2.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.8%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms2.8%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms2.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16622 ms2.8%
cursor_iterdjango/db/models/sql/compiler.py:22542 ms2.8%
mcpapps/mcp/urls.py:1252 ms2.8%
authenticateapps/mcp/urls.py:57 SecretTokens.objects.filter(token=token).update(date_last_used=timezone.now())2 ms2.8%
QuerySet.updatedjango/db/models/query.py:13002 ms2.8%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms2.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.8%
Cursor.executepsycopg/cursor.py:1132 ms2.8%
Connection.waitpsycopg/connection.py:4952 ms2.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms2.8%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms2.8%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.8%
Cursor.executepsycopg/cursor.py:1132 ms2.8%
Connection.waitpsycopg/connection.py:4952 ms2.8%
Estimated from 36 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/mcp/urls.py:55
project = Project.objects.filter(secrettokens__token=token).first()
authenticate · Database
10 ms
apps/mcp/tests.py:67
return self.client.post(
McpTest.post · Libraries
6 ms
apps/projects/analytics.py:359
summaries = list(
category_breakdown · Database
6 ms
apps/projects/flakiness.py:213
TestPerf.objects.filter(
failing_test_ids · Database
6 ms
apps/projects/analytics.py:264
profile = scope.profiles().filter(environment=environment).order_by("-started_at").first()
latest_profiles · Database
4 ms
apps/projects/analytics.py:274
sessions = Session.objects.filter(scope.environment_q(), project=scope.project, date_created__gte=since).aggregate(
result_counts · Database
4 ms
apps/projects/flakiness.py:212
ids |= set(
failing_test_ids · Database
4 ms
apps/projects/analytics.py:175
return Profile.objects.filter(
Scope.profiles · Database
4 ms
apps/projects/analytics.py:298
started_at__gte=scope.since - dt.timedelta(days=scope.days),
overview · App code
2 ms
apps/projects/analytics.py:185
return list(Environment.objects.filter(project=self.project))
Scope.scoped_environments · Database
2 ms

Fixtures

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

Database

47 queries · 20 ms

Repeated queries are usually N+1 lookups: fetch them once with select_related / prefetch_related (or selectinload).

4×
SELECT "projects_environment"."id", "projects_environment"."project_id", "projects_environment"."name", "projects_environment"."kind", "projects_environment"."provider", "projects_environment"."details", "projects_environment"."date_first_seen", "projects_environment"."date_last_seen" FROM "project…
3×
SELECT "projects_profile"."id", "projects_profile"."project_id", "projects_profile"."number", "projects_profile"."environment_id", "projects_profile"."session_id", "projects_profile"."run_id", "projects_profile"."commit_id", "projects_profile"."ingest_id", "projects_profile"."external_id", "project…

Biggest pieces of work

call test body
apps/mcp/tests.py:189
71 ms
call _post_teardown
django/test/testcases.py:1240
2 ms

Reliability

15 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 15 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 73 ms cb18ed3 main Profile
2 weeks, 4 days ago CI github-actions:test passed 96 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 50 ms 19dac9b main Profile
3 weeks ago CI github-actions:test passed 93 ms e141198 main Profile
1 month ago CI github-actions:test passed 54 ms 46ec2aa main Profile
1 month ago CI github-actions:test passed 83 ms afde85b main Profile
1 month ago CI github-actions:test passed 75 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 100 ms 044719a main Profile
1 month ago CI github-actions:test passed 59 ms b3fedae main Profile
1 month, 1 week ago CI github-actions:test passed 93 ms 43c4eda main Profile
1 month, 1 week ago CI github-actions:test passed 90 ms 9caa567 main Profile
1 month, 1 week ago CI github-actions:test passed 88 ms ec75501 main Profile
1 month, 1 week ago CI github-actions:test passed 102 ms d2c12e5 main Profile
1 month, 1 week ago CI github-actions:test passed 51 ms 0b902f6 main Profile
1 month, 1 week ago CI github-actions:test passed 92 ms 78a4357 main Profile