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

ProjectPagesTest::test_configure_page

First seen 7 hours ago in 78a4357
CI github-actions:test 3 runs
Average
373 ms
median 367 ms
max 536 ms
Phases
Setup 267 ms Call 106 ms Teardown 0.17 ms
Categories
Database 252 ms App code 10 ms Factories 1 ms Other (Libraries, Serialization, Templates, pytest, ...) 109 ms

323 database queries per run

Needs 693 KB of memory (max 1 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 6 hours ago · open run
Show pytest frames
setup313 ms58.4%
setUpClassdjango/test/testcases.py:1439 cls.setUpTestData()300 ms56.0%
setUpTestDataapps/projects/tests.py:912184 ms34.2%
perf_scenarioapps/projects/tests.py:684129 ms24.1%
store_profileapps/projects/testing.py:36379 ms14.8%
process_profile_partapps/projects/profiles.py:342 profile = claim_part(part, document)33 ms6.2%
claim_partapps/projects/profiles.py:358 profile = Profile.objects.select_for_update(no_key=True).get(pk=part.profile_id)13 ms2.3%
getdjango/db/models/query.py:63513 ms2.3%
__len__django/db/models/query.py:37213 ms2.3%
_fetch_alldjango/db/models/query.py:200013 ms2.3%
__iter__django/db/models/query.py:9513 ms2.3%
execute_sqldjango/db/models/sql/compiler.py:16118 ms1.6%
as_sqldjango/db/models/sql/compiler.py:7954 ms0.8%
get_distinctdjango/db/models/sql/compiler.py:10414 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16244 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
claim_partapps/projects/profiles.py:4468 ms1.6%
saveapps/projects/models.py:466 super().save(*args, **kwargs)8 ms1.6%
savedjango/db/models/base.py:8748 ms1.6%
save_basedjango/db/models/base.py:9728 ms1.6%
_save_tabledjango/db/models/base.py:11178 ms1.6%
_do_updatedjango/db/models/base.py:12118 ms1.6%
_updatedjango/db/models/query.py:13278 ms1.6%
execute_returning_sqldjango/db/models/sql/compiler.py:21408 ms1.6%
execute_sqldjango/db/models/sql/compiler.py:21118 ms1.6%
execute_sqldjango/db/models/sql/compiler.py:16248 ms1.6%
executedjango/db/backends/utils.py:798 ms1.6%
_execute_with_wrappersdjango/db/backends/utils.py:928 ms1.6%
_executedjango/db/backends/utils.py:1058 ms1.6%
executepsycopg/cursor.py:1148 ms1.6%
waitpsycopg/connection.py:4838 ms1.6%
claim_partapps/projects/profiles.py:3788 ms1.6%
get_or_create_environmentapps/projects/environments.py:63 obj, created = Environment.objects.get_or_create(8 ms1.6%
manager_methoddjango/db/models/manager.py:878 ms1.6%
get_or_createdjango/db/models/query.py:9878 ms1.6%
getdjango/db/models/query.py:6358 ms1.6%
__len__django/db/models/query.py:3728 ms1.6%
_fetch_alldjango/db/models/query.py:20008 ms1.6%
__iter__django/db/models/query.py:958 ms1.6%
execute_sqldjango/db/models/sql/compiler.py:16244 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16114 ms0.8%
as_sqldjango/db/models/sql/compiler.py:7674 ms0.8%
pre_sql_setupdjango/db/models/sql/compiler.py:864 ms0.8%
setup_querydjango/db/models/sql/compiler.py:754 ms0.8%
get_selectdjango/db/models/sql/compiler.py:2684 ms0.8%
claim_partapps/projects/profiles.py:383 commit, _ = Commit.objects.get_or_create(4 ms0.8%
manager_methoddjango/db/models/manager.py:874 ms0.8%
get_or_createdjango/db/models/query.py:9874 ms0.8%
getdjango/db/models/query.py:6354 ms0.8%
__len__django/db/models/query.py:3724 ms0.8%
_fetch_alldjango/db/models/query.py:20004 ms0.8%
__iter__django/db/models/query.py:954 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16244 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
process_profile_partapps/projects/profiles.py:34421 ms3.9%
upsert_testsapps/projects/profiles.py:45121 ms3.9%
upsertapps/projects/models.py:236 return {test.name: test for test in self.filter(project=project, name__in=names)}8 ms1.6%
__iter__django/db/models/query.py:3908 ms1.6%
_fetch_alldjango/db/models/query.py:20008 ms1.6%
__iter__django/db/models/query.py:958 ms1.6%
execute_sqldjango/db/models/sql/compiler.py:16248 ms1.6%
executedjango/db/backends/utils.py:798 ms1.6%
_execute_with_wrappersdjango/db/backends/utils.py:928 ms1.6%
_executedjango/db/backends/utils.py:1058 ms1.6%
executepsycopg/cursor.py:1148 ms1.6%
waitpsycopg/connection.py:4838 ms1.6%
upsertapps/projects/models.py:2298 ms1.6%
slugs_forapps/projects/models.py:240 existing = dict(self.filter(project_id=project_id, name__in=names).values_list("name", "slug"))8 ms1.6%
manager_methoddjango/db/models/manager.py:874 ms0.8%
filterdjango/db/models/query.py:15424 ms0.8%
_filter_or_excludedjango/db/models/query.py:15604 ms0.8%
_chaindjango/db/models/query.py:19734 ms0.8%
_clonedjango/db/models/query.py:19904 ms0.8%
__iter__django/db/models/query.py:3904 ms0.8%
_fetch_alldjango/db/models/query.py:20004 ms0.8%
__iter__django/db/models/query.py:2384 ms0.8%
results_iterdjango/db/models/sql/compiler.py:15734 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16244 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
upsertapps/projects/models.py:230 self.bulk_create( # sorted, so uploads sharing tests lock their rows in the same order4 ms0.8%
manager_methoddjango/db/models/manager.py:874 ms0.8%
bulk_createdjango/db/models/query.py:8334 ms0.8%
_batched_insertdjango/db/models/query.py:19564 ms0.8%
_insertdjango/db/models/query.py:19184 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:19254 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
process_profile_partapps/projects/profiles.py:335 part = ProfilePart.objects.filter(pk=part.pk).first()8 ms1.6%
firstdjango/db/models/query.py:11458 ms1.6%
__iter__django/db/models/query.py:3908 ms1.6%
_fetch_alldjango/db/models/query.py:20008 ms1.6%
__iter__django/db/models/query.py:958 ms1.6%
execute_sqldjango/db/models/sql/compiler.py:16118 ms1.6%
as_sqldjango/db/models/sql/compiler.py:7678 ms1.6%
pre_sql_setupdjango/db/models/sql/compiler.py:878 ms1.6%
get_order_bydjango/db/models/sql/compiler.py:5284 ms0.8%
resolve_expressiondjango/db/models/expressions.py:2974 ms0.8%
trim_joinsdjango/db/models/sql/query.py:20214 ms0.8%
process_profile_partapps/projects/profiles.py:345 write_perfs(profile, part, entries, tests)8 ms1.6%
__exit__django/db/transaction.py:2474 ms0.8%
manager_methoddjango/db/models/manager.py:874 ms0.8%
bulk_createdjango/db/models/query.py:8334 ms0.8%
_batched_insertdjango/db/models/query.py:19564 ms0.8%
_insertdjango/db/models/query.py:19184 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:19254 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
write_perfsapps/projects/profiles.py:458 TestPerf.objects.bulk_create(4 ms0.8%
manager_methoddjango/db/models/manager.py:874 ms0.8%
bulk_createdjango/db/models/query.py:8334 ms0.8%
_batched_insertdjango/db/models/query.py:19564 ms0.8%
_insertdjango/db/models/query.py:19184 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:19244 ms0.8%
as_sqldjango/db/models/sql/compiler.py:18694 ms0.8%
assemble_as_sqldjango/db/backends/postgresql/compiler.py:654 ms0.8%
db_typedjango/db/models/fields/related.py:12234 ms0.8%
process_profile_partapps/projects/profiles.py:347 ProfilePart.objects.filter(pk=part.pk).update(4 ms0.8%
write_snapshotsapps/projects/profiles.py:313 cursor.executemany(SNAPSHOT_UPSERT, batch)4 ms0.8%
executemanydjango/db/backends/utils.py:844 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executemanydjango/db/backends/utils.py:1144 ms0.8%
executemanypsycopg/cursor.py:1374 ms0.8%
_pipeline_nolockpsycopg/connection.py:4684 ms0.8%
__exit__psycopg/_pipeline.py:734 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
process_profile_partapps/projects/profiles.py:3464 ms0.8%
write_snapshotsapps/projects/profiles.py:3124 ms0.8%
<genexpr>apps/projects/profiles.py:3104 ms0.8%
rowapps/projects/profiles.py:306 compress(json.dumps(snapshot_document(document, entry), separators=(",", ":")).encode()),4 ms0.8%
snapshot_documentapps/projects/profiles.py:2574 ms0.8%
node_idapps/projects/profiles.py:2404 ms0.8%
store_profileapps/projects/testing.py:364 finalize_profile(profile.id)42 ms7.8%
finalize_profileapps/projects/profiles.py:49625 ms4.7%
add_perfsapps/projects/rollups.py:88 TestDailyStats.objects.bulk_create(13 ms2.3%
manager_methoddjango/db/models/manager.py:8713 ms2.3%
bulk_createdjango/db/models/query.py:83313 ms2.3%
_batched_insertdjango/db/models/query.py:195613 ms2.3%
_insertdjango/db/models/query.py:191813 ms2.3%
execute_sqldjango/db/models/sql/compiler.py:19258 ms1.6%
executedjango/db/backends/utils.py:798 ms1.6%
_execute_with_wrappersdjango/db/backends/utils.py:928 ms1.6%
_executedjango/db/backends/utils.py:1058 ms1.6%
executepsycopg/cursor.py:1148 ms1.6%
waitpsycopg/connection.py:4838 ms1.6%
execute_sqldjango/db/models/sql/compiler.py:19244 ms0.8%
as_sqldjango/db/models/sql/compiler.py:18754 ms0.8%
assemble_as_sqldjango/db/backends/postgresql/compiler.py:664 ms0.8%
add_perfsapps/projects/rollups.py:64 for row in TestDailyStats.objects.filter(4 ms0.8%
__iter__django/db/models/query.py:3904 ms0.8%
_fetch_alldjango/db/models/query.py:20004 ms0.8%
__iter__django/db/models/query.py:954 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16114 ms0.8%
as_sqldjango/db/models/sql/compiler.py:7674 ms0.8%
pre_sql_setupdjango/db/models/sql/compiler.py:864 ms0.8%
setup_querydjango/db/models/sql/compiler.py:754 ms0.8%
get_selectdjango/db/models/sql/compiler.py:2554 ms0.8%
get_default_columnsdjango/db/models/sql/compiler.py:10304 ms0.8%
add_perfsapps/projects/rollups.py:934 ms0.8%
__init__django/db/models/base.py:5694 ms0.8%
add_perfsapps/projects/rollups.py:30 for perf in perfs:4 ms0.8%
__iter__django/db/models/query.py:3904 ms0.8%
_fetch_alldjango/db/models/query.py:20004 ms0.8%
__iter__django/db/models/query.py:954 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16114 ms0.8%
as_sqldjango/db/models/sql/compiler.py:7954 ms0.8%
pre_sql_setupdjango/db/models/sql/compiler.py:914 ms0.8%
setup_querydjango/db/models/sql/compiler.py:754 ms0.8%
get_selectdjango/db/models/sql/compiler.py:3174 ms0.8%
finalize_profileapps/projects/profiles.py:488 ProfilePart.objects.filter(profile=profile).exclude(pk__in=[part.pk for part in current]).delete()4 ms0.8%
deletedjango/db/models/query.py:12384 ms0.8%
deletedjango/db/models/deletion.py:4714 ms0.8%
_raw_deletedjango/db/models/query.py:12604 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16244 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
finalize_profileapps/projects/profiles.py:495 Environment.objects.select_for_update(no_key=True).filter(pk=profile.environment_id).first()4 ms0.8%
manager_methoddjango/db/models/manager.py:874 ms0.8%
_fetch_alldjango/db/models/query.py:20004 ms0.8%
__iter__django/db/models/query.py:2224 ms0.8%
results_iterdjango/db/models/sql/compiler.py:15774 ms0.8%
finalize_profileapps/projects/profiles.py:479 profile = Profile.objects.select_for_update(no_key=True).get(pk=profile_id)4 ms0.8%
getdjango/db/models/query.py:6354 ms0.8%
__len__django/db/models/query.py:3724 ms0.8%
_fetch_alldjango/db/models/query.py:20004 ms0.8%
__iter__django/db/models/query.py:954 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16114 ms0.8%
as_sqldjango/db/models/sql/compiler.py:7674 ms0.8%
pre_sql_setupdjango/db/models/sql/compiler.py:864 ms0.8%
setup_querydjango/db/models/sql/compiler.py:754 ms0.8%
get_selectdjango/db/models/sql/compiler.py:2684 ms0.8%
get_default_columnsdjango/db/models/sql/compiler.py:10304 ms0.8%
finalize_profileapps/projects/profiles.py:492 for duplicate in duplicates:4 ms0.8%
__iter__django/db/models/query.py:3904 ms0.8%
_fetch_alldjango/db/models/query.py:20004 ms0.8%
__iter__django/db/models/query.py:2224 ms0.8%
results_iterdjango/db/models/sql/compiler.py:15734 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16244 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
store_profileapps/projects/testing.py:361 profile = Profile.objects.create(project=project, external_id=document["run"]["id"], ingest_id=ingest_id)8 ms1.6%
manager_methoddjango/db/models/manager.py:878 ms1.6%
createdjango/db/models/query.py:6698 ms1.6%
saveapps/projects/models.py:466 super().save(*args, **kwargs)4 ms0.8%
savedjango/db/models/base.py:8744 ms0.8%
save_basedjango/db/models/base.py:9724 ms0.8%
_save_tabledjango/db/models/base.py:11684 ms0.8%
_do_insertdjango/db/models/base.py:12184 ms0.8%
manager_methoddjango/db/models/manager.py:874 ms0.8%
_insertdjango/db/models/query.py:19184 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:19254 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
saveapps/projects/models.py:4654 ms0.8%
next_numberapps/projects/models.py:35 return (model.objects.filter(project_id=project_id).aggregate(last=models.Max("number"))["last"] or 0) + 14 ms0.8%
aggregatedjango/db/models/query.py:5944 ms0.8%
get_aggregationdjango/db/models/sql/query.py:6334 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16244 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
perf_scenarioapps/projects/tests.py:69954 ms10.1%
store_profileapps/projects/testing.py:364 finalize_profile(profile.id)29 ms5.4%
finalize_profileapps/projects/profiles.py:479 profile = Profile.objects.select_for_update(no_key=True).get(pk=profile_id)8 ms1.6%
getdjango/db/models/query.py:6358 ms1.6%
__len__django/db/models/query.py:3728 ms1.6%
_fetch_alldjango/db/models/query.py:20008 ms1.6%
__iter__django/db/models/query.py:958 ms1.6%
execute_sqldjango/db/models/sql/compiler.py:16624 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16244 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
finalize_profileapps/projects/profiles.py:4968 ms1.6%
add_perfsapps/projects/rollups.py:30 for perf in perfs:4 ms0.8%
__iter__django/db/models/query.py:3904 ms0.8%
_fetch_alldjango/db/models/query.py:20004 ms0.8%
__iter__django/db/models/query.py:954 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16244 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
add_perfsapps/projects/rollups.py:64 for row in TestDailyStats.objects.filter(4 ms0.8%
__iter__django/db/models/query.py:3904 ms0.8%
_fetch_alldjango/db/models/query.py:20004 ms0.8%
__iter__django/db/models/query.py:954 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16244 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
finalize_profileapps/projects/profiles.py:483 for part in ProfilePart.objects.filter(profile=profile).defer("document").order_by("index", "id"):4 ms0.8%
__iter__django/db/models/query.py:3904 ms0.8%
_fetch_alldjango/db/models/query.py:20004 ms0.8%
__iter__django/db/models/query.py:954 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16244 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
finalize_profileapps/projects/profiles.py:4854 ms0.8%
__iter__django/db/models/query.py:3904 ms0.8%
_fetch_alldjango/db/models/query.py:20004 ms0.8%
__iter__django/db/models/query.py:1074 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16624 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
_execute_genpsycopg/_cursor_base.py:2064 ms0.8%
_maybe_prepare_genpsycopg/_cursor_base.py:2864 ms0.8%
_execute_sendpsycopg/client_cursor.py:784 ms0.8%
finalize_profileapps/projects/profiles.py:492 for duplicate in duplicates:4 ms0.8%
__iter__django/db/models/query.py:3904 ms0.8%
_fetch_alldjango/db/models/query.py:20004 ms0.8%
__iter__django/db/models/query.py:2224 ms0.8%
results_iterdjango/db/models/sql/compiler.py:15734 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16244 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
store_profileapps/projects/testing.py:36321 ms3.9%
process_profile_partapps/projects/profiles.py:345 write_perfs(profile, part, entries, tests)8 ms1.6%
write_perfsapps/projects/profiles.py:458 TestPerf.objects.bulk_create(8 ms1.6%
manager_methoddjango/db/models/manager.py:878 ms1.6%
bulk_createdjango/db/models/query.py:8338 ms1.6%
_batched_insertdjango/db/models/query.py:19568 ms1.6%
_insertdjango/db/models/query.py:19188 ms1.6%
execute_sqldjango/db/models/sql/compiler.py:19258 ms1.6%
executedjango/db/backends/utils.py:798 ms1.6%
_execute_with_wrappersdjango/db/backends/utils.py:928 ms1.6%
_executedjango/db/backends/utils.py:1058 ms1.6%
executepsycopg/cursor.py:1148 ms1.6%
waitpsycopg/connection.py:4838 ms1.6%
process_profile_partapps/projects/profiles.py:342 profile = claim_part(part, document)8 ms1.6%
claim_partapps/projects/profiles.py:358 profile = Profile.objects.select_for_update(no_key=True).get(pk=part.profile_id)8 ms1.6%
getdjango/db/models/query.py:6358 ms1.6%
__len__django/db/models/query.py:3728 ms1.6%
_fetch_alldjango/db/models/query.py:20008 ms1.6%
__iter__django/db/models/query.py:958 ms1.6%
execute_sqldjango/db/models/sql/compiler.py:16114 ms0.8%
as_sqldjango/db/models/sql/compiler.py:7674 ms0.8%
pre_sql_setupdjango/db/models/sql/compiler.py:864 ms0.8%
setup_querydjango/db/models/sql/compiler.py:754 ms0.8%
get_selectdjango/db/models/sql/compiler.py:2684 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16244 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
process_profile_partapps/projects/profiles.py:3464 ms0.8%
write_snapshotsapps/projects/profiles.py:313 cursor.executemany(SNAPSHOT_UPSERT, batch)4 ms0.8%
executemanydjango/db/backends/utils.py:844 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executemanydjango/db/backends/utils.py:1144 ms0.8%
executemanypsycopg/cursor.py:1374 ms0.8%
_pipeline_nolockpsycopg/connection.py:4684 ms0.8%
__exit__psycopg/_pipeline.py:734 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
store_profileapps/projects/testing.py:361 profile = Profile.objects.create(project=project, external_id=document["run"]["id"], ingest_id=ingest_id)4 ms0.8%
manager_methoddjango/db/models/manager.py:874 ms0.8%
createdjango/db/models/query.py:6694 ms0.8%
saveapps/projects/models.py:4654 ms0.8%
next_numberapps/projects/models.py:35 return (model.objects.filter(project_id=project_id).aggregate(last=models.Max("number"))["last"] or 0) + 14 ms0.8%
aggregatedjango/db/models/query.py:5944 ms0.8%
get_aggregationdjango/db/models/sql/query.py:6334 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16244 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
setUpTestDataapps/projects/tests.py:91858 ms10.9%
store_profileapps/projects/testing.py:36333 ms6.2%
process_profile_partapps/projects/profiles.py:34621 ms3.9%
write_snapshotsapps/projects/profiles.py:31217 ms3.1%
<genexpr>apps/projects/profiles.py:31017 ms3.1%
rowapps/projects/profiles.py:306 compress(json.dumps(snapshot_document(document, entry), separators=(",", ":")).encode()),13 ms2.3%
compressapps/projects/profiles.py:108 return gzip.compress(data, compresslevel=6)8 ms1.6%
compress<stdlib>/gzip.py:6348 ms1.6%
snapshot_documentapps/projects/profiles.py:2654 ms0.8%
rowapps/projects/profiles.py:308 return [field.get_db_prep_save(value, connection) for field, value in zip(fields, values, strict=True)]4 ms0.8%
compressapps/projects/profiles.py:108 return gzip.compress(data, compresslevel=6)4 ms0.8%
compress<stdlib>/gzip.py:6344 ms0.8%
write_snapshotsapps/projects/profiles.py:313 cursor.executemany(SNAPSHOT_UPSERT, batch)4 ms0.8%
executemanydjango/db/backends/utils.py:844 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executemanydjango/db/backends/utils.py:1144 ms0.8%
executemanypsycopg/cursor.py:1374 ms0.8%
_pipeline_nolockpsycopg/connection.py:4684 ms0.8%
__exit__psycopg/_pipeline.py:734 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
process_profile_partapps/projects/profiles.py:342 profile = claim_part(part, document)8 ms1.6%
claim_partapps/projects/profiles.py:376 project = profile.project4 ms0.8%
__get__django/db/models/fields/related_descriptors.py:2574 ms0.8%
get_objectdjango/db/models/fields/related_descriptors.py:2224 ms0.8%
getdjango/db/models/query.py:6354 ms0.8%
__len__django/db/models/query.py:3724 ms0.8%
_fetch_alldjango/db/models/query.py:20004 ms0.8%
__iter__django/db/models/query.py:954 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16244 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
claim_partapps/projects/profiles.py:359 ProfilePart.objects.filter(pk=part.pk).update(status=ProfilePart.StatusTypes.PENDING)4 ms0.8%
updatedjango/db/models/query.py:13004 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:21114 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16244 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
process_profile_partapps/projects/profiles.py:345 write_perfs(profile, part, entries, tests)4 ms0.8%
write_perfsapps/projects/profiles.py:458 TestPerf.objects.bulk_create(4 ms0.8%
manager_methoddjango/db/models/manager.py:874 ms0.8%
bulk_createdjango/db/models/query.py:8084 ms0.8%
_prepare_for_bulk_createdjango/db/models/query.py:6924 ms0.8%
_prepare_related_fields_for_savedjango/db/models/base.py:12554 ms0.8%
store_profileapps/projects/testing.py:362 part = ProfilePart.objects.create(profile=profile, index=0, document=compress(data), document_size=len(data))13 ms2.3%
manager_methoddjango/db/models/manager.py:878 ms1.6%
createdjango/db/models/query.py:6698 ms1.6%
savedjango/db/models/base.py:8748 ms1.6%
save_basedjango/db/models/base.py:9574 ms0.8%
save_basedjango/db/models/base.py:9724 ms0.8%
_save_tabledjango/db/models/base.py:11684 ms0.8%
_do_insertdjango/db/models/base.py:12184 ms0.8%
manager_methoddjango/db/models/manager.py:874 ms0.8%
_insertdjango/db/models/query.py:19184 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:19254 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
compressapps/projects/profiles.py:108 return gzip.compress(data, compresslevel=6)4 ms0.8%
compress<stdlib>/gzip.py:6344 ms0.8%
store_profileapps/projects/testing.py:361 profile = Profile.objects.create(project=project, external_id=document["run"]["id"], ingest_id=ingest_id)4 ms0.8%
manager_methoddjango/db/models/manager.py:874 ms0.8%
createdjango/db/models/query.py:6694 ms0.8%
saveapps/projects/models.py:4654 ms0.8%
next_numberapps/projects/models.py:35 return (model.objects.filter(project_id=project_id).aggregate(last=models.Max("number"))["last"] or 0) + 14 ms0.8%
aggregatedjango/db/models/query.py:5944 ms0.8%
get_aggregationdjango/db/models/sql/query.py:6334 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16244 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
store_profileapps/projects/testing.py:364 finalize_profile(profile.id)4 ms0.8%
finalize_profileapps/projects/profiles.py:4964 ms0.8%
add_perfsapps/projects/rollups.py:64 for row in TestDailyStats.objects.filter(4 ms0.8%
__iter__django/db/models/query.py:3904 ms0.8%
_fetch_alldjango/db/models/query.py:20004 ms0.8%
__iter__django/db/models/query.py:954 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16244 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
store_profileapps/projects/testing.py:365 profile.refresh_from_db()4 ms0.8%
refresh_from_dbdjango/db/models/base.py:7584 ms0.8%
getdjango/db/models/query.py:6354 ms0.8%
__len__django/db/models/query.py:3724 ms0.8%
_fetch_alldjango/db/models/query.py:20004 ms0.8%
__iter__django/db/models/query.py:1044 ms0.8%
setUpTestDataapps/projects/tests.py:92633 ms6.2%
store_profileapps/projects/testing.py:361 profile = Profile.objects.create(project=project, external_id=document["run"]["id"], ingest_id=ingest_id)13 ms2.3%
manager_methoddjango/db/models/manager.py:8713 ms2.3%
createdjango/db/models/query.py:6698 ms1.6%
saveapps/projects/models.py:466 super().save(*args, **kwargs)8 ms1.6%
savedjango/db/models/base.py:8748 ms1.6%
save_basedjango/db/models/base.py:9724 ms0.8%
_save_tabledjango/db/models/base.py:11684 ms0.8%
_do_insertdjango/db/models/base.py:12184 ms0.8%
manager_methoddjango/db/models/manager.py:874 ms0.8%
_insertdjango/db/models/query.py:19184 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:19254 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
save_basedjango/db/models/base.py:9574 ms0.8%
createdjango/db/models/query.py:6674 ms0.8%
__init__django/db/models/base.py:5504 ms0.8%
store_profileapps/projects/testing.py:364 finalize_profile(profile.id)13 ms2.3%
finalize_profileapps/projects/profiles.py:4964 ms0.8%
add_perfsapps/projects/rollups.py:64 for row in TestDailyStats.objects.filter(4 ms0.8%
__iter__django/db/models/query.py:3904 ms0.8%
filterdjango/db/models/query.py:15424 ms0.8%
_filter_or_excludedjango/db/models/query.py:15604 ms0.8%
_filter_or_exclude_inplacedjango/db/models/query.py:15704 ms0.8%
add_qdjango/db/models/sql/query.py:16714 ms0.8%
_add_qdjango/db/models/sql/query.py:17034 ms0.8%
build_filterdjango/db/models/sql/query.py:16004 ms0.8%
setup_joinsdjango/db/models/sql/query.py:19744 ms0.8%
names_to_pathdjango/db/models/sql/query.py:17864 ms0.8%
finalize_profileapps/projects/profiles.py:483 for part in ProfilePart.objects.filter(profile=profile).defer("document").order_by("index", "id"):4 ms0.8%
__iter__django/db/models/query.py:3904 ms0.8%
_fetch_alldjango/db/models/query.py:20004 ms0.8%
__iter__django/db/models/query.py:954 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16244 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
__exit__django/db/transaction.py:2474 ms0.8%
innerdjango/utils/asyncio.py:264 ms0.8%
savepoint_commitdjango/db/backends/base/base.py:4314 ms0.8%
_savepoint_commitdjango/db/backends/base/base.py:3754 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1034 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
store_profileapps/projects/testing.py:3638 ms1.6%
process_profile_partapps/projects/profiles.py:3448 ms1.6%
upsert_testsapps/projects/profiles.py:4518 ms1.6%
upsertapps/projects/models.py:230 self.bulk_create( # sorted, so uploads sharing tests lock their rows in the same order4 ms0.8%
manager_methoddjango/db/models/manager.py:874 ms0.8%
bulk_createdjango/db/models/query.py:8334 ms0.8%
_batched_insertdjango/db/models/query.py:19564 ms0.8%
_insertdjango/db/models/query.py:19184 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:19254 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
upsertapps/projects/models.py:236 return {test.name: test for test in self.filter(project=project, name__in=names)}4 ms0.8%
__iter__django/db/models/query.py:3904 ms0.8%
_fetch_alldjango/db/models/query.py:20004 ms0.8%
__iter__django/db/models/query.py:954 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:16244 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
setUpTestDataapps/projects/tests.py:9304 ms0.8%
makemodel_bakery/baker.py:1474 ms0.8%
makemodel_bakery/baker.py:4064 ms0.8%
_makemodel_bakery/baker.py:4824 ms0.8%
instancemodel_bakery/baker.py:5354 ms0.8%
savedjango/db/models/base.py:8744 ms0.8%
save_basedjango/db/models/base.py:9724 ms0.8%
_save_tabledjango/db/models/base.py:11684 ms0.8%
_do_insertdjango/db/models/base.py:12184 ms0.8%
manager_methoddjango/db/models/manager.py:874 ms0.8%
_insertdjango/db/models/query.py:19184 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:19254 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
setUpTestDataapps/projects/tests.py:9094 ms0.8%
makemodel_bakery/baker.py:1474 ms0.8%
makemodel_bakery/baker.py:4064 ms0.8%
_makemodel_bakery/baker.py:4724 ms0.8%
generate_valuemodel_bakery/baker.py:8004 ms0.8%
gen_relatedmodel_bakery/random_gen.py:2744 ms0.8%
makemodel_bakery/baker.py:1474 ms0.8%
makemodel_bakery/baker.py:4064 ms0.8%
_makemodel_bakery/baker.py:4824 ms0.8%
instancemodel_bakery/baker.py:5354 ms0.8%
savedjango/db/models/base.py:8744 ms0.8%
save_basedjango/db/models/base.py:9724 ms0.8%
_save_tabledjango/db/models/base.py:11684 ms0.8%
_do_insertdjango/db/models/base.py:12184 ms0.8%
manager_methoddjango/db/models/manager.py:874 ms0.8%
_insertdjango/db/models/query.py:19184 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:19254 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
setUpTestDataapps/projects/tests.py:9324 ms0.8%
makemodel_bakery/baker.py:1474 ms0.8%
makemodel_bakery/baker.py:4064 ms0.8%
_makemodel_bakery/baker.py:4824 ms0.8%
instancemodel_bakery/baker.py:5304 ms0.8%
__init__django/db/models/base.py:5364 ms0.8%
setUpTestDataapps/projects/tests.py:9084 ms0.8%
create_userdjango/contrib/auth/models.py:1754 ms0.8%
_create_userdjango/contrib/auth/models.py:1634 ms0.8%
savedjango/contrib/auth/base_user.py:624 ms0.8%
savedjango/db/models/base.py:8744 ms0.8%
save_basedjango/db/models/base.py:9724 ms0.8%
_save_tabledjango/db/models/base.py:11684 ms0.8%
_do_insertdjango/db/models/base.py:12184 ms0.8%
manager_methoddjango/db/models/manager.py:874 ms0.8%
_insertdjango/db/models/query.py:19184 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:19254 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
setUpTestDataapps/projects/tests.py:9374 ms0.8%
manager_methoddjango/db/models/manager.py:874 ms0.8%
getdjango/db/models/query.py:6254 ms0.8%
_makemodel_bakery/baker.py:4824 ms0.8%
instancemodel_bakery/baker.py:5354 ms0.8%
saveapps/projects/models.py:188 super().save(*args, **kwargs)4 ms0.8%
savedjango/db/models/base.py:8744 ms0.8%
save_basedjango/db/models/base.py:9724 ms0.8%
_save_tabledjango/db/models/base.py:11684 ms0.8%
_do_insertdjango/db/models/base.py:12184 ms0.8%
manager_methoddjango/db/models/manager.py:874 ms0.8%
_insertdjango/db/models/query.py:19184 ms0.8%
execute_sqldjango/db/models/sql/compiler.py:19254 ms0.8%
executedjango/db/backends/utils.py:794 ms0.8%
_execute_with_wrappersdjango/db/backends/utils.py:924 ms0.8%
_executedjango/db/backends/utils.py:1054 ms0.8%
executepsycopg/cursor.py:1144 ms0.8%
waitpsycopg/connection.py:4834 ms0.8%
setUpTestDataapps/projects/tests.py:9404 ms0.8%
makemodel_bakery/baker.py:1474 ms0.8%
makemodel_bakery/baker.py:4064 ms0.8%
_makemodel_bakery/baker.py:4434 ms0.8%
get_fieldsmodel_bakery/baker.py:4244 ms0.8%
setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()13 ms2.3%
_enter_atomicsdjango/test/testcases.py:139613 ms2.3%
__enter__django/db/transaction.py:19813 ms2.3%
get_autocommitdjango/db/backends/base/base.py:45413 ms2.3%
patched_ensure_connectiondjango/test/testcases.py:30313 ms2.3%
innerdjango/utils/asyncio.py:2613 ms2.3%
ensure_connectiondjango/db/backends/base/base.py:27913 ms2.3%
innerdjango/utils/asyncio.py:2613 ms2.3%
connectdjango/db/backends/base/base.py:25613 ms2.3%
innerdjango/utils/asyncio.py:2613 ms2.3%
get_new_connectiondjango/db/backends/postgresql/base.py:33313 ms2.3%
connectpsycopg/connection.py:10913 ms2.3%
wait_connpsycopg/waiting.py:1188 ms1.6%
_connect_genpsycopg/_connection_base.py:4418 ms1.6%
wait_connpsycopg/waiting.py:1124 ms0.8%
select<stdlib>/selectors.py:4524 ms0.8%
call223 ms41.6%
test_configure_pageapps/projects/tests.py:1089 response = self.client.get(self.project.url("project_configure"))209 ms38.9%
getdjango/test/client.py:1124206 ms38.5%
getdjango/test/client.py:475206 ms38.5%
genericdjango/test/client.py:671206 ms38.5%
requestdjango/test/client.py:1082206 ms38.5%
__call__django/test/client.py:173197 ms36.7%
load_middlewaredjango/core/handlers/base.py:62197 ms36.7%
__init__whitenoise/middleware.py:104197 ms36.7%
add_fileswhitenoise/base.py:108197 ms36.7%
update_files_dictionarywhitenoise/base.py:120192 ms35.8%
add_file_to_dictionarywhitenoise/base.py:131190 ms35.4%
get_static_filewhitenoise/base.py:208183 ms34.1%
__init__whitenoise/responders.py:72175 ms32.7%
get_file_statswhitenoise/responders.py:161175 ms32.7%
__init__whitenoise/responders.py:263175 ms32.7%
stat_regular_filewhitenoise/responders.py:276175 ms32.7%
2 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
update_files_dictionarywhitenoise/base.py:1155 ms0.9%
scantreewhitenoise/base.py:2625 ms0.9%
scantreewhitenoise/base.py:2625 ms0.9%
__call__django/test/client.py:1869 ms1.8%
get_responsedjango/core/handlers/base.py:1419 ms1.8%
innerdjango/core/handlers/exception.py:559 ms1.8%
__call__debug_toolbar/middleware.py:1309 ms1.8%
innerdjango/core/handlers/exception.py:559 ms1.8%
__call__django/utils/deprecation.py:3099 ms1.8%
innerdjango/core/handlers/exception.py:559 ms1.8%
__call__whitenoise/middleware.py:1239 ms1.8%
innerdjango/core/handlers/exception.py:559 ms1.8%
__call__django/utils/deprecation.py:3099 ms1.8%
innerdjango/core/handlers/exception.py:559 ms1.8%
__call__django/utils/deprecation.py:3099 ms1.8%
innerdjango/core/handlers/exception.py:559 ms1.8%
__call__django/utils/deprecation.py:3099 ms1.8%
innerdjango/core/handlers/exception.py:559 ms1.8%
__call__django/utils/deprecation.py:3099 ms1.8%
innerdjango/core/handlers/exception.py:559 ms1.8%
__call__django/utils/deprecation.py:3099 ms1.8%
innerdjango/core/handlers/exception.py:559 ms1.8%
__call__django/utils/deprecation.py:3099 ms1.8%
innerdjango/core/handlers/exception.py:559 ms1.8%
middlewareallauth/account/middleware.py:349 ms1.8%
innerdjango/core/handlers/exception.py:559 ms1.8%
_get_responsedjango/core/handlers/base.py:1989 ms1.8%
_view_wrapperdjango/contrib/auth/decorators.py:599 ms1.8%
project_configureapps/projects/urls.py:5375 ms0.9%
renderdjango/shortcuts.py:255 ms0.9%
render_to_stringdjango/template/loader.py:625 ms0.9%
renderdjango/template/backends/django.py:1075 ms0.9%
renderdjango/template/base.py:1745 ms0.9%
instrumented_test_renderdjango/test/utils.py:1145 ms0.9%
renderdjango/template/base.py:10915 ms0.9%
render_annotateddjango/template/base.py:10525 ms0.9%
renderdjango/template/loader_tags.py:1605 ms0.9%
instrumented_test_renderdjango/test/utils.py:1145 ms0.9%
renderdjango/template/base.py:10915 ms0.9%
render_annotateddjango/template/base.py:10525 ms0.9%
renderdjango/template/loader_tags.py:1605 ms0.9%
instrumented_test_renderdjango/test/utils.py:1145 ms0.9%
renderdjango/template/base.py:10915 ms0.9%
render_annotateddjango/template/base.py:10525 ms0.9%
renderdjango/template/loader_tags.py:665 ms0.9%
renderdjango/template/base.py:10915 ms0.9%
render_annotateddjango/template/base.py:10525 ms0.9%
renderdjango/template/loader_tags.py:665 ms0.9%
renderdjango/template/base.py:10915 ms0.9%
render_annotateddjango/template/base.py:10525 ms0.9%
renderdjango/template/defaulttags.py:2025 ms0.9%
2 smaller frames hidden
1 smaller frames hidden
setUpapps/projects/tests.py:953 self.client.force_login(self.user)7 ms1.3%
force_logindjango/test/client.py:8557 ms1.3%
_logindjango/test/client.py:8817 ms1.3%
logindjango/contrib/auth/__init__.py:1875 ms0.9%
cycle_keydjango/contrib/sessions/backends/base.py:4345 ms0.9%
createdjango/contrib/sessions/backends/db.py:745 ms0.9%
savedjango/contrib/sessions/backends/db.py:1265 ms0.9%
__enter__django/db/transaction.py:2115 ms0.9%
innerdjango/utils/asyncio.py:265 ms0.9%
savepointdjango/db/backends/base/base.py:4005 ms0.9%
_savepointdjango/db/backends/base/base.py:3675 ms0.9%
executedjango/db/backends/utils.py:795 ms0.9%
_execute_with_wrappersdjango/db/backends/utils.py:925 ms0.9%
_executedjango/db/backends/utils.py:1035 ms0.9%
executepsycopg/cursor.py:1145 ms0.9%
waitpsycopg/connection.py:4835 ms0.9%
1 smaller frames hidden
_post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()7 ms1.3%
_fixture_teardowndjango/test/testcases.py:14957 ms1.3%
check_constraintsdjango/db/backends/postgresql/base.py:4837 ms1.3%
executedjango/db/backends/utils.py:797 ms1.3%
_execute_with_wrappersdjango/db/backends/utils.py:927 ms1.3%
_executedjango/db/backends/utils.py:1037 ms1.3%
executepsycopg/cursor.py:1147 ms1.3%
waitpsycopg/connection.py:4837 ms1.3%
Estimated from 169 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/tests.py:1089
response = self.client.get(self.project.url("project_configure"))
test_configure_page · Libraries
197 ms
apps/projects/models.py:466
super().save(*args, **kwargs)
save · Database
21 ms
apps/projects/profiles.py:358
profile = Profile.objects.select_for_update(no_key=True).get(pk=part.profile_id)
claim_part · Database
21 ms
apps/projects/profiles.py:108
return gzip.compress(data, compresslevel=6)
compress · Libraries
17 ms
apps/projects/profiles.py:458
TestPerf.objects.bulk_create(
write_perfs · Database
17 ms
apps/projects/rollups.py:64
for row in TestDailyStats.objects.filter(
add_perfs · Database
17 ms
apps/projects/models.py:236
return {test.name: test for test in self.filter(project=project, name__in=names)}
upsert · Database
13 ms
apps/projects/rollups.py:88
TestDailyStats.objects.bulk_create(
add_perfs · Database
13 ms
apps/projects/models.py:35
return (model.objects.filter(project_id=project_id).aggregate(last=models.Max("number"))["last"] or 0) + 1
next_number · Database
13 ms
apps/projects/profiles.py:313
cursor.executemany(SNAPSHOT_UPSERT, batch)
write_snapshots · Database
13 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_ProjectPagesTest class 312 ms
_django_setup_unittest class 0.29 ms
_dj_autoclear_mailbox function 0.05 ms
_django_db_marker function 0.05 ms
_template_string_if_invalid_marker function 0.05 ms
_django_set_urlconf function 0.04 ms
_live_server_helper function 0.04 ms
_django_clear_site_cache function 0.03 ms
monkeypatch function 0.02 ms

Database

323 queries · 169 ms

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

21×
SELECT "projects_profile"."id", "projects_profile"."project_id", "projects_profile"."number", "projects_profile"."environment_id", "projects_profile"."session_id", "projects_profile"."run_id", "projects_profile"."commit_id", "projects_profile"."ingest_id", "projects_profile"."external_id", "project…
15×
SELECT "projects_environment"."id", "projects_environment"."project_id", "projects_environment"."name", "projects_environment"."kind", "projects_environment"."provider", "projects_environment"."details", "projects_environment"."date_first_seen", "projects_environment"."date_last_seen" FROM "project…
14×
SELECT "projects_profilepart"."id", "projects_profilepart"."profile_id", "projects_profilepart"."index", "projects_profilepart"."count", "projects_profilepart"."checksum", "projects_profilepart"."status", "projects_profilepart"."error", "projects_profilepart"."tests_count", "projects_profilepart"."…
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…
7×
SELECT MAX("projects_profile"."number") AS "last" FROM "projects_profile" WHERE "projects_profile"."project_id" = %s

Biggest pieces of work

setup setUpClass
django/test/testcases.py:1439
313 ms
call test body
apps/projects/tests.py:1089
209 ms
call _post_teardown
django/test/testcases.py:1240
7 ms
call setUp
apps/projects/tests.py:953
7 ms

Reliability

3 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 3 results, oldest first in the strip
When Environment Outcome Duration Commit
6 hours ago CI github-actions:test passed 536 ms d2c12e5 main Profile
6 hours ago CI github-actions:test passed 216 ms 0b902f6 main Profile
7 hours ago CI github-actions:test passed 367 ms 78a4357 main Profile