CI
github-actions:test
15 runs
Average
47 ms
median 52 ms
max 65 ms
max 65 ms
Phases
Setup 0.67 ms
Call 46 ms
Teardown 0.16 ms
Categories
Database 24 ms
App code 0.83 ms
Test code 0.14 ms
Other (Libraries, Unsampled, pytest, Serialization) 21 ms
16 database queries per run
Needs 148 KB of memory (max 616 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call37 ms98.3%
McpTest.test_get_testapps/mcp/tests.py:224 result = self.call("get_test", nodeid=SLOW)32 ms86.8%
McpTest.callapps/mcp/tests.py:8232 ms86.8%
McpTest.rpcapps/mcp/tests.py:7532 ms86.8%
McpTest.postapps/mcp/tests.py:67 return self.client.post(32 ms86.8%
Client.postdjango/test/client.py:115332 ms86.8%
RequestFactory.postdjango/test/client.py:49932 ms86.8%
RequestFactory.genericdjango/test/client.py:67132 ms86.8%
Client.requestdjango/test/client.py:108232 ms86.8%
ClientHandler.__call__django/test/client.py:18617 ms46.3%
BaseHandler.get_responsedjango/core/handlers/base.py:14117 ms46.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms46.3%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13017 ms46.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms46.3%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms46.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms46.3%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12317 ms46.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms40.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms40.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms40.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms40.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms40.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms40.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms40.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms40.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms40.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms40.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms40.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms40.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms40.5%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3415 ms40.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms40.5%
BaseHandler._get_responsedjango/core/handlers/base.py:19815 ms40.5%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:6515 ms40.5%
mcpapps/mcp/urls.py:14713 ms34.7%
handleapps/mcp/urls.py:11513 ms34.7%
call_toolapps/mcp/urls.py:7513 ms34.7%
Tools.callapps/mcp/tools.py:18813 ms34.7%
Tools.get_testapps/mcp/tools.py:3304 ms11.6%
latest_perfapps/projects/analytics.py:846 return perfs.select_related("profile", "environment").order_by("-date").first()4 ms11.6%
QuerySet.firstdjango/db/models/query.py:11454 ms11.6%
QuerySet.__iter__django/db/models/query.py:3904 ms11.6%
QuerySet._fetch_alldjango/db/models/query.py:20004 ms11.6%
ModelIterable.__iter__django/db/models/query.py:952 ms5.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms5.8%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:9382 ms5.8%
ModelIterable.__iter__django/db/models/query.py:1272 ms5.8%
SQLCompiler.apply_convertersdjango/db/models/sql/compiler.py:15422 ms5.8%
JSONField.from_db_valuedjango/db/models/fields/json.py:922 ms5.8%
loads<stdlib>/json/__init__.py:3712 ms5.8%
JSONDecoder.decode<stdlib>/json/decoder.py:3582 ms5.8%
JSONDecoder.raw_decode<stdlib>/json/decoder.py:3742 ms5.8%
Tools.get_testapps/mcp/tools.py:3714 ms11.6%
flakiness_for_testapps/projects/flakiness.py:326 history = observations_for(test.project, [test.id], since).get(test.id, [])4 ms11.6%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2572 ms5.8%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2222 ms5.8%
QuerySet.getdjango/db/models/query.py:6352 ms5.8%
QuerySet.__len__django/db/models/query.py:3722 ms5.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms5.8%
ModelIterable.__iter__django/db/models/query.py:952 ms5.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms5.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms5.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms5.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms5.8%
Cursor.executepsycopg/cursor.py:1132 ms5.8%
Connection.waitpsycopg/connection.py:4952 ms5.8%
observations_forapps/projects/flakiness.py:165 test_runs = list(test_runs)2 ms5.8%
QuerySet.__iter__django/db/models/query.py:3902 ms5.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms5.8%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms5.8%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms5.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms5.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms5.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms5.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms5.8%
Cursor.executepsycopg/cursor.py:1132 ms5.8%
Connection.waitpsycopg/connection.py:4952 ms5.8%
Tools.get_testapps/mcp/tools.py:3042 ms5.8%
environment_stats_for_testapps/projects/analytics.py:748 for perf in TestPerf.objects.filter(test=test, date__gte=since).select_related("environment").order_by("date"):2 ms5.8%
QuerySet.__iter__django/db/models/query.py:3902 ms5.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms5.8%
ModelIterable.__iter__django/db/models/query.py:952 ms5.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms5.8%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms5.8%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:872 ms5.8%
SQLCompiler.get_order_bydjango/db/models/sql/compiler.py:4912 ms5.8%
SQLCompiler._order_by_pairsdjango/db/models/sql/compiler.py:3592 ms5.8%
Expression.__hash__django/db/models/expressions.py:5622 ms5.8%
cached_property.__get__django/utils/functional.py:472 ms5.8%
Expression.identitydjango/db/models/expressions.py:5542 ms5.8%
Tools.get_testapps/mcp/tools.py:3342 ms5.8%
latest_documentapps/projects/profiles.py:321 ).first()2 ms5.8%
QuerySet.firstdjango/db/models/query.py:11452 ms5.8%
QuerySet.__iter__django/db/models/query.py:3902 ms5.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms5.8%
ModelIterable.__iter__django/db/models/query.py:952 ms5.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms5.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms5.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms5.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms5.8%
Cursor.executepsycopg/cursor.py:1132 ms5.8%
Connection.waitpsycopg/connection.py:4952 ms5.8%
mcpapps/mcp/urls.py:1252 ms5.8%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()2 ms5.8%
QuerySet.firstdjango/db/models/query.py:11452 ms5.8%
QuerySet.__iter__django/db/models/query.py:3902 ms5.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms5.8%
ModelIterable.__iter__django/db/models/query.py:952 ms5.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms5.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms5.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms5.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms5.8%
Cursor.executepsycopg/cursor.py:1132 ms5.8%
Connection.waitpsycopg/connection.py:4952 ms5.8%
ClientHandler.__call__django/test/client.py:17315 ms40.5%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6215 ms40.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10415 ms40.5%
WhiteNoise.add_fileswhitenoise/base.py:10815 ms40.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12011 ms28.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13111 ms28.9%
WhiteNoise.get_static_filewhitenoise/base.py:20811 ms28.9%
StaticFile.__init__whitenoise/responders.py:744 ms11.6%
parsedate<stdlib>/email/_parseaddr.py:1854 ms11.6%
StaticFile.__init__whitenoise/responders.py:732 ms5.8%
StaticFile.get_headerswhitenoise/responders.py:1672 ms5.8%
StaticFile.__init__whitenoise/responders.py:722 ms5.8%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms5.8%
__init____init__:-12 ms5.8%
FileEntry.__init__whitenoise/responders.py:2602 ms5.8%
<GC>~2 ms5.8%
StaticFile.__init__whitenoise/responders.py:772 ms5.8%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms5.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms5.8%
scantreewhitenoise/base.py:2622 ms5.8%
scantreewhitenoise/base.py:2622 ms5.8%
scantreewhitenoise/base.py:2622 ms5.8%
scantreewhitenoise/base.py:2622 ms5.8%
scantreewhitenoise/base.py:2622 ms5.8%
scantreewhitenoise/base.py:2642 ms5.8%
McpTest.test_get_testapps/mcp/tests.py:232 self.assertEqual(result["flakiness"]["classification"], None)2 ms5.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms5.8%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms5.8%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4842 ms5.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms5.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms5.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms5.8%
Cursor.executepsycopg/cursor.py:1132 ms5.8%
Connection.waitpsycopg/connection.py:4952 ms5.8%
Estimated from 17 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
|
17 ms |
|
apps/projects/analytics.py:846
return perfs.select_related("profile", "environment").order_by("-date").first()
latest_perf
· Database
|
4 ms |
|
apps/mcp/urls.py:55
project = Project.objects.filter(secrettokens__token=token).first()
authenticate
· Database
|
2 ms |
|
apps/projects/analytics.py:748
for perf in TestPerf.objects.filter(test=test, date__gte=since).select_related("environment").order_by("date"):
environment_stats_for_test
· Database
|
2 ms |
|
apps/projects/profiles.py:321
).first()
latest_document
· Database
|
2 ms |
|
apps/projects/flakiness.py:326
history = observations_for(test.project, [test.id], since).get(test.id, [])
flakiness_for_test
· Database
|
2 ms |
|
apps/projects/flakiness.py:165
test_runs = list(test_runs)
observations_for
· Database
|
2 ms |
|
apps/mcp/tests.py:232
self.assertEqual(result["flakiness"]["classification"], None)
McpTest.test_get_test
· Test code
|
2 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.05 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_db_marker function | 0.02 ms |
| _django_set_urlconf function | 0.02 ms |
| _live_server_helper function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.01 ms |
Database
16 queries · 6 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/mcp/tests.py:224
|
34 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
2 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 | 37 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 54 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 27 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 57 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 27 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 53 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 45 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 64 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 32 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 54 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 52 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 52 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 65 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 27 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 55 ms | Profile |