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

ProjectRunsPage::test_project_with_no_runs

First seen 2 years, 9 months ago in b9e98d9
CI github-actions:test 5 runs
Average
63 ms
median 66 ms
max 82 ms
Phases
Setup 0.72 ms Call 62 ms Teardown 0.17 ms
Categories
Database 30 ms Other (Libraries, Templates, Unsampled, pytest, ...) 33 ms

35 database queries per run

Needs 20 KB of memory (max 52 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, an hour ago · open run
Hide pytest frames
call65 ms98.6%
CallInfo.from_call_pytest/runner.py:35365 ms98.6%
call_and_report.<locals>.<lambda>_pytest/runner.py:24565 ms98.6%
HookCaller.__call__pluggy/_hooks.py:51265 ms98.6%
PluginManager._hookexecpluggy/_manager.py:12065 ms98.6%
_multicallpluggy/_callers.py:12163 ms95.7%
pytest_runtest_call_pytest/runner.py:17963 ms95.7%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:57363 ms95.7%
SimpleTestCase.__call__django/test/testcases.py:31363 ms95.7%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36861 ms92.8%
TestCase.__call__<stdlib>/unittest/case.py:74761 ms92.8%
TestCase.run<stdlib>/unittest/case.py:69148 ms72.5%
TestCase._callTestMethod<stdlib>/unittest/case.py:63748 ms72.5%
ProjectRunsPage.test_project_with_no_runsapps/projects/tests.py:282 response = self.client.get(self.project.url("project_runs"))48 ms72.5%
Client.getdjango/test/client.py:112448 ms72.5%
RequestFactory.getdjango/test/client.py:47548 ms72.5%
RequestFactory.genericdjango/test/client.py:67148 ms72.5%
Client.requestdjango/test/client.py:108248 ms72.5%
ClientHandler.__call__django/test/client.py:17327 ms40.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6227 ms40.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10427 ms40.6%
WhiteNoise.add_fileswhitenoise/base.py:10827 ms40.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12013 ms20.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13113 ms20.3%
WhiteNoise.get_static_filewhitenoise/base.py:20810 ms14.5%
StaticFile.__init__whitenoise/responders.py:746 ms8.7%
parsedate<stdlib>/email/_parseaddr.py:1856 ms8.7%
StaticFile.__init__whitenoise/responders.py:734 ms5.8%
StaticFile.get_headerswhitenoise/responders.py:1692 ms2.9%
StaticFile.get_headerswhitenoise/responders.py:1762 ms2.9%
formatdate<stdlib>/email/utils.py:2662 ms2.9%
WhiteNoise.get_static_filewhitenoise/base.py:2034 ms5.8%
WhiteNoise.add_cache_headerswhitenoise/base.py:2242 ms2.9%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms2.9%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms2.9%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms2.9%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2052 ms2.9%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1862 ms2.9%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2092 ms2.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11513 ms20.3%
scantreewhitenoise/base.py:26211 ms17.4%
scantreewhitenoise/base.py:26211 ms17.4%
scantreewhitenoise/base.py:26211 ms17.4%
scantreewhitenoise/base.py:26211 ms17.4%
scantreewhitenoise/base.py:26210 ms14.5%
scantreewhitenoise/base.py:26410 ms14.5%
<GC>~8 ms11.6%
scantreewhitenoise/base.py:2602 ms2.9%
scantreewhitenoise/base.py:2642 ms2.9%
ClientHandler.__call__django/test/client.py:18621 ms31.9%
BaseHandler.get_responsedjango/core/handlers/base.py:14121 ms31.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5521 ms31.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13021 ms31.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5521 ms31.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30921 ms31.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5521 ms31.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12321 ms31.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5521 ms31.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms26.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms26.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms26.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms26.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms26.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms26.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms26.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms26.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms26.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms26.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms26.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms26.1%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3417 ms26.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms26.1%
BaseHandler._get_responsedjango/core/handlers/base.py:19817 ms26.1%
project_runsapps/projects/urls.py:3876 ms8.7%
shellapps/projects/urls.py:71 return org_shell(request, project.organization if project else None, section) | {4 ms5.8%
org_shellapps/orgs/views.py:40 "org_projects": list(organization.project_set.order_by("name")) if member else [],2 ms2.9%
QuerySet.__iter__django/db/models/query.py:3902 ms2.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.9%
ModelIterable.__iter__django/db/models/query.py:952 ms2.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.9%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.9%
Cursor.executepsycopg/cursor.py:1132 ms2.9%
Connection.waitpsycopg/connection.py:4952 ms2.9%
org_shellapps/orgs/views.py:422 ms2.9%
Organization.is_ownerapps/orgs/models.py:65 return user.is_authenticated and self.membership_set.filter(user=user, role=Membership.Role.OWNER).exists()2 ms2.9%
QuerySet.existsdjango/db/models/query.py:13372 ms2.9%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms2.9%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms2.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.9%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.9%
Cursor.executepsycopg/cursor.py:1132 ms2.9%
Connection.waitpsycopg/connection.py:4952 ms2.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2052 ms2.9%
BaseCursor._convert_querypsycopg/_cursor_base.py:4652 ms2.9%
PostgresClientQuery.convertpsycopg/_queries.py:2892 ms2.9%
PostgresClientQuery.dumppsycopg/_queries.py:2992 ms2.9%
PostgresClientQuery.dump.<locals>.<genexpr>psycopg/_queries.py:3002 ms2.9%
shellapps/projects/urls.py:732 ms2.9%
can_manageapps/projects/urls.py:442 ms2.9%
can_manage_projectapps/projects/urls.py:40 return user.is_superuser or project.organization.membership_set.filter(user=user).exists()2 ms2.9%
QuerySet.existsdjango/db/models/query.py:13372 ms2.9%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms2.9%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms2.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.9%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.9%
Cursor.executepsycopg/cursor.py:1132 ms2.9%
Connection.waitpsycopg/connection.py:4952 ms2.9%
project_runsapps/projects/urls.py:383 return render(4 ms5.8%
renderdjango/shortcuts.py:254 ms5.8%
render_to_stringdjango/template/loader.py:612 ms2.9%
get_templatedjango/template/loader.py:152 ms2.9%
DjangoTemplates.get_templatedjango/template/backends/django.py:792 ms2.9%
Engine.get_templatedjango/template/engine.py:1862 ms2.9%
Engine.find_templatedjango/template/engine.py:1592 ms2.9%
Loader.get_templatedjango/template/loaders/cached.py:572 ms2.9%
Loader.get_templatedjango/template/loaders/base.py:282 ms2.9%
__init____init__:-12 ms2.9%
Template.__init__django/template/base.py:1572 ms2.9%
Template.compile_nodelistdjango/template/base.py:1992 ms2.9%
Parser.parsedjango/template/base.py:5832 ms2.9%
do_extendsdjango/template/loader_tags.py:3072 ms2.9%
Parser.parsedjango/template/base.py:5832 ms2.9%
do_blockdjango/template/loader_tags.py:2352 ms2.9%
Parser.parsedjango/template/base.py:5832 ms2.9%
do_ifdjango/template/defaulttags.py:9942 ms2.9%
Parser.parsedjango/template/base.py:5832 ms2.9%
do_fordjango/template/defaulttags.py:8942 ms2.9%
Parser.parsedjango/template/base.py:5832 ms2.9%
do_includedjango/template/loader_tags.py:3672 ms2.9%
Parser.compile_filterdjango/template/base.py:6762 ms2.9%
__init____init__:-12 ms2.9%
FilterExpression.__init__django/template/base.py:7552 ms2.9%
__init____init__:-12 ms2.9%
render_to_stringdjango/template/loader.py:622 ms2.9%
Template.renderdjango/template/backends/django.py:1072 ms2.9%
Template.renderdjango/template/base.py:1742 ms2.9%
instrumented_test_renderdjango/test/utils.py:1142 ms2.9%
NodeList.renderdjango/template/base.py:10912 ms2.9%
Node.render_annotateddjango/template/base.py:10522 ms2.9%
ExtendsNode.renderdjango/template/loader_tags.py:1602 ms2.9%
instrumented_test_renderdjango/test/utils.py:1142 ms2.9%
NodeList.renderdjango/template/base.py:10912 ms2.9%
Node.render_annotateddjango/template/base.py:10522 ms2.9%
ExtendsNode.renderdjango/template/loader_tags.py:1602 ms2.9%
instrumented_test_renderdjango/test/utils.py:1142 ms2.9%
NodeList.renderdjango/template/base.py:10912 ms2.9%
Node.render_annotateddjango/template/base.py:10522 ms2.9%
BlockNode.renderdjango/template/loader_tags.py:662 ms2.9%
NodeList.renderdjango/template/base.py:10912 ms2.9%
Node.render_annotateddjango/template/base.py:10522 ms2.9%
BlockNode.renderdjango/template/loader_tags.py:662 ms2.9%
NodeList.renderdjango/template/base.py:10912 ms2.9%
Node.render_annotateddjango/template/base.py:10522 ms2.9%
IfNode.renderdjango/template/defaulttags.py:3332 ms2.9%
NodeList.renderdjango/template/base.py:10912 ms2.9%
Node.render_annotateddjango/template/base.py:10522 ms2.9%
IfNode.renderdjango/template/defaulttags.py:3332 ms2.9%
NodeList.renderdjango/template/base.py:10912 ms2.9%
Node.render_annotateddjango/template/base.py:10522 ms2.9%
WithNode.renderdjango/template/defaulttags.py:5792 ms2.9%
FilterExpression.resolvedjango/template/base.py:7882 ms2.9%
Variable.resolvedjango/template/base.py:9282 ms2.9%
Variable._resolve_lookupdjango/template/base.py:10002 ms2.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.9%
QuerySet.firstdjango/db/models/query.py:11452 ms2.9%
QuerySet.__iter__django/db/models/query.py:3902 ms2.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.9%
ModelIterable.__iter__django/db/models/query.py:952 ms2.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.9%
project_runsapps/projects/urls.py:3462 ms2.9%
find_projectapps/projects/urls.py:522 ms2.9%
can_viewapps/projects/urls.py:332 ms2.9%
can_manage_projectapps/projects/urls.py:38 if not user.is_authenticated:2 ms2.9%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2512 ms2.9%
SimpleLazyObject._setupdjango/utils/functional.py:4042 ms2.9%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:402 ms2.9%
get_userdjango/contrib/auth/middleware.py:202 ms2.9%
get_userdjango/contrib/auth/__init__.py:3112 ms2.9%
_get_user_session_keydjango/contrib/auth/__init__.py:952 ms2.9%
SessionBase.__getitem__django/contrib/sessions/backends/base.py:552 ms2.9%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2512 ms2.9%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms2.9%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms2.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.9%
QuerySet.getdjango/db/models/query.py:6352 ms2.9%
QuerySet.__len__django/db/models/query.py:3722 ms2.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.9%
ModelIterable.__iter__django/db/models/query.py:952 ms2.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.9%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.9%
Cursor.executepsycopg/cursor.py:1132 ms2.9%
Connection.waitpsycopg/connection.py:4952 ms2.9%
project_runsapps/projects/urls.py:359 runs = Run.objects.filter(q).order_by("-date_created")2 ms2.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.9%
QuerySet.filterdjango/db/models/query.py:15422 ms2.9%
QuerySet._filter_or_excludedjango/db/models/query.py:15552 ms2.9%
QuerySet._chaindjango/db/models/query.py:19732 ms2.9%
project_runsapps/projects/urls.py:368 page_runs = list(Run.objects.select_related("commit").filter(id__in=[p.id for p in page_obj]).annotate_counts())2 ms2.9%
QuerySet.__iter__django/db/models/query.py:3902 ms2.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.9%
ModelIterable.__iter__django/db/models/query.py:952 ms2.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms2.9%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms2.9%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms2.9%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms2.9%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms2.9%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms2.9%
Aggregate.as_sqldjango/db/models/aggregates.py:2092 ms2.9%
Func.as_sqldjango/db/models/expressions.py:11072 ms2.9%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms2.9%
Case.as_sqldjango/db/models/expressions.py:17252 ms2.9%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms2.9%
project_runsapps/projects/urls.py:373 .prefetch_related("profile_set")2 ms2.9%
QuerySet.prefetch_relateddjango/db/models/query.py:16782 ms2.9%
QuerySet._chaindjango/db/models/query.py:19732 ms2.9%
QuerySet._clonedjango/db/models/query.py:19862 ms2.9%
Query.chaindjango/db/models/sql/query.py:4332 ms2.9%
Query.clonedjango/db/models/sql/query.py:4192 ms2.9%
deepcopy<stdlib>/copy.py:1632 ms2.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3114 ms5.8%
SessionMiddleware.process_responsedjango/contrib/sessions/middleware.py:594 ms5.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1232 ms2.9%
SessionStore.create_model_instancedjango/contrib/sessions/backends/db.py:1022 ms2.9%
SessionBase.encodedjango/contrib/sessions/backends/base.py:1262 ms2.9%
dumpsdjango/core/signing.py:1512 ms2.9%
Signer.sign_objectdjango/core/signing.py:2262 ms2.9%
JSONSerializer.dumpsdjango/core/signing.py:1262 ms2.9%
dumps<stdlib>/json/__init__.py:2412 ms2.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms2.9%
Atomic.__exit__django/db/transaction.py:2472 ms2.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.9%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms2.9%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3742 ms2.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.9%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3202 ms2.9%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2982 ms2.9%
TestCase.run<stdlib>/unittest/case.py:68713 ms20.3%
TestCase._callSetUp<stdlib>/unittest/case.py:63413 ms20.3%
ProjectRunsPage.setUpapps/projects/tests.py:268 self.client.force_login(self.user)13 ms20.3%
ClientMixin.force_logindjango/test/client.py:85513 ms20.3%
ClientMixin._logindjango/test/client.py:8816 ms8.7%
logindjango/contrib/auth/__init__.py:1874 ms5.8%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4344 ms5.8%
SessionStore.createdjango/contrib/sessions/backends/db.py:744 ms5.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1264 ms5.8%
Atomic.__enter__django/db/transaction.py:2112 ms2.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.9%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms2.9%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms2.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.9%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.9%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.9%
Cursor.executepsycopg/cursor.py:1132 ms2.9%
Connection.waitpsycopg/connection.py:4952 ms2.9%
Atomic.__exit__django/db/transaction.py:2472 ms2.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.9%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms2.9%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms2.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.9%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.9%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.9%
Cursor.executepsycopg/cursor.py:1132 ms2.9%
Connection.waitpsycopg/connection.py:4952 ms2.9%
logindjango/contrib/auth/__init__.py:1752 ms2.9%
SessionBase.__contains__django/contrib/sessions/backends/base.py:522 ms2.9%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2512 ms2.9%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms2.9%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms2.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.9%
QuerySet.getdjango/db/models/query.py:6352 ms2.9%
QuerySet.__len__django/db/models/query.py:3722 ms2.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.9%
ModelIterable.__iter__django/db/models/query.py:952 ms2.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.9%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.9%
Cursor.executepsycopg/cursor.py:1132 ms2.9%
Connection.waitpsycopg/connection.py:4952 ms2.9%
ClientMixin._logindjango/test/client.py:8764 ms5.8%
ClientMixin.sessiondjango/test/client.py:8124 ms5.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1214 ms5.8%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms2.9%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1982 ms2.9%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms2.9%
QuerySet.existsdjango/db/models/query.py:13372 ms2.9%
Query.has_resultsdjango/db/models/sql/query.py:6792 ms2.9%
Query.existsdjango/db/models/sql/query.py:6752 ms2.9%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms2.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms2.9%
Model.savedjango/db/models/base.py:8742 ms2.9%
Model.save_basedjango/db/models/base.py:9662 ms2.9%
Model._save_tabledjango/db/models/base.py:11672 ms2.9%
Model._do_insertdjango/db/models/base.py:12182 ms2.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.9%
QuerySet._insertdjango/db/models/query.py:19182 ms2.9%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19242 ms2.9%
SQLInsertCompiler.as_sql.<locals>.<genexpr>django/db/models/sql/compiler.py:19052 ms2.9%
ClientMixin._logindjango/test/client.py:8834 ms5.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1232 ms2.9%
SessionStore.create_model_instancedjango/contrib/sessions/backends/db.py:1022 ms2.9%
SessionBase.encodedjango/contrib/sessions/backends/base.py:1262 ms2.9%
dumpsdjango/core/signing.py:1512 ms2.9%
Signer.sign_objectdjango/core/signing.py:2322 ms2.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms2.9%
Atomic.__exit__django/db/transaction.py:2472 ms2.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.9%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms2.9%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms2.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.9%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.9%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.9%
Cursor.executepsycopg/cursor.py:1132 ms2.9%
Connection.waitpsycopg/connection.py:4952 ms2.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.9%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3712 ms2.9%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms2.9%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms2.9%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms2.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.9%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.9%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.9%
Cursor.executepsycopg/cursor.py:1132 ms2.9%
Connection.waitpsycopg/connection.py:4952 ms2.9%
_multicallpluggy/_callers.py:1522 ms2.9%
CaptureManager.pytest_runtest_call_pytest/capture.py:8992 ms2.9%
_GeneratorContextManager.__exit__<stdlib>/contextlib.py:2102 ms2.9%
CaptureManager.item_capture_pytest/capture.py:8672 ms2.9%
CaptureManager.read_global_capture_pytest/capture.py:8032 ms2.9%
MultiCapture.readouterr_pytest/capture.py:7072 ms2.9%
FDCapture.snap_pytest/capture.py:5922 ms2.9%
Estimated from 34 samples; phase durations are exact. Frames from pytest and pluggy are shown .

Hot lines in your code

apps/projects/tests.py:282
response = self.client.get(self.project.url("project_runs"))
ProjectRunsPage.test_project_with_no_runs · Libraries
30 ms
apps/projects/tests.py:268
self.client.force_login(self.user)
ProjectRunsPage.setUp · Database
13 ms
apps/projects/urls.py:383
return render(
project_runs · Templates
4 ms
apps/projects/urls.py:38
if not user.is_authenticated:
can_manage_project · Database
2 ms
apps/projects/urls.py:359
runs = Run.objects.filter(q).order_by("-date_created")
project_runs · Database
2 ms
apps/projects/urls.py:368
page_runs = list(Run.objects.select_related("commit").filter(id__in=[p.id for p in page_obj]).annotate_counts())
project_runs · Database
2 ms
apps/projects/urls.py:373
.prefetch_related("profile_set")
project_runs · Database
2 ms
apps/orgs/views.py:40
"org_projects": list(organization.project_set.order_by("name")) if member else [],
org_shell · Database
2 ms
apps/orgs/models.py:65
return user.is_authenticated and self.membership_set.filter(user=user, role=Membership.Role.OWNER).exists()
Organization.is_owner · Database
2 ms
apps/projects/urls.py:40
return user.is_superuser or project.organization.membership_set.filter(user=user).exists()
can_manage_project · Database
2 ms

Fixtures

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

Database

35 queries · 11 ms
No repeated queries.

Biggest pieces of work

call test body
apps/projects/tests.py:282
48 ms
call setUp
apps/projects/tests.py:268
13 ms
call _post_teardown
django/test/testcases.py:1240
2 ms
call pytest internals 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 66 ms 9caa567 main Profile
an hour ago CI github-actions:test passed 66 ms ec75501 main Profile
8 hours ago CI github-actions:test passed 82 ms d2c12e5 main Profile
8 hours ago CI github-actions:test passed 34 ms 0b902f6 main Profile
8 hours ago CI github-actions:test passed 67 ms 78a4357 main Profile
2 years ago CI github-actions passed 136 ms 61209a6 main Run
2 years, 2 months ago CI github-actions passed 156 ms 55ca4c2 main Run
2 years, 3 months ago CI github-actions passed 145 ms d007c85 main Run
2 years, 4 months ago CI github-actions passed 146 ms 3d86013 main Run
2 years, 4 months ago CI github-actions passed 143 ms bed0acb main Run
2 years, 4 months ago CI github-actions passed 149 ms 78c1737 main Run
2 years, 4 months ago CI github-actions passed 135 ms 1a5664b main Run
2 years, 5 months ago CI github-actions passed 133 ms c3680ac main Run
2 years, 5 months ago CI github-actions passed 136 ms 06a1df4 main Run
2 years, 5 months ago CI github-actions passed 138 ms a29c34e main Run
2 years, 5 months ago CI github-actions passed 133 ms e55e63f main Run
2 years, 5 months ago CI github-actions passed 138 ms ba5cb67 main Run
2 years, 6 months ago CI github-actions passed 137 ms 7c123d8 main Run
2 years, 6 months ago CI github-actions passed 134 ms 5ae45e1 main Run
2 years, 6 months ago CI github-actions passed 131 ms 1680367 main Run