Tests / apps/api/tests.py
IngestStartEndpointTest::test_all_test_status_types
Muted
First seen 2 years, 9 months ago in 9ff0a7e
CI
github-actions:test
3 runs
Average
293 ms
median 313 ms
max 378 ms
max 378 ms
Phases
Setup 2 ms
Call 291 ms
Teardown 0.27 ms
Categories
Database 163 ms
App code 4 ms
Factories 0.93 ms
Other (DB schema, Libraries, Imports, Unsampled) 125 ms
136 database queries per run
Needs 87 KB of memory (max 212 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 6 hours ago ·
open run
setup3 ms0.8%
_gt_from_lt<stdlib>/functools.py:91 op_result = type(self).__lt__(self, other)3 ms0.8%
call374 ms99.1%
_post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()131 ms34.7%
_fixture_teardowndjango/test/testcases.py:1275131 ms34.7%
call_commanddjango/core/management/__init__.py:195126 ms33.3%
executedjango/core/management/base.py:460126 ms33.3%
handledjango/core/management/commands/flush.py:7483 ms21.9%
execute_sql_flushdjango/db/backends/base/operations.py:46864 ms17.0%
executedjango/db/backends/utils.py:7964 ms17.0%
_execute_with_wrappersdjango/db/backends/utils.py:9264 ms17.0%
_executedjango/db/backends/utils.py:10364 ms17.0%
executepsycopg/cursor.py:11464 ms17.0%
waitpsycopg/connection.py:48364 ms17.0%
execute_sql_flushdjango/db/backends/base/operations.py:46219 ms5.0%
__exit__django/db/transaction.py:26319 ms5.0%
innerdjango/utils/asyncio.py:2619 ms5.0%
commitdjango/db/backends/base/base.py:32719 ms5.0%
_commitdjango/db/backends/base/base.py:30319 ms5.0%
commitpsycopg/connection.py:30419 ms5.0%
waitpsycopg/connection.py:48319 ms5.0%
handledjango/core/management/commands/flush.py:9243 ms11.3%
emit_post_migrate_signaldjango/core/management/sql.py:5243 ms11.3%
senddjango/dispatch/dispatcher.py:20943 ms11.3%
create_permissionsdjango/contrib/auth/management/__init__.py:6119 ms5.0%
create_contenttypesdjango/contrib/contenttypes/management/__init__.py:1258 ms2.1%
__iter__django/db/models/query.py:3908 ms2.1%
_fetch_alldjango/db/models/query.py:20008 ms2.1%
__iter__django/db/models/query.py:2778 ms2.1%
results_iterdjango/db/models/sql/compiler.py:15738 ms2.1%
execute_sqldjango/db/models/sql/compiler.py:16248 ms2.1%
executedjango/db/backends/utils.py:798 ms2.1%
_execute_with_wrappersdjango/db/backends/utils.py:928 ms2.1%
_executedjango/db/backends/utils.py:1058 ms2.1%
executepsycopg/cursor.py:1148 ms2.1%
waitpsycopg/connection.py:4838 ms2.1%
create_contenttypesdjango/contrib/contenttypes/management/__init__.py:1328 ms2.1%
bulk_createdjango/db/models/query.py:8338 ms2.1%
_batched_insertdjango/db/models/query.py:19568 ms2.1%
_insertdjango/db/models/query.py:19188 ms2.1%
execute_sqldjango/db/models/sql/compiler.py:19258 ms2.1%
executedjango/db/backends/utils.py:798 ms2.1%
_execute_with_wrappersdjango/db/backends/utils.py:928 ms2.1%
_executedjango/db/backends/utils.py:1058 ms2.1%
executepsycopg/cursor.py:1148 ms2.1%
waitpsycopg/connection.py:4838 ms2.1%
create_contenttypesdjango/contrib/contenttypes/management/__init__.py:1293 ms0.7%
__init__django/db/models/base.py:4913 ms0.7%
create_permissionsdjango/contrib/auth/management/__init__.py:808 ms2.1%
get_for_modelsdjango/contrib/contenttypes/models.py:918 ms2.1%
__iter__django/db/models/query.py:3908 ms2.1%
_fetch_alldjango/db/models/query.py:20008 ms2.1%
__iter__django/db/models/query.py:958 ms2.1%
execute_sqldjango/db/models/sql/compiler.py:16113 ms0.7%
as_sqldjango/db/models/sql/compiler.py:7953 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16243 ms0.7%
executedjango/db/backends/utils.py:793 ms0.7%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms0.7%
_executedjango/db/backends/utils.py:1053 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
_execute_genpsycopg/_cursor_base.py:2063 ms0.7%
_maybe_prepare_genpsycopg/_cursor_base.py:2863 ms0.7%
_execute_sendpsycopg/client_cursor.py:783 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16223 ms0.7%
as_sqldjango/db/models/sql/compiler.py:9163 ms0.7%
create_permissionsdjango/contrib/auth/management/__init__.py:1075 ms1.4%
bulk_createdjango/db/models/query.py:8335 ms1.4%
_batched_insertdjango/db/models/query.py:19565 ms1.4%
_insertdjango/db/models/query.py:19185 ms1.4%
execute_sqldjango/db/models/sql/compiler.py:19255 ms1.4%
executedjango/db/backends/utils.py:795 ms1.4%
_execute_with_wrappersdjango/db/backends/utils.py:925 ms1.4%
_executedjango/db/backends/utils.py:1055 ms1.4%
executepsycopg/cursor.py:1145 ms1.4%
waitpsycopg/connection.py:4835 ms1.4%
create_permissionsdjango/contrib/auth/management/__init__.py:925 ms1.4%
__iter__django/db/models/query.py:3905 ms1.4%
_fetch_alldjango/db/models/query.py:20005 ms1.4%
__iter__django/db/models/query.py:2385 ms1.4%
results_iterdjango/db/models/sql/compiler.py:15735 ms1.4%
execute_sqldjango/db/models/sql/compiler.py:16245 ms1.4%
executedjango/db/backends/utils.py:795 ms1.4%
_execute_with_wrappersdjango/db/backends/utils.py:925 ms1.4%
_executedjango/db/backends/utils.py:1055 ms1.4%
executepsycopg/cursor.py:1145 ms1.4%
waitpsycopg/connection.py:4835 ms1.4%
_execute_genpsycopg/_cursor_base.py:2063 ms0.7%
_maybe_prepare_genpsycopg/_cursor_base.py:2863 ms0.7%
_execute_sendpsycopg/client_cursor.py:783 ms0.7%
create_permissionsdjango/contrib/auth/management/__init__.py:1003 ms0.7%
create_permissionsdjango/contrib/auth/management/__init__.py:883 ms0.7%
call_commanddjango/core/management/__init__.py:1185 ms1.4%
load_command_classdjango/core/management/__init__.py:485 ms1.4%
import_module<stdlib>/importlib/__init__.py:885 ms1.4%
_gcd_import<frozen importlib._bootstrap>:14065 ms1.4%
_find_and_load<frozen importlib._bootstrap>:13715 ms1.4%
_find_and_load_unlocked<frozen importlib._bootstrap>:13425 ms1.4%
_load_unlocked<frozen importlib._bootstrap>:9385 ms1.4%
exec_module<frozen importlib._bootstrap_external>:7633 ms0.7%
exec_module<frozen importlib._bootstrap_external>:7593 ms0.7%
_init_module_attrs<frozen importlib._bootstrap>:8013 ms0.7%
test_all_test_status_typesapps/api/tests.py:285 self.join_workers()88 ms23.4%
join_workersapps/api/tests.py:76 drain(current_app(), raise_on_failure=True)88 ms23.4%
drainpotatoq/testing.py:7388 ms23.4%
executepotatoq/worker/executor.py:28888 ms23.4%
_executepotatoq/worker/executor.py:36883 ms21.9%
__call__potatoq/task.py:19283 ms21.9%
__enter__django/db/transaction.py:19835 ms9.2%
get_autocommitdjango/db/backends/base/base.py:45435 ms9.2%
patched_ensure_connectiondjango/test/testcases.py:30335 ms9.2%
innerdjango/utils/asyncio.py:2635 ms9.2%
ensure_connectiondjango/db/backends/base/base.py:27935 ms9.2%
innerdjango/utils/asyncio.py:2635 ms9.2%
connectdjango/db/backends/base/base.py:25632 ms8.5%
innerdjango/utils/asyncio.py:2632 ms8.5%
get_new_connectiondjango/db/backends/postgresql/base.py:33332 ms8.5%
connectpsycopg/connection.py:10932 ms8.5%
wait_connpsycopg/waiting.py:11824 ms6.4%
_connect_genpsycopg/_connection_base.py:44124 ms6.4%
wait_connpsycopg/waiting.py:1128 ms2.1%
select<stdlib>/selectors.py:4528 ms2.1%
connectdjango/db/backends/base/base.py:2583 ms0.7%
init_connection_statedjango/db/backends/postgresql/base.py:4023 ms0.7%
_configure_connectiondjango/db/backends/postgresql/base.py:3743 ms0.7%
_configure_timezonedjango/db/backends/postgresql/base.py:3573 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
_execute_genpsycopg/_cursor_base.py:2063 ms0.7%
_convert_querypsycopg/_cursor_base.py:4643 ms0.7%
convertpsycopg/_queries.py:2893 ms0.7%
warm_reportsapps/api/tasks.py:266 flaky_report(Project.objects.get(pk=project_id), DEFAULT_DAYS)27 ms7.1%
flaky_reportapps/projects/flakiness.py:25316 ms4.2%
compute_flaky_reportapps/projects/flakiness.py:27211 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(5 ms1.4%
__iter__django/db/models/query.py:3905 ms1.4%
_fetch_alldjango/db/models/query.py:20005 ms1.4%
__iter__django/db/models/query.py:2385 ms1.4%
results_iterdjango/db/models/sql/compiler.py:15735 ms1.4%
execute_sqldjango/db/models/sql/compiler.py:16243 ms0.7%
executedjango/db/backends/utils.py:793 ms0.7%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms0.7%
_executedjango/db/backends/utils.py:1053 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16113 ms0.7%
as_sqldjango/db/models/sql/compiler.py:7673 ms0.7%
pre_sql_setupdjango/db/models/sql/compiler.py:863 ms0.7%
setup_querydjango/db/models/sql/compiler.py:753 ms0.7%
get_selectdjango/db/models/sql/compiler.py:2853 ms0.7%
observations_forapps/projects/flakiness.py:165 test_runs = list(test_runs)3 ms0.7%
__iter__django/db/models/query.py:3903 ms0.7%
_fetch_alldjango/db/models/query.py:20003 ms0.7%
__iter__django/db/models/query.py:2383 ms0.7%
results_iterdjango/db/models/sql/compiler.py:15733 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16623 ms0.7%
cursor_iterdjango/db/models/sql/compiler.py:22543 ms0.7%
<lambda>django/db/models/sql/compiler.py:22543 ms0.7%
innerdjango/db/utils.py:1013 ms0.7%
fetchmanypsycopg/cursor.py:2693 ms0.7%
loaddjango/db/backends/postgresql/psycopg_any.py:333 ms0.7%
observations_forapps/projects/flakiness.py:186 perfs = list(perfs)3 ms0.7%
__iter__django/db/models/query.py:3903 ms0.7%
_fetch_alldjango/db/models/query.py:20003 ms0.7%
__iter__django/db/models/query.py:2383 ms0.7%
results_iterdjango/db/models/sql/compiler.py:15733 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16243 ms0.7%
innerdjango/utils/asyncio.py:263 ms0.7%
reset_refcountsdjango/db/models/sql/query.py:9933 ms0.7%
compute_flaky_reportapps/projects/flakiness.py:2683 ms0.7%
failing_test_idsapps/projects/flakiness.py:221 .distinct()3 ms0.7%
__iter__django/db/models/query.py:3903 ms0.7%
_fetch_alldjango/db/models/query.py:20003 ms0.7%
__iter__django/db/models/query.py:2773 ms0.7%
results_iterdjango/db/models/sql/compiler.py:15733 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16243 ms0.7%
executedjango/db/backends/utils.py:793 ms0.7%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms0.7%
_executedjango/db/backends/utils.py:1053 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
compute_flaky_reportapps/projects/flakiness.py:271 tests = {test.id: test for test in Test.objects.filter(id__in=ids)}3 ms0.7%
__iter__django/db/models/query.py:3903 ms0.7%
_fetch_alldjango/db/models/query.py:20003 ms0.7%
__iter__django/db/models/query.py:953 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16243 ms0.7%
executedjango/db/backends/utils.py:793 ms0.7%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms0.7%
_executedjango/db/backends/utils.py:1053 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
flaky_reportapps/projects/flakiness.py:2508 ms2.1%
data_versionapps/projects/flakiness.py:229 profile = Profile.objects.filter(project=project).aggregate(latest=Max("date_processed"))["latest"]5 ms1.4%
aggregatedjango/db/models/query.py:5943 ms0.7%
get_aggregationdjango/db/models/sql/query.py:6333 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16243 ms0.7%
executedjango/db/backends/utils.py:793 ms0.7%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms0.7%
_executedjango/db/backends/utils.py:1053 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
manager_methoddjango/db/models/manager.py:873 ms0.7%
get_aggregationdjango/db/models/sql/query.py:6333 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16243 ms0.7%
executedjango/db/backends/utils.py:793 ms0.7%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms0.7%
_executedjango/db/backends/utils.py:1053 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
data_versionapps/projects/flakiness.py:228 ingest = Ingest.objects.filter(project=project).aggregate(latest=Max("id"))["latest"]3 ms0.7%
manager_methoddjango/db/models/manager.py:873 ms0.7%
filterdjango/db/models/query.py:15423 ms0.7%
_filter_or_excludedjango/db/models/query.py:15603 ms0.7%
_filter_or_exclude_inplacedjango/db/models/query.py:15703 ms0.7%
add_qdjango/db/models/sql/query.py:16713 ms0.7%
_add_qdjango/db/models/sql/query.py:17033 ms0.7%
build_filterdjango/db/models/sql/query.py:15773 ms0.7%
resolve_lookup_valuedjango/db/models/sql/query.py:13423 ms0.7%
manager_methoddjango/db/models/manager.py:873 ms0.7%
getdjango/db/models/query.py:6353 ms0.7%
__len__django/db/models/query.py:3723 ms0.7%
_fetch_alldjango/db/models/query.py:20003 ms0.7%
__iter__django/db/models/query.py:953 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16243 ms0.7%
innerdjango/utils/asyncio.py:263 ms0.7%
cursordjango/db/backends/base/base.py:3203 ms0.7%
_cursordjango/db/backends/base/base.py:2963 ms0.7%
patched_ensure_connectiondjango/test/testcases.py:3033 ms0.7%
innerdjango/utils/asyncio.py:263 ms0.7%
ensure_connectiondjango/db/backends/base/base.py:2793 ms0.7%
innerdjango/utils/asyncio.py:263 ms0.7%
connectdjango/db/backends/base/base.py:2583 ms0.7%
init_connection_statedjango/db/backends/postgresql/base.py:4023 ms0.7%
_configure_connectiondjango/db/backends/postgresql/base.py:3743 ms0.7%
_configure_timezonedjango/db/backends/postgresql/base.py:3573 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
process_ingest_progressapps/api/tasks.py:165 TestRun.objects.bulk_create(5 ms1.4%
manager_methoddjango/db/models/manager.py:875 ms1.4%
bulk_createdjango/db/models/query.py:8335 ms1.4%
_batched_insertdjango/db/models/query.py:19565 ms1.4%
_insertdjango/db/models/query.py:19185 ms1.4%
execute_sqldjango/db/models/sql/compiler.py:19255 ms1.4%
executedjango/db/backends/utils.py:795 ms1.4%
_execute_with_wrappersdjango/db/backends/utils.py:925 ms1.4%
_executedjango/db/backends/utils.py:1055 ms1.4%
executepsycopg/cursor.py:1145 ms1.4%
waitpsycopg/connection.py:4835 ms1.4%
process_ingest_endapps/api/tasks.py:2263 ms0.7%
saveapps/projects/models.py:188 super().save(*args, **kwargs)3 ms0.7%
savedjango/db/models/base.py:8743 ms0.7%
save_basedjango/db/models/base.py:9723 ms0.7%
_save_tabledjango/db/models/base.py:11173 ms0.7%
_do_updatedjango/db/models/base.py:12113 ms0.7%
_updatedjango/db/models/query.py:13273 ms0.7%
execute_returning_sqldjango/db/models/sql/compiler.py:21403 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:21113 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16113 ms0.7%
as_sqldjango/db/models/sql/compiler.py:20683 ms0.7%
pre_sql_setupdjango/db/models/sql/compiler.py:21693 ms0.7%
process_ingest_progressapps/api/tasks.py:119 commit = session.run.commit3 ms0.7%
__get__django/db/models/fields/related_descriptors.py:2573 ms0.7%
get_objectdjango/db/models/fields/related_descriptors.py:2223 ms0.7%
getdjango/db/models/query.py:6353 ms0.7%
__len__django/db/models/query.py:3723 ms0.7%
_fetch_alldjango/db/models/query.py:20003 ms0.7%
__iter__django/db/models/query.py:953 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16623 ms0.7%
executedjango/db/backends/utils.py:793 ms0.7%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms0.7%
_executedjango/db/backends/utils.py:1053 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
process_ingest_endapps/api/tasks.py:216 if session.run.status != Run.StatusTypes.RUNNING:3 ms0.7%
__get__django/db/models/fields/related_descriptors.py:2573 ms0.7%
get_objectdjango/db/models/fields/related_descriptors.py:2223 ms0.7%
getdjango/db/models/query.py:6353 ms0.7%
__len__django/db/models/query.py:3723 ms0.7%
_fetch_alldjango/db/models/query.py:20003 ms0.7%
__iter__django/db/models/query.py:953 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16243 ms0.7%
executedjango/db/backends/utils.py:793 ms0.7%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms0.7%
_executedjango/db/backends/utils.py:1053 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
process_ingest_progressapps/api/tasks.py:1853 ms0.7%
update_session_countsapps/api/tasks.py:193 counts = TestRun.objects.filter(session=session).aggregate(3 ms0.7%
aggregatedjango/db/models/query.py:5943 ms0.7%
get_aggregationdjango/db/models/sql/query.py:6333 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16243 ms0.7%
executedjango/db/backends/utils.py:793 ms0.7%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms0.7%
_executedjango/db/backends/utils.py:1053 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
process_ingest_endapps/api/tasks.py:210 session = Session.objects.get(project=ingest.project, ingest_id=parent_ingest_id)3 ms0.7%
__get__django/db/models/fields/related_descriptors.py:2573 ms0.7%
get_objectdjango/db/models/fields/related_descriptors.py:2223 ms0.7%
getdjango/db/models/query.py:6353 ms0.7%
__len__django/db/models/query.py:3723 ms0.7%
_fetch_alldjango/db/models/query.py:20003 ms0.7%
__iter__django/db/models/query.py:953 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16243 ms0.7%
executedjango/db/backends/utils.py:793 ms0.7%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms0.7%
_executedjango/db/backends/utils.py:1053 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
process_ingest_progressapps/api/tasks.py:1213 ms0.7%
upsertapps/projects/models.py:2293 ms0.7%
slugs_forapps/projects/models.py:242 taken = set(self.filter(project_id=project_id, slug__in=set(new.values())).values_list("slug", flat=True))3 ms0.7%
_executepotatoq/worker/executor.py:4105 ms1.4%
sendpotatoq/signals.py:1195 ms1.4%
_close_old_connectionspotatoq/contrib/django/__init__.py:2725 ms1.4%
close_old_connectionsdjango/db/__init__.py:595 ms1.4%
close_if_unusable_or_obsoletedjango/db/backends/base/base.py:6155 ms1.4%
innerdjango/utils/asyncio.py:265 ms1.4%
closedjango/db/backends/base/base.py:3615 ms1.4%
test_all_test_status_typesapps/api/tests.py:26153 ms14.2%
ingest_startapps/api/tests.py:98 return self.client.post(53 ms14.2%
postdjango/test/client.py:115353 ms14.2%
postdjango/test/client.py:49953 ms14.2%
genericdjango/test/client.py:67153 ms14.2%
requestdjango/test/client.py:108253 ms14.2%
__call__django/test/client.py:17340 ms10.6%
load_middlewaredjango/core/handlers/base.py:6240 ms10.6%
__init__whitenoise/middleware.py:10437 ms9.9%
add_fileswhitenoise/base.py:10837 ms9.9%
update_files_dictionarywhitenoise/base.py:12032 ms8.5%
add_file_to_dictionarywhitenoise/base.py:13132 ms8.5%
get_static_filewhitenoise/base.py:20819 ms5.0%
__init__whitenoise/responders.py:728 ms2.1%
get_file_statswhitenoise/responders.py:1618 ms2.1%
__init__whitenoise/responders.py:2638 ms2.1%
stat_regular_filewhitenoise/responders.py:2768 ms2.1%
__init__whitenoise/responders.py:765 ms1.4%
get_headerswhitenoise/responders.py:1815 ms1.4%
__init__whitenoise/responders.py:733 ms0.7%
get_headerswhitenoise/responders.py:1713 ms0.7%
add_mime_headerswhitenoise/base.py:2163 ms0.7%
get_static_filewhitenoise/base.py:2035 ms1.4%
add_cache_headerswhitenoise/base.py:2243 ms0.7%
get_alternativeswhitenoise/responders.py:2003 ms0.7%
__init__whitenoise/responders.py:773 ms0.7%
get_alternativeswhitenoise/responders.py:1983 ms0.7%
<lambda>whitenoise/responders.py:1983 ms0.7%
get_static_filewhitenoise/base.py:2025 ms1.4%
__init__whitenoise/responders.py:765 ms1.4%
get_headerswhitenoise/responders.py:1803 ms0.7%
formatdate<stdlib>/email/utils.py:2663 ms0.7%
get_headerswhitenoise/responders.py:1783 ms0.7%
formatdate<stdlib>/email/utils.py:2593 ms0.7%
is_compressed_variantwhitenoise/base.py:1893 ms0.7%
update_files_dictionarywhitenoise/base.py:1155 ms1.4%
scantreewhitenoise/base.py:2625 ms1.4%
scantreewhitenoise/base.py:2625 ms1.4%
scantreewhitenoise/base.py:2643 ms0.7%
scantreewhitenoise/base.py:2623 ms0.7%
scantreewhitenoise/base.py:2623 ms0.7%
scantreewhitenoise/base.py:2643 ms0.7%
__init__whitenoise/middleware.py:1113 ms0.7%
add_fileswhitenoise/base.py:1083 ms0.7%
update_files_dictionarywhitenoise/base.py:1203 ms0.7%
add_file_to_dictionarywhitenoise/base.py:1313 ms0.7%
get_static_filewhitenoise/base.py:2083 ms0.7%
add_mime_headerswhitenoise/base.py:2163 ms0.7%
__call__django/test/client.py:18613 ms3.5%
get_responsedjango/core/handlers/base.py:14113 ms3.5%
innerdjango/core/handlers/exception.py:5513 ms3.5%
__call__debug_toolbar/middleware.py:13013 ms3.5%
innerdjango/core/handlers/exception.py:5513 ms3.5%
__call__django/utils/deprecation.py:30913 ms3.5%
innerdjango/core/handlers/exception.py:5513 ms3.5%
__call__whitenoise/middleware.py:12313 ms3.5%
innerdjango/core/handlers/exception.py:5513 ms3.5%
__call__django/utils/deprecation.py:30913 ms3.5%
innerdjango/core/handlers/exception.py:5513 ms3.5%
__call__django/utils/deprecation.py:30913 ms3.5%
innerdjango/core/handlers/exception.py:5513 ms3.5%
__call__django/utils/deprecation.py:30913 ms3.5%
innerdjango/core/handlers/exception.py:5513 ms3.5%
__call__django/utils/deprecation.py:30913 ms3.5%
innerdjango/core/handlers/exception.py:5513 ms3.5%
__call__django/utils/deprecation.py:30913 ms3.5%
innerdjango/core/handlers/exception.py:5513 ms3.5%
__call__django/utils/deprecation.py:30913 ms3.5%
innerdjango/core/handlers/exception.py:5513 ms3.5%
middlewareallauth/account/middleware.py:3413 ms3.5%
innerdjango/core/handlers/exception.py:5513 ms3.5%
_get_responsedjango/core/handlers/base.py:19813 ms3.5%
_view_wrapperdjango/views/decorators/csrf.py:6513 ms3.5%
wrapped_viewapps/api/urls.py:3713 ms3.5%
innerdjango/views/decorators/http.py:6413 ms3.5%
wrapped_viewapps/api/urls.py:758 ms2.1%
ingest_startapps/api/urls.py:100 process_ingest_start(ingest.id)5 ms1.4%
__call__potatoq/app.py:7635 ms1.4%
__call__potatoq/task.py:1895 ms1.4%
process_ingest_startapps/api/tasks.py:89 Session.objects.get_or_create(5 ms1.4%
manager_methoddjango/db/models/manager.py:875 ms1.4%
get_or_createdjango/db/models/query.py:9873 ms0.7%
getdjango/db/models/query.py:6353 ms0.7%
__len__django/db/models/query.py:3723 ms0.7%
_fetch_alldjango/db/models/query.py:20003 ms0.7%
__iter__django/db/models/query.py:953 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16243 ms0.7%
executedjango/db/backends/utils.py:793 ms0.7%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms0.7%
_executedjango/db/backends/utils.py:1053 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
get_or_createdjango/db/models/query.py:9943 ms0.7%
createdjango/db/models/query.py:6693 ms0.7%
savedjango/db/models/base.py:8743 ms0.7%
save_basedjango/db/models/base.py:9723 ms0.7%
_save_tabledjango/db/models/base.py:11683 ms0.7%
_do_insertdjango/db/models/base.py:12183 ms0.7%
manager_methoddjango/db/models/manager.py:873 ms0.7%
_insertdjango/db/models/query.py:19183 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:19253 ms0.7%
executedjango/db/backends/utils.py:793 ms0.7%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms0.7%
_executedjango/db/backends/utils.py:1053 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
ingest_startapps/api/urls.py:91 muted_tests = Test.objects.filter(project=project, mute__date_unmuted__isnull=True, mute__until__gte=timezone.now())3 ms0.7%
wrapped_viewapps/api/urls.py:72 project = get_object_or_404(Project, secrettokens__token=request.headers.get("Authorization"))3 ms0.7%
get_object_or_404django/shortcuts.py:903 ms0.7%
getdjango/db/models/query.py:6353 ms0.7%
__len__django/db/models/query.py:3723 ms0.7%
_fetch_alldjango/db/models/query.py:20003 ms0.7%
__iter__django/db/models/query.py:953 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16243 ms0.7%
executedjango/db/backends/utils.py:793 ms0.7%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms0.7%
_executedjango/db/backends/utils.py:1053 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
wrapped_viewapps/api/urls.py:73 touch_token(request.headers.get("Authorization"))3 ms0.7%
touch_tokenapps/api/urls.py:59 SecretTokens.objects.filter(pk__in=list(stale)).update(date_last_used=now)3 ms0.7%
updatedjango/db/models/query.py:13003 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:21113 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16243 ms0.7%
executedjango/db/backends/utils.py:793 ms0.7%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms0.7%
_executedjango/db/backends/utils.py:1053 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
test_all_test_status_typesapps/api/tests.py:28037 ms9.9%
join_workersapps/api/tests.py:76 drain(current_app(), raise_on_failure=True)37 ms9.9%
drainpotatoq/testing.py:7337 ms9.9%
executepotatoq/worker/executor.py:28837 ms9.9%
_executepotatoq/worker/executor.py:36837 ms9.9%
__call__potatoq/task.py:19237 ms9.9%
__enter__django/db/transaction.py:19819 ms5.0%
get_autocommitdjango/db/backends/base/base.py:45419 ms5.0%
patched_ensure_connectiondjango/test/testcases.py:30319 ms5.0%
innerdjango/utils/asyncio.py:2619 ms5.0%
ensure_connectiondjango/db/backends/base/base.py:27919 ms5.0%
innerdjango/utils/asyncio.py:2619 ms5.0%
connectdjango/db/backends/base/base.py:25619 ms5.0%
innerdjango/utils/asyncio.py:2619 ms5.0%
get_new_connectiondjango/db/backends/postgresql/base.py:33319 ms5.0%
connectpsycopg/connection.py:10919 ms5.0%
wait_connpsycopg/waiting.py:11813 ms3.5%
_connect_genpsycopg/_connection_base.py:44113 ms3.5%
wait_connpsycopg/waiting.py:1125 ms1.4%
select<stdlib>/selectors.py:4525 ms1.4%
process_ingest_progressapps/api/tasks.py:1218 ms2.1%
upsertapps/projects/models.py:2295 ms1.4%
slugs_forapps/projects/models.py:242 taken = set(self.filter(project_id=project_id, slug__in=set(new.values())).values_list("slug", flat=True))5 ms1.4%
manager_methoddjango/db/models/manager.py:873 ms0.7%
filterdjango/db/models/query.py:15423 ms0.7%
_filter_or_excludedjango/db/models/query.py:15603 ms0.7%
_chaindjango/db/models/query.py:19733 ms0.7%
__iter__django/db/models/query.py:3903 ms0.7%
_fetch_alldjango/db/models/query.py:20003 ms0.7%
__iter__django/db/models/query.py:2773 ms0.7%
results_iterdjango/db/models/sql/compiler.py:15733 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16243 ms0.7%
executedjango/db/backends/utils.py:793 ms0.7%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms0.7%
_executedjango/db/backends/utils.py:1053 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
upsertapps/projects/models.py:230 self.bulk_create( # sorted, so uploads sharing tests lock their rows in the same order3 ms0.7%
manager_methoddjango/db/models/manager.py:873 ms0.7%
bulk_createdjango/db/models/query.py:8333 ms0.7%
_batched_insertdjango/db/models/query.py:19563 ms0.7%
_insertdjango/db/models/query.py:19183 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:19253 ms0.7%
executedjango/db/backends/utils.py:793 ms0.7%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms0.7%
_executedjango/db/backends/utils.py:1053 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
process_ingest_progressapps/api/tasks.py:119 commit = session.run.commit3 ms0.7%
__get__django/db/models/fields/related_descriptors.py:2573 ms0.7%
get_objectdjango/db/models/fields/related_descriptors.py:2223 ms0.7%
getdjango/db/models/query.py:6353 ms0.7%
__len__django/db/models/query.py:3723 ms0.7%
_fetch_alldjango/db/models/query.py:20003 ms0.7%
__iter__django/db/models/query.py:953 ms0.7%
get_compilerdjango/db/models/sql/query.py:3693 ms0.7%
process_ingest_progressapps/api/tasks.py:111 ingest = Ingest.objects.select_for_update().get(id=ingest_id)3 ms0.7%
getdjango/db/models/query.py:6353 ms0.7%
__len__django/db/models/query.py:3723 ms0.7%
_fetch_alldjango/db/models/query.py:20003 ms0.7%
__iter__django/db/models/query.py:953 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16113 ms0.7%
as_sqldjango/db/models/sql/compiler.py:7953 ms0.7%
compiledjango/db/models/sql/compiler.py:5783 ms0.7%
split_having_qualifydjango/db/models/sql/where.py:473 ms0.7%
get_selectdjango/db/models/sql/compiler.py:3173 ms0.7%
process_ingest_progressapps/api/tasks.py:118 session = Session.objects.get(project=ingest.project, ingest_id=parent_ingest_id)3 ms0.7%
__get__django/db/models/fields/related_descriptors.py:2573 ms0.7%
get_objectdjango/db/models/fields/related_descriptors.py:2223 ms0.7%
getdjango/db/models/query.py:6353 ms0.7%
__len__django/db/models/query.py:3723 ms0.7%
_fetch_alldjango/db/models/query.py:20003 ms0.7%
__iter__django/db/models/query.py:953 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16243 ms0.7%
executedjango/db/backends/utils.py:793 ms0.7%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms0.7%
_executedjango/db/backends/utils.py:1053 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
_execute_genpsycopg/_cursor_base.py:2063 ms0.7%
_maybe_prepare_genpsycopg/_cursor_base.py:2863 ms0.7%
_execute_sendpsycopg/client_cursor.py:783 ms0.7%
process_ingest_progressapps/api/tasks.py:1853 ms0.7%
update_session_countsapps/api/tasks.py:193 counts = TestRun.objects.filter(session=session).aggregate(3 ms0.7%
setUpapps/api/tests.py:73 self.project = baker.make("projects.Project", secrettokens_set__token=self.secret_token)24 ms6.4%
makemodel_bakery/baker.py:14724 ms6.4%
makemodel_bakery/baker.py:40624 ms6.4%
_makemodel_bakery/baker.py:47219 ms5.0%
generate_valuemodel_bakery/baker.py:80019 ms5.0%
gen_relatedmodel_bakery/random_gen.py:27419 ms5.0%
makemodel_bakery/baker.py:14719 ms5.0%
makemodel_bakery/baker.py:40619 ms5.0%
_makemodel_bakery/baker.py:48219 ms5.0%
instancemodel_bakery/baker.py:53519 ms5.0%
savedjango/db/models/base.py:87419 ms5.0%
save_basedjango/db/models/base.py:97219 ms5.0%
_save_tabledjango/db/models/base.py:116819 ms5.0%
_do_insertdjango/db/models/base.py:121819 ms5.0%
manager_methoddjango/db/models/manager.py:8719 ms5.0%
_insertdjango/db/models/query.py:191819 ms5.0%
execute_sqldjango/db/models/sql/compiler.py:192316 ms4.2%
innerdjango/utils/asyncio.py:2616 ms4.2%
cursordjango/db/backends/base/base.py:32016 ms4.2%
_cursordjango/db/backends/base/base.py:29616 ms4.2%
patched_ensure_connectiondjango/test/testcases.py:30316 ms4.2%
innerdjango/utils/asyncio.py:2616 ms4.2%
ensure_connectiondjango/db/backends/base/base.py:27916 ms4.2%
innerdjango/utils/asyncio.py:2616 ms4.2%
connectdjango/db/backends/base/base.py:25613 ms3.5%
innerdjango/utils/asyncio.py:2613 ms3.5%
get_new_connectiondjango/db/backends/postgresql/base.py:33313 ms3.5%
connectpsycopg/connection.py:10911 ms2.8%
wait_connpsycopg/waiting.py:1188 ms2.1%
_connect_genpsycopg/_connection_base.py:4418 ms2.1%
wait_connpsycopg/waiting.py:1123 ms0.7%
select<stdlib>/selectors.py:4523 ms0.7%
connectpsycopg/connection.py:973 ms0.7%
_get_connection_paramspsycopg/connection.py:1803 ms0.7%
conninfo_to_dictpsycopg/conninfo.py:823 ms0.7%
connectdjango/db/backends/base/base.py:2583 ms0.7%
init_connection_statedjango/db/backends/postgresql/base.py:4023 ms0.7%
_configure_connectiondjango/db/backends/postgresql/base.py:3743 ms0.7%
_configure_timezonedjango/db/backends/postgresql/base.py:3573 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:19253 ms0.7%
executedjango/db/backends/utils.py:793 ms0.7%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms0.7%
_executedjango/db/backends/utils.py:1053 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
_makemodel_bakery/baker.py:4823 ms0.7%
instancemodel_bakery/baker.py:5353 ms0.7%
savedjango/db/models/base.py:8743 ms0.7%
save_basedjango/db/models/base.py:9723 ms0.7%
_save_tabledjango/db/models/base.py:11683 ms0.7%
_do_insertdjango/db/models/base.py:12183 ms0.7%
manager_methoddjango/db/models/manager.py:873 ms0.7%
_insertdjango/db/models/query.py:19183 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:19253 ms0.7%
executedjango/db/backends/utils.py:793 ms0.7%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms0.7%
_executedjango/db/backends/utils.py:1053 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
_makemodel_bakery/baker.py:4903 ms0.7%
create_by_related_namemodel_bakery/baker.py:5603 ms0.7%
makemodel_bakery/baker.py:1473 ms0.7%
makemodel_bakery/baker.py:4063 ms0.7%
_makemodel_bakery/baker.py:4823 ms0.7%
instancemodel_bakery/baker.py:5353 ms0.7%
savedjango/db/models/base.py:8743 ms0.7%
save_basedjango/db/models/base.py:9723 ms0.7%
_save_tabledjango/db/models/base.py:11683 ms0.7%
_do_insertdjango/db/models/base.py:12183 ms0.7%
manager_methoddjango/db/models/manager.py:873 ms0.7%
_insertdjango/db/models/query.py:19183 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:19253 ms0.7%
executedjango/db/backends/utils.py:793 ms0.7%
bulk_insert_sqldjango/db/backends/postgresql/operations.py:1543 ms0.7%
test_all_test_status_typesapps/api/tests.py:28219 ms5.0%
ingest_endapps/api/tests.py:11419 ms5.0%
postdjango/test/client.py:115319 ms5.0%
postdjango/test/client.py:49919 ms5.0%
genericdjango/test/client.py:67119 ms5.0%
requestdjango/test/client.py:108219 ms5.0%
__call__django/test/client.py:18619 ms5.0%
get_responsedjango/core/handlers/base.py:14119 ms5.0%
innerdjango/core/handlers/exception.py:5519 ms5.0%
__call__debug_toolbar/middleware.py:13019 ms5.0%
innerdjango/core/handlers/exception.py:5519 ms5.0%
__call__django/utils/deprecation.py:30919 ms5.0%
innerdjango/core/handlers/exception.py:5519 ms5.0%
__call__whitenoise/middleware.py:12319 ms5.0%
innerdjango/core/handlers/exception.py:5519 ms5.0%
__call__django/utils/deprecation.py:30919 ms5.0%
innerdjango/core/handlers/exception.py:5519 ms5.0%
__call__django/utils/deprecation.py:30919 ms5.0%
innerdjango/core/handlers/exception.py:5519 ms5.0%
__call__django/utils/deprecation.py:30919 ms5.0%
innerdjango/core/handlers/exception.py:5519 ms5.0%
__call__django/utils/deprecation.py:30919 ms5.0%
innerdjango/core/handlers/exception.py:5519 ms5.0%
__call__django/utils/deprecation.py:30919 ms5.0%
innerdjango/core/handlers/exception.py:5519 ms5.0%
__call__django/utils/deprecation.py:30919 ms5.0%
innerdjango/core/handlers/exception.py:5519 ms5.0%
middlewareallauth/account/middleware.py:3419 ms5.0%
innerdjango/core/handlers/exception.py:5519 ms5.0%
_get_responsedjango/core/handlers/base.py:19819 ms5.0%
_view_wrapperdjango/views/decorators/csrf.py:6519 ms5.0%
wrapped_viewapps/api/urls.py:3719 ms5.0%
innerdjango/views/decorators/http.py:6419 ms5.0%
wrapped_viewapps/api/urls.py:72 project = get_object_or_404(Project, secrettokens__token=request.headers.get("Authorization"))13 ms3.5%
get_object_or_404django/shortcuts.py:9013 ms3.5%
getdjango/db/models/query.py:63513 ms3.5%
__len__django/db/models/query.py:37213 ms3.5%
_fetch_alldjango/db/models/query.py:200013 ms3.5%
__iter__django/db/models/query.py:9513 ms3.5%
execute_sqldjango/db/models/sql/compiler.py:162211 ms2.8%
innerdjango/utils/asyncio.py:2611 ms2.8%
cursordjango/db/backends/base/base.py:32011 ms2.8%
_cursordjango/db/backends/base/base.py:29611 ms2.8%
patched_ensure_connectiondjango/test/testcases.py:30311 ms2.8%
innerdjango/utils/asyncio.py:2611 ms2.8%
ensure_connectiondjango/db/backends/base/base.py:27911 ms2.8%
innerdjango/utils/asyncio.py:2611 ms2.8%
connectdjango/db/backends/base/base.py:25611 ms2.8%
innerdjango/utils/asyncio.py:2611 ms2.8%
get_new_connectiondjango/db/backends/postgresql/base.py:33311 ms2.8%
connectpsycopg/connection.py:10911 ms2.8%
wait_connpsycopg/waiting.py:1123 ms0.7%
select<stdlib>/selectors.py:4523 ms0.7%
wait_connpsycopg/waiting.py:1193 ms0.7%
register<stdlib>/selectors.py:3453 ms0.7%
wait_connpsycopg/waiting.py:1083 ms0.7%
_connect_genpsycopg/_connection_base.py:4413 ms0.7%
wait_connpsycopg/waiting.py:1183 ms0.7%
_connect_genpsycopg/_connection_base.py:4413 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16243 ms0.7%
executedjango/db/backends/utils.py:793 ms0.7%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms0.7%
_executedjango/db/backends/utils.py:1053 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
wrapped_viewapps/api/urls.py:73 touch_token(request.headers.get("Authorization"))5 ms1.4%
__enter__django/db/transaction.py:1983 ms0.7%
__exit__django/db/transaction.py:2633 ms0.7%
innerdjango/utils/asyncio.py:263 ms0.7%
commitdjango/db/backends/base/base.py:3273 ms0.7%
_commitdjango/db/backends/base/base.py:3033 ms0.7%
commitpsycopg/connection.py:3043 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
test_all_test_status_typesapps/api/tests.py:287 run = Run.objects.filter(project=self.project).get()13 ms3.5%
getdjango/db/models/query.py:63513 ms3.5%
__len__django/db/models/query.py:37213 ms3.5%
_fetch_alldjango/db/models/query.py:200013 ms3.5%
__iter__django/db/models/query.py:9511 ms2.8%
execute_sqldjango/db/models/sql/compiler.py:162211 ms2.8%
innerdjango/utils/asyncio.py:2611 ms2.8%
cursordjango/db/backends/base/base.py:32011 ms2.8%
_cursordjango/db/backends/base/base.py:29611 ms2.8%
patched_ensure_connectiondjango/test/testcases.py:30311 ms2.8%
innerdjango/utils/asyncio.py:2611 ms2.8%
ensure_connectiondjango/db/backends/base/base.py:27911 ms2.8%
innerdjango/utils/asyncio.py:2611 ms2.8%
connectdjango/db/backends/base/base.py:25611 ms2.8%
innerdjango/utils/asyncio.py:2611 ms2.8%
get_new_connectiondjango/db/backends/postgresql/base.py:33311 ms2.8%
connectpsycopg/connection.py:10911 ms2.8%
wait_connpsycopg/waiting.py:1128 ms2.1%
select<stdlib>/selectors.py:4528 ms2.1%
wait_connpsycopg/waiting.py:1183 ms0.7%
_connect_genpsycopg/_connection_base.py:4413 ms0.7%
__iter__django/db/models/query.py:1273 ms0.7%
test_all_test_status_typesapps/api/tests.py:2685 ms1.4%
ingest_progressapps/api/tests.py:1065 ms1.4%
postdjango/test/client.py:11535 ms1.4%
postdjango/test/client.py:4995 ms1.4%
genericdjango/test/client.py:6715 ms1.4%
requestdjango/test/client.py:10825 ms1.4%
__call__django/test/client.py:1865 ms1.4%
get_responsedjango/core/handlers/base.py:1415 ms1.4%
innerdjango/core/handlers/exception.py:555 ms1.4%
__call__debug_toolbar/middleware.py:1305 ms1.4%
innerdjango/core/handlers/exception.py:555 ms1.4%
__call__django/utils/deprecation.py:3095 ms1.4%
innerdjango/core/handlers/exception.py:555 ms1.4%
__call__whitenoise/middleware.py:1235 ms1.4%
innerdjango/core/handlers/exception.py:555 ms1.4%
__call__django/utils/deprecation.py:3095 ms1.4%
innerdjango/core/handlers/exception.py:555 ms1.4%
__call__django/utils/deprecation.py:3095 ms1.4%
innerdjango/core/handlers/exception.py:555 ms1.4%
__call__django/utils/deprecation.py:3095 ms1.4%
innerdjango/core/handlers/exception.py:555 ms1.4%
__call__django/utils/deprecation.py:3095 ms1.4%
innerdjango/core/handlers/exception.py:555 ms1.4%
__call__django/utils/deprecation.py:3095 ms1.4%
innerdjango/core/handlers/exception.py:555 ms1.4%
__call__django/utils/deprecation.py:3095 ms1.4%
innerdjango/core/handlers/exception.py:555 ms1.4%
middlewareallauth/account/middleware.py:345 ms1.4%
innerdjango/core/handlers/exception.py:555 ms1.4%
_get_responsedjango/core/handlers/base.py:1985 ms1.4%
_view_wrapperdjango/views/decorators/csrf.py:655 ms1.4%
wrapped_viewapps/api/urls.py:375 ms1.4%
innerdjango/views/decorators/http.py:645 ms1.4%
wrapped_viewapps/api/urls.py:72 project = get_object_or_404(Project, secrettokens__token=request.headers.get("Authorization"))3 ms0.7%
get_object_or_404django/shortcuts.py:903 ms0.7%
getdjango/db/models/query.py:6353 ms0.7%
__len__django/db/models/query.py:3723 ms0.7%
_fetch_alldjango/db/models/query.py:20003 ms0.7%
__iter__django/db/models/query.py:953 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16243 ms0.7%
executedjango/db/backends/utils.py:793 ms0.7%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms0.7%
_executedjango/db/backends/utils.py:1053 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
wrapped_viewapps/api/urls.py:753 ms0.7%
ingest_progressapps/api/urls.py:111 ingest = Ingest.objects.create(project=project, source="ingest_progress", data=json.loads(request.body))3 ms0.7%
manager_methoddjango/db/models/manager.py:873 ms0.7%
createdjango/db/models/query.py:6693 ms0.7%
savedjango/db/models/base.py:8743 ms0.7%
save_basedjango/db/models/base.py:9723 ms0.7%
test_all_test_status_typesapps/api/tests.py:2883 ms0.7%
manager_methoddjango/db/models/manager.py:873 ms0.7%
countdjango/db/models/query.py:6103 ms0.7%
get_countdjango/db/models/sql/query.py:6513 ms0.7%
get_aggregationdjango/db/models/sql/query.py:6333 ms0.7%
execute_sqldjango/db/models/sql/compiler.py:16243 ms0.7%
executedjango/db/backends/utils.py:793 ms0.7%
_execute_with_wrappersdjango/db/backends/utils.py:923 ms0.7%
_executedjango/db/backends/utils.py:1053 ms0.7%
executepsycopg/cursor.py:1143 ms0.7%
waitpsycopg/connection.py:4833 ms0.7%
Estimated from 141 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/api/tests.py:76
drain(current_app(), raise_on_failure=True)
join_workers
· Database
|
59 ms |
|
apps/api/tests.py:98
return self.client.post(
ingest_start
· Libraries
|
40 ms |
|
apps/api/tests.py:73
self.project = baker.make("projects.Project", secrettokens_set__token=self.secret_token)
setUp
· Database
|
24 ms |
|
apps/api/urls.py:72
project = get_object_or_404(Project, secrettokens__token=request.headers.get("Authorization"))
wrapped_view
· Database
|
19 ms |
|
apps/api/tests.py:287
run = Run.objects.filter(project=self.project).get()
test_all_test_status_types
· Database
|
13 ms |
|
apps/projects/models.py:242
taken = set(self.filter(project_id=project_id, slug__in=set(new.values())).values_list("slug", flat=True))
slugs_for
· Database
|
8 ms |
|
apps/api/tasks.py:165
TestRun.objects.bulk_create(
process_ingest_progress
· Database
|
5 ms |
|
apps/api/tasks.py:119
commit = session.run.commit
process_ingest_progress
· Database
|
5 ms |
|
apps/api/urls.py:73
touch_token(request.headers.get("Authorization"))
wrapped_view
· Database
|
5 ms |
|
apps/projects/flakiness.py:229
profile = Profile.objects.filter(project=project).aggregate(latest=Max("date_processed"))["latest"]
data_version
· Database
|
5 ms |
Fixtures
Exact setup time| _django_setup_unittest class | 1 ms |
| _unittest_setUpClass_fixture_IngestStartEndpointTest class | 0.14 ms |
| _template_string_if_invalid_marker function | 0.10 ms |
| _django_set_urlconf function | 0.05 ms |
| _django_db_marker function | 0.05 ms |
| _live_server_helper function | 0.05 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.03 ms |
Database
136 queries · 148 ms
Repeated queries are usually N+1 lookups: fetch them once with select_related / prefetch_related (or selectinload).
20×
SELECT "django_content_type"."model" AS "model" FROM "django_content_type" WHERE "django_content_type"."app_label" = %s
10×
SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type" WHERE ("django_content_type"."app_label" = %s AND "django_content_type"."model" IN (…))
10×
SELECT "auth_permission"."content_type_id" AS "content_type", "auth_permission"."codename" AS "codename" FROM "auth_permission" INNER JOIN "django_content_type" ON ("auth_permission"."content_type_id" = "django_content_type"."id") WHERE "auth_permission"."content_type_id" IN (…) ORDER BY "django_co…
10×
INSERT INTO "auth_permission" ("name", "content_type_id", "codename") SELECT * FROM UNNEST((%s)::varchar(?)[], (%s)::integer[], (%s)::varchar(?)[]) RETURNING "auth_permission"."id"
8×
SELECT "projects_project"."id", "projects_project"."organization_id", "projects_project"."name", "projects_project"."slug", "projects_project"."public", "projects_project"."description", "projects_project"."date_created", "projects_project"."date_updated", "projects_project"."created_by_id" FROM "p…
Biggest pieces of work
|
call test body
apps/api/tests.py:285
|
219 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
131 ms |
|
call setUp
apps/api/tests.py:73
|
24 ms |
|
setup _gt_from_lt
<stdlib>/functools.py:91
|
3 ms |
Reliability
3 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 50 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 6 hours ago | CI github-actions:test | passed | 378 ms | Profile |
| 6 hours ago | CI github-actions:test | passed | 189 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 313 ms | Profile |
| 2 years ago | CI github-actions | muted | 738 ms | Run |
| 2 years, 2 months ago | CI github-actions | muted | 534 ms | Run |
| 2 years, 3 months ago | CI github-actions | muted | 696 ms | Run |
| 2 years, 4 months ago | CI github-actions | muted | 637 ms | Run |
| 2 years, 4 months ago | CI github-actions | muted | 579 ms | Run |
| 2 years, 4 months ago | CI github-actions | muted | 1.27 s | Run |
| 2 years, 4 months ago | CI github-actions | muted | 610 ms | Run |
| 2 years, 5 months ago | CI github-actions | muted | 581 ms | Run |
| 2 years, 5 months ago | CI github-actions | muted | 521 ms | Run |
| 2 years, 5 months ago | CI github-actions | muted | 595 ms | Run |
| 2 years, 5 months ago | CI github-actions | muted | 528 ms | Run |
| 2 years, 5 months ago | CI github-actions | muted | 546 ms | Run |
| 2 years, 6 months ago | CI github-actions | muted | 530 ms | Run |
| 2 years, 6 months ago | CI github-actions | muted | 544 ms | Run |
| 2 years, 6 months ago | CI github-actions | muted | 572 ms | Run |
| 2 years, 6 months ago | CI github-actions | muted | 555 ms | Run |
| 2 years, 6 months ago | CI github-actions | muted | 562 ms | Run |