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

TestProjectTestPage::test_project_test_page_with_durations

First seen 2 years, 9 months ago in d87c7a8
CI github-actions:test 5 runs
Average
80 ms
median 85 ms
max 91 ms
Phases
Setup 0.79 ms Call 78 ms Teardown 1 ms
Categories
Database 49 ms Other (Libraries, Unsampled, Templates, pytest) 31 ms

52 database queries per run

Needs 218 KB of memory (max 600 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, an hour ago · open run
Show pytest frames
call84 ms98.2%
TestProjectTestPage.test_project_test_page_with_durationsapps/projects/tests.py:459 response = self.client.get(self.url)61 ms71.4%
Client.getdjango/test/client.py:112461 ms71.4%
RequestFactory.getdjango/test/client.py:47561 ms71.4%
RequestFactory.genericdjango/test/client.py:67161 ms71.4%
Client.requestdjango/test/client.py:108261 ms71.4%
ClientHandler.__call__django/test/client.py:17330 ms35.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6230 ms35.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10428 ms33.5%
WhiteNoise.add_fileswhitenoise/base.py:10828 ms33.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12023 ms26.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13121 ms24.6%
WhiteNoise.get_static_filewhitenoise/base.py:20817 ms20.1%
StaticFile.__init__whitenoise/responders.py:739 ms11.2%
StaticFile.get_headerswhitenoise/responders.py:1764 ms4.5%
formatdate<stdlib>/email/utils.py:2664 ms4.5%
StaticFile.get_headerswhitenoise/responders.py:1712 ms2.2%
StaticFile.get_headerswhitenoise/responders.py:1672 ms2.2%
StaticFile.get_headerswhitenoise/responders.py:1782 ms2.2%
StaticFile.__init__whitenoise/responders.py:774 ms4.5%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms2.2%
StaticFile.get_alternativeswhitenoise/responders.py:2042 ms2.2%
StaticFile.__init__whitenoise/responders.py:722 ms2.2%
StaticFile.get_file_statswhitenoise/responders.py:1632 ms2.2%
StaticFile.__init__whitenoise/responders.py:762 ms2.2%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms2.2%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms2.2%
Headers.get<stdlib>/wsgiref/headers.py:1062 ms2.2%
WhiteNoise.get_static_filewhitenoise/base.py:2034 ms4.5%
WhiteNoise.add_cache_headerswhitenoise/base.py:2244 ms4.5%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms2.2%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms2.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1156 ms6.7%
scantreewhitenoise/base.py:2624 ms4.5%
scantreewhitenoise/base.py:2624 ms4.5%
scantreewhitenoise/base.py:2622 ms2.2%
scantreewhitenoise/base.py:2622 ms2.2%
scantreewhitenoise/base.py:2622 ms2.2%
scantreewhitenoise/base.py:2642 ms2.2%
scantreewhitenoise/base.py:2602 ms2.2%
scantreewhitenoise/base.py:2602 ms2.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1112 ms2.2%
WhiteNoise.add_fileswhitenoise/base.py:1082 ms2.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms2.2%
scantreewhitenoise/base.py:2642 ms2.2%
ClientHandler.__call__django/test/client.py:18630 ms35.7%
BaseHandler.get_responsedjango/core/handlers/base.py:14130 ms35.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5530 ms35.7%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13030 ms35.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5530 ms35.7%
MiddlewareMixin.__call__django/utils/deprecation.py:30930 ms35.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5530 ms35.7%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12330 ms35.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5530 ms35.7%
MiddlewareMixin.__call__django/utils/deprecation.py:30928 ms33.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5528 ms33.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30928 ms33.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5528 ms33.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30928 ms33.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5528 ms33.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30928 ms33.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5528 ms33.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30928 ms33.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5528 ms33.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30928 ms33.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5528 ms33.5%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3428 ms33.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5528 ms33.5%
BaseHandler._get_responsedjango/core/handlers/base.py:19828 ms33.5%
project_testapps/projects/urls.py:3116 ms6.7%
history_for_testapps/projects/analytics.py:806 for perf in TestPerf.objects.filter(test=test)4 ms4.5%
QuerySet.__iter__django/db/models/query.py:3904 ms4.5%
QuerySet._fetch_alldjango/db/models/query.py:20004 ms4.5%
ModelIterable.__iter__django/db/models/query.py:954 ms4.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms2.2%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms2.2%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms2.2%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms2.2%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3002 ms2.2%
SQLCompiler.get_related_selectionsdjango/db/models/sql/compiler.py:12662 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
history_for_testapps/projects/analytics.py:819 TestRun.objects.filter(test=test)2 ms2.2%
QuerySet.__iter__django/db/models/query.py:3902 ms2.2%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.2%
ModelIterable.__iter__django/db/models/query.py:952 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
project_testapps/projects/urls.py:3126 ms6.7%
flakiness_for_testapps/projects/flakiness.py:326 history = observations_for(test.project, [test.id], since).get(test.id, [])6 ms6.7%
observations_forapps/projects/flakiness.py:165 test_runs = list(test_runs)2 ms2.2%
QuerySet.__iter__django/db/models/query.py:3902 ms2.2%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.2%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms2.2%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
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.2%
QuerySet.__iter__django/db/models/query.py:3902 ms2.2%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.2%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms2.2%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
observations_forapps/projects/flakiness.py:186 perfs = list(perfs)2 ms2.2%
QuerySet.__iter__django/db/models/query.py:3902 ms2.2%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.2%
ValuesListIterable.__iter__django/db/models/query.py:2372 ms2.2%
Query.get_compilerdjango/db/models/sql/query.py:3692 ms2.2%
BaseConnectionHandler.__getitem__django/utils/connection.py:582 ms2.2%
project_testapps/projects/urls.py:2824 ms4.5%
find_projectapps/projects/urls.py:524 ms4.5%
can_viewapps/projects/urls.py:334 ms4.5%
can_manage_projectapps/projects/urls.py:38 if not user.is_authenticated:2 ms2.2%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2512 ms2.2%
SimpleLazyObject._setupdjango/utils/functional.py:4042 ms2.2%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:402 ms2.2%
get_userdjango/contrib/auth/middleware.py:202 ms2.2%
get_userdjango/contrib/auth/__init__.py:3182 ms2.2%
ModelBackend.get_userdjango/contrib/auth/backends.py:2322 ms2.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.2%
QuerySet.getdjango/db/models/query.py:6352 ms2.2%
QuerySet.__len__django/db/models/query.py:3722 ms2.2%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.2%
ModelIterable.__iter__django/db/models/query.py:952 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms2.2%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms2.2%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms2.2%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms2.2%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms2.2%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms2.2%
Col.as_sqldjango/db/models/expressions.py:13252 ms2.2%
SQLCompiler.quote_name_unless_aliasdjango/db/backends/postgresql/compiler.py:342 ms2.2%
SQLCompiler.quote_name_unless_aliasdjango/db/models/sql/compiler.py:5632 ms2.2%
can_manage_projectapps/projects/urls.py:40 return user.is_superuser or project.organization.membership_set.filter(user=user).exists()2 ms2.2%
QuerySet.existsdjango/db/models/query.py:13372 ms2.2%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms2.2%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
project_testapps/projects/urls.py:2894 ms4.5%
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"):4 ms4.5%
QuerySet.__iter__django/db/models/query.py:3904 ms4.5%
QuerySet._fetch_alldjango/db/models/query.py:20004 ms4.5%
ModelIterable.__iter__django/db/models/query.py:954 ms4.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
project_testapps/projects/urls.py:2954 ms4.5%
latest_perfapps/projects/analytics.py:846 return perfs.select_related("profile", "environment").order_by("-date").first()4 ms4.5%
QuerySet.firstdjango/db/models/query.py:11454 ms4.5%
QuerySet.__iter__django/db/models/query.py:3904 ms4.5%
QuerySet._fetch_alldjango/db/models/query.py:20004 ms4.5%
ModelIterable.__iter__django/db/models/query.py:954 ms4.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms2.2%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms2.2%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms2.2%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms2.2%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
project_testapps/projects/urls.py:285 test = get_object_or_404(Test, slug=test_slug, project=project)2 ms2.2%
get_object_or_404django/shortcuts.py:902 ms2.2%
QuerySet.getdjango/db/models/query.py:6352 ms2.2%
QuerySet.__len__django/db/models/query.py:3722 ms2.2%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.2%
ModelIterable.__iter__django/db/models/query.py:952 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
project_testapps/projects/urls.py:2862 ms2.2%
shellapps/projects/urls.py:71 return org_shell(request, project.organization if project else None, section) | {2 ms2.2%
org_shellapps/orgs/views.py:40 "org_projects": list(organization.project_set.order_by("name")) if member else [],2 ms2.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.2%
QuerySet.order_bydjango/db/models/query.py:17682 ms2.2%
QuerySet.querydjango/db/models/query.py:3062 ms2.2%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms2.2%
Query.add_qdjango/db/models/sql/query.py:16712 ms2.2%
Query._add_qdjango/db/models/sql/query.py:17182 ms2.2%
project_testapps/projects/urls.py:3152 ms2.2%
QuerySet.aggregatedjango/db/models/query.py:5942 ms2.2%
Query.get_aggregationdjango/db/models/sql/query.py:6332 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3112 ms2.2%
SessionMiddleware.process_responsedjango/contrib/sessions/middleware.py:592 ms2.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms2.2%
Model.savedjango/db/models/base.py:8742 ms2.2%
Model.save_basedjango/db/models/base.py:9662 ms2.2%
Model._save_tabledjango/db/models/base.py:11102 ms2.2%
Model._do_updatedjango/db/models/base.py:12112 ms2.2%
QuerySet._updatedjango/db/models/query.py:13272 ms2.2%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms2.2%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
TestProjectTestPage.setUpapps/projects/tests.py:412 self.client.force_login(self.user)6 ms6.7%
ClientMixin.force_logindjango/test/client.py:8556 ms6.7%
ClientMixin._logindjango/test/client.py:8814 ms4.5%
logindjango/contrib/auth/__init__.py:1874 ms4.5%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4344 ms4.5%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms2.2%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1982 ms2.2%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms2.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.2%
QuerySet.filterdjango/db/models/query.py:15422 ms2.2%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms2.2%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms2.2%
Query.add_qdjango/db/models/sql/query.py:16712 ms2.2%
Query._add_qdjango/db/models/sql/query.py:17032 ms2.2%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms2.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms2.2%
Model.savedjango/db/models/base.py:8742 ms2.2%
Model.save_basedjango/db/models/base.py:9662 ms2.2%
Model._save_tabledjango/db/models/base.py:11672 ms2.2%
ClientMixin._logindjango/test/client.py:8762 ms2.2%
ClientMixin.sessiondjango/test/client.py:8122 ms2.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:1212 ms2.2%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms2.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms2.2%
Atomic.__exit__django/db/transaction.py:2472 ms2.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.2%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms2.2%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()4 ms4.5%
TestCase._fixture_teardowndjango/test/testcases.py:14954 ms4.5%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4834 ms4.5%
CursorWrapper.executedjango/db/backends/utils.py:794 ms4.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms4.5%
CursorWrapper._executedjango/db/backends/utils.py:1034 ms4.5%
Cursor.executepsycopg/cursor.py:1134 ms4.5%
Connection.waitpsycopg/connection.py:4954 ms4.5%
TransactionTestCase._pre_setupdjango/test/testcases.py:1164 cls._fixture_setup()2 ms2.2%
TestCase._fixture_setupdjango/test/testcases.py:14782 ms2.2%
TestCase._enter_atomicsdjango/test/testcases.py:13962 ms2.2%
Atomic.__enter__django/db/transaction.py:2112 ms2.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.2%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms2.2%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
TestProjectTestPage.setUpapps/projects/tests.py:4132 ms2.2%
Project.urlapps/projects/models.py:59 return reverse(name, args=[self.organization.slug, self.slug, *args])2 ms2.2%
reversedjango/urls/base.py:982 ms2.2%
TestProjectTestPage.test_project_test_page_with_durationsapps/projects/tests.py:438 session=Session.objects.create(project=self.project, run=run, ingest=ingest),2 ms2.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.2%
QuerySet.createdjango/db/models/query.py:6692 ms2.2%
Model.savedjango/db/models/base.py:8742 ms2.2%
Model.save_basedjango/db/models/base.py:9662 ms2.2%
Model._save_tabledjango/db/models/base.py:11672 ms2.2%
Model._do_insertdjango/db/models/base.py:12182 ms2.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.2%
QuerySet._insertdjango/db/models/query.py:19182 ms2.2%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
TestProjectTestPage.test_project_test_page_with_durationsapps/projects/tests.py:435 TestRun.objects.create(2 ms2.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.2%
QuerySet.createdjango/db/models/query.py:6692 ms2.2%
Model.savedjango/db/models/base.py:8742 ms2.2%
Model.save_basedjango/db/models/base.py:9662 ms2.2%
Model._save_tabledjango/db/models/base.py:11672 ms2.2%
Model._do_insertdjango/db/models/base.py:12182 ms2.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.2%
QuerySet._insertdjango/db/models/query.py:19182 ms2.2%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
TestProjectTestPage.test_project_test_page_with_durationsapps/projects/tests.py:446 session=Session.objects.create(project=self.project, run=run, ingest=ingest),2 ms2.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.2%
QuerySet.createdjango/db/models/query.py:6692 ms2.2%
Model.savedjango/db/models/base.py:8742 ms2.2%
Model.save_basedjango/db/models/base.py:9662 ms2.2%
Model._save_tabledjango/db/models/base.py:11672 ms2.2%
Model._do_insertdjango/db/models/base.py:12182 ms2.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.2%
QuerySet._insertdjango/db/models/query.py:19182 ms2.2%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
TestProjectTestPage.test_project_test_page_with_durationsapps/projects/tests.py:443 TestRun.objects.create(2 ms2.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.2%
QuerySet.createdjango/db/models/query.py:6692 ms2.2%
Model.savedjango/db/models/base.py:8742 ms2.2%
Model.save_basedjango/db/models/base.py:9662 ms2.2%
Model._save_tabledjango/db/models/base.py:11672 ms2.2%
Model._do_insertdjango/db/models/base.py:12182 ms2.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.2%
QuerySet._insertdjango/db/models/query.py:19182 ms2.2%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
TestProjectTestPage.test_project_test_page_with_durationsapps/projects/tests.py:451 TestRun.objects.create(2 ms2.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.2%
QuerySet.createdjango/db/models/query.py:6672 ms2.2%
Model.__init__django/db/models/base.py:5692 ms2.2%
Estimated from 44 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/tests.py:459
response = self.client.get(self.url)
TestProjectTestPage.test_project_test_page_with_durations · Libraries
32 ms
apps/projects/tests.py:412
self.client.force_login(self.user)
TestProjectTestPage.setUp · Database
6 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
4 ms
apps/projects/analytics.py:846
return perfs.select_related("profile", "environment").order_by("-date").first()
latest_perf · Database
4 ms
apps/projects/analytics.py:806
for perf in TestPerf.objects.filter(test=test)
history_for_test · Database
4 ms
apps/projects/models.py:59
return reverse(name, args=[self.organization.slug, self.slug, *args])
Project.url · Libraries
2 ms
apps/projects/tests.py:438
session=Session.objects.create(project=self.project, run=run, ingest=ingest),
TestProjectTestPage.test_project_test_page_with_durations · Database
2 ms
apps/projects/tests.py:435
TestRun.objects.create(
TestProjectTestPage.test_project_test_page_with_durations · Database
2 ms
apps/projects/tests.py:446
session=Session.objects.create(project=self.project, run=run, ingest=ingest),
TestProjectTestPage.test_project_test_page_with_durations · Database
2 ms
apps/projects/tests.py:443
TestRun.objects.create(
TestProjectTestPage.test_project_test_page_with_durations · Database
2 ms

Fixtures

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

Database

52 queries · 22 ms

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

3×
INSERT INTO "projects_session" ("project_id", "run_id", "status", "exit_status", "date_created", "date_finished", "ingest_id", "environment_id", "python_version", "platform", "cpu_count", "dirty", "changed_files", "tests_count", "failed_count", "skipped_count") VALUES (%s, %s, %s, %s, %s, %s, %s, %…
3×
INSERT INTO "projects_testrun" ("ingest_id", "test_id", "run_id", "session_id", "status", "duration", "failed", "passed", "skipped", "muted", "caplog", "capstderr", "capstdout", "longrepr", "keywords", "location", "date_run") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %…
3×
SELECT "projects_testperf"."id", "projects_testperf"."project_id", "projects_testperf"."test_id", "projects_testperf"."profile_id", "projects_testperf"."part", "projects_testperf"."environment_id", "projects_testperf"."outcome", "projects_testperf"."duration", "projects_testperf"."setup", "projects…

Biggest pieces of work

call test body
apps/projects/tests.py:459
70 ms
call setUp
apps/projects/tests.py:412
8 ms
call _post_teardown
django/test/testcases.py:1240
4 ms
call _pre_setup
django/test/testcases.py:1164
2 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 50 results, oldest first in the strip
When Environment Outcome Duration Commit
an hour ago CI github-actions:test passed 85 ms 9caa567 main Profile
an hour ago CI github-actions:test passed 87 ms ec75501 main Profile
8 hours ago CI github-actions:test passed 91 ms d2c12e5 main Profile
8 hours ago CI github-actions:test passed 53 ms 0b902f6 main Profile
8 hours ago CI github-actions:test passed 84 ms 78a4357 main Profile
2 years ago CI github-actions passed 173 ms 61209a6 main Run
2 years, 2 months ago CI github-actions passed 155 ms 55ca4c2 main Run
2 years, 3 months ago CI github-actions passed 170 ms d007c85 main Run
2 years, 4 months ago CI github-actions passed 165 ms 3d86013 main Run
2 years, 4 months ago CI github-actions passed 164 ms bed0acb main Run
2 years, 4 months ago CI github-actions passed 162 ms 78c1737 main Run
2 years, 4 months ago CI github-actions passed 155 ms 1a5664b main Run
2 years, 5 months ago CI github-actions passed 222 ms c3680ac main Run
2 years, 5 months ago CI github-actions passed 199 ms 06a1df4 main Run
2 years, 5 months ago CI github-actions passed 158 ms a29c34e main Run
2 years, 5 months ago CI github-actions passed 156 ms e55e63f main Run
2 years, 5 months ago CI github-actions passed 158 ms ba5cb67 main Run
2 years, 6 months ago CI github-actions passed 162 ms 7c123d8 main Run
2 years, 6 months ago CI github-actions passed 157 ms 5ae45e1 main Run
2 years, 6 months ago CI github-actions passed 152 ms 1680367 main Run