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

ProjectRunsPage::test_other_peoples_project

First seen 2 years, 10 months ago in b9e98d9
CI github-actions:test 12 runs
Average
46 ms
median 50 ms
max 70 ms
Phases
Setup 0.71 ms Call 45 ms Teardown 0.16 ms
Categories
Database 19 ms Test code 0.14 ms Other (Libraries, Unsampled, Templates, pytest) 27 ms

28 database queries per run

Needs 349 KB of memory (max 828 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 16 hours ago · open run
Show pytest frames
call53 ms98.2%
ProjectRunsPage.test_other_peoples_projectapps/projects/tests.py:279 response = self.client.get(other_project.url("project_runs"))36 ms66.4%
Client.getdjango/test/client.py:112436 ms66.4%
RequestFactory.getdjango/test/client.py:47536 ms66.4%
RequestFactory.genericdjango/test/client.py:67136 ms66.4%
Client.requestdjango/test/client.py:108236 ms66.4%
ClientHandler.__call__django/test/client.py:18622 ms40.4%
BaseHandler.get_responsedjango/core/handlers/base.py:14122 ms40.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5522 ms40.4%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13022 ms40.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5522 ms40.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30922 ms40.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5522 ms40.4%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12322 ms40.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5522 ms40.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30922 ms40.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5522 ms40.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30922 ms40.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5522 ms40.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30922 ms40.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5522 ms40.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30922 ms40.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5522 ms40.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30922 ms40.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5522 ms40.4%
MiddlewareMixin.__call__django/utils/deprecation.py:30922 ms40.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5522 ms40.4%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3422 ms40.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5522 ms40.4%
BaseHandler._get_responsedjango/core/handlers/base.py:19822 ms40.4%
project_runsapps/projects/urls.py:34622 ms40.4%
find_projectapps/projects/urls.py:49 project = get_object_or_404(11 ms20.2%
get_object_or_404django/shortcuts.py:9011 ms20.2%
QuerySet.getdjango/db/models/query.py:63511 ms20.2%
QuerySet.__len__django/db/models/query.py:37211 ms20.2%
QuerySet._fetch_alldjango/db/models/query.py:200011 ms20.2%
ModelIterable.__iter__django/db/models/query.py:959 ms17.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16249 ms17.3%
CursorWrapper.executedjango/db/backends/utils.py:799 ms17.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:929 ms17.3%
CursorWrapper._executedjango/db/backends/utils.py:1058 ms14.4%
Cursor.executepsycopg/cursor.py:1138 ms14.4%
Connection.waitpsycopg/connection.py:4958 ms14.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2068 ms14.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2868 ms14.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:788 ms14.4%
ModelIterable.__iter__django/db/models/query.py:1282 ms2.9%
Model.from_dbdjango/db/models/base.py:6052 ms2.9%
Model.__init__django/db/models/base.py:5102 ms2.9%
find_projectapps/projects/urls.py:5211 ms20.2%
can_viewapps/projects/urls.py:3311 ms20.2%
can_manage_projectapps/projects/urls.py:38 if not user.is_authenticated:11 ms20.2%
new_method_proxy.<locals>.innerdjango/utils/functional.py:25111 ms20.2%
SimpleLazyObject._setupdjango/utils/functional.py:40411 ms20.2%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:409 ms17.3%
get_userdjango/contrib/auth/middleware.py:209 ms17.3%
get_userdjango/contrib/auth/__init__.py:3119 ms17.3%
_get_user_session_keydjango/contrib/auth/__init__.py:959 ms17.3%
SessionBase.__getitem__django/contrib/sessions/backends/base.py:559 ms17.3%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2519 ms17.3%
SessionStore.loaddjango/contrib/sessions/backends/db.py:559 ms17.3%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:349 ms17.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:879 ms17.3%
QuerySet.getdjango/db/models/query.py:6358 ms14.4%
QuerySet.__len__django/db/models/query.py:3728 ms14.4%
QuerySet._fetch_alldjango/db/models/query.py:20008 ms14.4%
ModelIterable.__iter__django/db/models/query.py:958 ms14.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16246 ms11.6%
CursorWrapper.executedjango/db/backends/utils.py:796 ms11.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:926 ms11.6%
CursorWrapper._executedjango/db/backends/utils.py:1056 ms11.6%
Cursor.executepsycopg/cursor.py:1136 ms11.6%
Connection.waitpsycopg/connection.py:4956 ms11.6%
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%
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:882 ms2.9%
WhereNode.split_having_qualifydjango/db/models/sql/where.py:472 ms2.9%
cached_property.__get__django/utils/functional.py:472 ms2.9%
WhereNode.contains_over_clausedjango/db/models/sql/where.py:2642 ms2.9%
WhereNode._contains_over_clausedjango/db/models/sql/where.py:2592 ms2.9%
WhereNode._contains_over_clause.<locals>.<genexpr>django/db/models/sql/where.py:2592 ms2.9%
QuerySet.getdjango/db/models/query.py:6252 ms2.9%
QuerySet.filterdjango/db/models/query.py:15422 ms2.9%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms2.9%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms2.9%
Query.add_qdjango/db/models/sql/query.py:16712 ms2.9%
Query._add_qdjango/db/models/sql/query.py:17032 ms2.9%
Query.build_filterdjango/db/models/sql/query.py:15992 ms2.9%
Query.trim_joinsdjango/db/models/sql/query.py:20232 ms2.9%
ClientHandler.__call__django/test/client.py:17313 ms23.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6213 ms23.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10413 ms23.1%
WhiteNoise.add_fileswhitenoise/base.py:10813 ms23.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1209 ms17.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1319 ms17.3%
WhiteNoise.get_static_filewhitenoise/base.py:2086 ms11.6%
StaticFile.__init__whitenoise/responders.py:723 ms5.8%
StaticFile.get_file_statswhitenoise/responders.py:1613 ms5.8%
StaticFile.__init__whitenoise/responders.py:732 ms2.9%
StaticFile.__init__whitenoise/responders.py:772 ms2.9%
StaticFile.get_alternativeswhitenoise/responders.py:1982 ms2.9%
StaticFile.get_alternatives.<locals>.<lambda>whitenoise/responders.py:1982 ms2.9%
<GC>~2 ms2.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms5.8%
scantreewhitenoise/base.py:2623 ms5.8%
scantreewhitenoise/base.py:2623 ms5.8%
scantreewhitenoise/base.py:2623 ms5.8%
scantreewhitenoise/base.py:2623 ms5.8%
scantreewhitenoise/base.py:2622 ms2.9%
scantreewhitenoise/base.py:2602 ms2.9%
scantreewhitenoise/base.py:2642 ms2.9%
<GC>~2 ms2.9%
ClientHandler.__call__django/test/client.py:2082 ms2.9%
Signal.connectdjango/dispatch/dispatcher.py:1102 ms2.9%
iscoroutinefunction<stdlib>/inspect.py:336 return _has_code_flag(obj, CO_COROUTINE) or _has_coroutine_mark(obj)2 ms2.9%
ProjectRunsPage.setUpapps/projects/tests.py:269 self.client.force_login(self.user)13 ms23.1%
ClientMixin.force_logindjango/test/client.py:85513 ms23.1%
ClientMixin._logindjango/test/client.py:88113 ms23.1%
logindjango/contrib/auth/__init__.py:18713 ms23.1%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:43713 ms23.1%
SessionStore.deletedjango/contrib/sessions/backends/db.py:17513 ms23.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:8711 ms20.2%
QuerySet.getdjango/db/models/query.py:63511 ms20.2%
QuerySet.__len__django/db/models/query.py:37211 ms20.2%
QuerySet._fetch_alldjango/db/models/query.py:200011 ms20.2%
ModelIterable.__iter__django/db/models/query.py:9511 ms20.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162411 ms20.2%
CursorWrapper.executedjango/db/backends/utils.py:7911 ms20.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9211 ms20.2%
CursorWrapper._executedjango/db/backends/utils.py:10511 ms20.2%
Cursor.executepsycopg/cursor.py:11311 ms20.2%
Connection.waitpsycopg/connection.py:49511 ms20.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:20611 ms20.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2869 ms17.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:789 ms17.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3122 ms2.9%
Model.deletedjango/db/models/base.py:12982 ms2.9%
Collector.deletedjango/db/models/deletion.py:4522 ms2.9%
DeleteQuery.delete_batchdjango/db/models/sql/subqueries.py:392 ms2.9%
Query.add_filterdjango/db/models/sql/query.py:16512 ms2.9%
Query.add_qdjango/db/models/sql/query.py:16712 ms2.9%
Query._add_qdjango/db/models/sql/query.py:17032 ms2.9%
Query.build_filterdjango/db/models/sql/query.py:15602 ms2.9%
Query.resolve_lookup_valuedjango/db/models/sql/query.py:13412 ms2.9%
ProjectRunsPage.test_other_peoples_projectapps/projects/tests.py:2783 ms5.8%
make_projectapps/projects/testing.py:67 slug=unique_slug(name, organization.project_set.all(), fallback="project", reserved=RESERVED_PROJECT_SLUGS),2 ms2.9%
unique_slugapps/orgs/models.py:46 while slug in reserved or taken.filter(slug=slug).exists():2 ms2.9%
QuerySet.filterdjango/db/models/query.py:15412 ms2.9%
QuerySet._not_support_combined_queriesdjango/db/models/query.py:20742 ms2.9%
QuerySet.querydjango/db/models/query.py:3062 ms2.9%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms2.9%
Query.add_qdjango/db/models/sql/query.py:16712 ms2.9%
make_projectapps/projects/testing.py:64 project = Project.objects.create(2 ms2.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.9%
QuerySet.createdjango/db/models/query.py:6692 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:19252 ms2.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 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%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms2.9%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms2.9%
TestCase._rollback_atomicsdjango/test/testcases.py:14052 ms2.9%
Atomic.__exit__django/db/transaction.py:2832 ms2.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.9%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4132 ms2.9%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3712 ms2.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 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%
Estimated from 34 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/tests.py:279
response = self.client.get(other_project.url("project_runs"))
ProjectRunsPage.test_other_peoples_project · Libraries
14 ms
apps/projects/tests.py:269
self.client.force_login(self.user)
ProjectRunsPage.setUp · Database
13 ms
apps/projects/urls.py:49
project = get_object_or_404(
find_project · Database
11 ms
apps/projects/urls.py:38
if not user.is_authenticated:
can_manage_project · Database
11 ms
apps/orgs/models.py:46
while slug in reserved or taken.filter(slug=slug).exists():
unique_slug · Database
2 ms
apps/projects/testing.py:64
project = Project.objects.create(
make_project · Database
2 ms

Fixtures

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

Database

28 queries · 7 ms
No repeated queries.

Biggest pieces of work

call test body
apps/projects/tests.py:279
39 ms
call setUp
apps/projects/tests.py:269
13 ms
call _post_teardown
django/test/testcases.py:1240
2 ms

Reliability

12 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 12 results, oldest first in the strip
When Environment Outcome Duration Commit
16 hours ago CI github-actions:test passed 54 ms e141198 main Profile
1 week, 5 days ago CI github-actions:test passed 31 ms 46ec2aa main Profile
2 weeks, 1 day ago CI github-actions:test passed 44 ms afde85b main Profile
2 weeks, 1 day ago CI github-actions:test passed 34 ms fe29f9d main Profile
2 weeks, 1 day ago CI github-actions:test passed 70 ms 044719a main Profile
2 weeks, 2 days ago CI github-actions:test passed 34 ms b3fedae main Profile
2 weeks, 4 days ago CI github-actions:test passed 52 ms 43c4eda main Profile
2 weeks, 6 days ago CI github-actions:test passed 52 ms 9caa567 main Profile
2 weeks, 6 days ago CI github-actions:test passed 51 ms ec75501 main Profile
3 weeks ago CI github-actions:test passed 58 ms d2c12e5 main Profile
3 weeks ago CI github-actions:test passed 26 ms 0b902f6 main Profile
3 weeks ago CI github-actions:test passed 49 ms 78a4357 main Profile