Tests / apps/projects/tests.py
StorageTest::test_an_older_upload_keeps_the_newer_snapshot
First seen 1 month, 1 week ago in 78a4357
CI
github-actions:test
15 runs
Average
107 ms
median 117 ms
max 139 ms
max 139 ms
Phases
Setup 75 ms
Call 32 ms
Teardown 0.17 ms
Categories
Database 101 ms
App code 2 ms
Factories 0.20 ms
Test code 0.19 ms
Other (Libraries, Serialization, pytest, Unsampled, ...) 5 ms
128 database queries per run
Needs 0 KB of memory (max 0 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup65 ms69.8%
TestCase.setUpClassdjango/test/testcases.py:1439 cls.setUpTestData()55 ms59.8%
StorageTest.setUpTestDataapps/projects/tests.py:118731 ms33.2%
store_profileapps/projects/testing.py:37314 ms15.0%
process_profile_partapps/projects/profiles.py:381 profile = claim_part(part, document)6 ms6.6%
claim_partapps/projects/profiles.py:397 profile = Profile.objects.select_for_update(no_key=True).get(pk=part.profile_id)2 ms1.7%
QuerySet.getdjango/db/models/query.py:6252 ms1.7%
QuerySet.filterdjango/db/models/query.py:15422 ms1.7%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms1.7%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms1.7%
Query.add_qdjango/db/models/sql/query.py:16712 ms1.7%
Query._add_qdjango/db/models/sql/query.py:17032 ms1.7%
Query.build_filterdjango/db/models/sql/query.py:15772 ms1.7%
Query.setup_joinsdjango/db/models/sql/query.py:19912 ms1.7%
claim_partapps/projects/profiles.py:398 ProfilePart.objects.filter(pk=part.pk).update(status=ProfilePart.StatusTypes.PENDING)2 ms1.7%
QuerySet.updatedjango/db/models/query.py:13002 ms1.7%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms1.7%
claim_partapps/projects/profiles.py:422 commit, _ = Commit.objects.get_or_create(2 ms1.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.7%
QuerySet.get_or_createdjango/db/models/query.py:9872 ms1.7%
QuerySet.getdjango/db/models/query.py:6352 ms1.7%
QuerySet.__len__django/db/models/query.py:3722 ms1.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.7%
ModelIterable.__iter__django/db/models/query.py:952 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.7%
Cursor.executepsycopg/cursor.py:1132 ms1.7%
Connection.waitpsycopg/connection.py:4952 ms1.7%
claim_partapps/projects/profiles.py:4852 ms1.7%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)2 ms1.7%
Model.savedjango/db/models/base.py:8742 ms1.7%
Model.save_basedjango/db/models/base.py:9662 ms1.7%
Model._save_tabledjango/db/models/base.py:11102 ms1.7%
Model._do_updatedjango/db/models/base.py:12112 ms1.7%
QuerySet._updatedjango/db/models/query.py:13272 ms1.7%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms1.7%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.7%
Cursor.executepsycopg/cursor.py:1132 ms1.7%
Connection.waitpsycopg/connection.py:4952 ms1.7%
process_profile_partapps/projects/profiles.py:3833 ms3.3%
upsert_testsapps/projects/profiles.py:4903 ms3.3%
TestManager.upsertapps/projects/models.py:2292 ms1.7%
TestManager.slugs_forapps/projects/models.py:240 existing = dict(self.filter(project_id=project_id, name__in=names).values_list("name", "slug"))2 ms1.7%
QuerySet.__iter__django/db/models/query.py:3902 ms1.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.7%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms1.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.7%
Cursor.executepsycopg/cursor.py:1132 ms1.7%
Connection.waitpsycopg/connection.py:4952 ms1.7%
TestManager.upsertapps/projects/models.py:236 return {test.name: test for test in self.filter(project=project, name__in=names)}2 ms1.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.7%
process_profile_partapps/projects/profiles.py:377 or ProfilePart.objects.filter(profile_id=part.profile_id, index=part.index, id__gt=part.id).exists()2 ms1.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.7%
QuerySet.filterdjango/db/models/query.py:15422 ms1.7%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms1.7%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms1.7%
Query.add_qdjango/db/models/sql/query.py:16712 ms1.7%
Query._add_qdjango/db/models/sql/query.py:17032 ms1.7%
Query.build_filterdjango/db/models/sql/query.py:16132 ms1.7%
Query.build_lookupdjango/db/models/sql/query.py:14302 ms1.7%
process_profile_partapps/projects/profiles.py:384 write_perfs(profile, part, entries, tests)2 ms1.7%
write_perfsapps/projects/profiles.py:497 TestPerf.objects.bulk_create(2 ms1.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.7%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms1.7%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms1.7%
QuerySet._insertdjango/db/models/query.py:19182 ms1.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19242 ms1.7%
SQLInsertCompiler.as_sqldjango/db/models/sql/compiler.py:18692 ms1.7%
SQLInsertCompiler.assemble_as_sqldjango/db/backends/postgresql/compiler.py:562 ms1.7%
process_profile_partapps/projects/profiles.py:3852 ms1.7%
write_snapshotsapps/projects/profiles.py:352 cursor.executemany(SNAPSHOT_UPSERT, batch)2 ms1.7%
CursorWrapper.executemanydjango/db/backends/utils.py:842 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.7%
CursorWrapper._executemanydjango/db/backends/utils.py:1142 ms1.7%
Cursor.executemanypsycopg/cursor.py:1372 ms1.7%
Connection._pipeline_nolockpsycopg/connection.py:4722 ms1.7%
Pipeline.__exit__psycopg/_pipeline.py:732 ms1.7%
Connection.waitpsycopg/connection.py:4952 ms1.7%
store_profileapps/projects/testing.py:374 finalize_profile(profile.id)12 ms13.3%
Atomic.__exit__django/db/transaction.py:2478 ms8.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:266 ms6.6%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4316 ms6.6%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3756 ms6.6%
CursorWrapper.executedjango/db/backends/utils.py:796 ms6.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:926 ms6.6%
CursorWrapper._executedjango/db/backends/utils.py:1036 ms6.6%
Cursor.executepsycopg/cursor.py:1136 ms6.6%
Connection.waitpsycopg/connection.py:4956 ms6.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2066 ms6.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2866 ms6.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:786 ms6.6%
Atomic.__enter__django/db/transaction.py:2112 ms1.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.7%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms1.7%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.7%
Cursor.executepsycopg/cursor.py:1132 ms1.7%
Connection.waitpsycopg/connection.py:4952 ms1.7%
finalize_profileapps/projects/profiles.py:522 for part in ProfilePart.objects.filter(profile=profile).defer("document").order_by("index", "id"):2 ms1.7%
finalize_profileapps/projects/profiles.py:530 duplicates = rows.values("test").annotate(count=Count("id"), keep=Max("id")).filter(count__gt=1)2 ms1.7%
Count.__init__django/db/models/aggregates.py:2582 ms1.7%
store_profileapps/projects/testing.py:371 profile = Profile.objects.create(project=project, external_id=document["run"]["id"], ingest_id=ingest_id)2 ms1.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.7%
QuerySet.createdjango/db/models/query.py:6692 ms1.7%
Profile.saveapps/projects/models.py:465 self.number = next_number(type(self), self.project_id)2 ms1.7%
next_numberapps/projects/models.py:35 return (model.objects.filter(project_id=project_id).aggregate(last=models.Max("number"))["last"] or 0) + 12 ms1.7%
QuerySet.aggregatedjango/db/models/query.py:5942 ms1.7%
Query.get_aggregationdjango/db/models/sql/query.py:6332 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.7%
Cursor.executepsycopg/cursor.py:1132 ms1.7%
Connection.waitpsycopg/connection.py:4952 ms1.7%
store_profileapps/projects/testing.py:372 part = ProfilePart.objects.create(profile=profile, index=0, document=compress(data), document_size=len(data))2 ms1.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.7%
QuerySet.createdjango/db/models/query.py:6672 ms1.7%
Model.__init__django/db/models/base.py:5562 ms1.7%
store_profileapps/projects/testing.py:375 profile.refresh_from_db()2 ms1.7%
Model.refresh_from_dbdjango/db/models/base.py:7582 ms1.7%
QuerySet.getdjango/db/models/query.py:6352 ms1.7%
QuerySet.__len__django/db/models/query.py:3722 ms1.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.7%
ModelIterable.__iter__django/db/models/query.py:1272 ms1.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15772 ms1.7%
SQLCompiler.get_convertersdjango/db/models/sql/compiler.py:15262 ms1.7%
Col.get_db_convertersdjango/db/models/expressions.py:13432 ms1.7%
StorageTest.setUpTestDataapps/projects/tests.py:119520 ms21.6%
store_profileapps/projects/testing.py:37311 ms11.6%
process_profile_partapps/projects/profiles.py:381 profile = claim_part(part, document)6 ms6.6%
claim_partapps/projects/profiles.py:397 profile = Profile.objects.select_for_update(no_key=True).get(pk=part.profile_id)2 ms1.7%
QuerySet.getdjango/db/models/query.py:6352 ms1.7%
QuerySet.__len__django/db/models/query.py:3722 ms1.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.7%
ModelIterable.__iter__django/db/models/query.py:952 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.7%
claim_partapps/projects/profiles.py:399 ProfilePart.objects.filter(profile=profile, index=part.index, id__lt=part.id).delete() # superseded uploads2 ms1.7%
QuerySet.deletedjango/db/models/query.py:12382 ms1.7%
Collector.deletedjango/db/models/deletion.py:4712 ms1.7%
QuerySet._raw_deletedjango/db/models/query.py:12602 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.7%
Cursor.executepsycopg/cursor.py:1132 ms1.7%
Connection.waitpsycopg/connection.py:4952 ms1.7%
claim_partapps/projects/profiles.py:4172 ms1.7%
get_or_create_environmentapps/projects/environments.py:63 obj, created = Environment.objects.get_or_create(2 ms1.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.7%
QuerySet.get_or_createdjango/db/models/query.py:9872 ms1.7%
QuerySet.getdjango/db/models/query.py:6352 ms1.7%
QuerySet.__len__django/db/models/query.py:3722 ms1.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.7%
ModelIterable.__iter__django/db/models/query.py:952 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms1.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:9812 ms1.7%
claim_partapps/projects/profiles.py:4852 ms1.7%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)2 ms1.7%
Model.savedjango/db/models/base.py:8742 ms1.7%
Model.save_basedjango/db/models/base.py:9662 ms1.7%
Model._save_tabledjango/db/models/base.py:11102 ms1.7%
Model._do_updatedjango/db/models/base.py:12112 ms1.7%
QuerySet._updatedjango/db/models/query.py:13272 ms1.7%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms1.7%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.7%
Cursor.executepsycopg/cursor.py:1132 ms1.7%
Connection.waitpsycopg/connection.py:4952 ms1.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2052 ms1.7%
BaseCursor._convert_querypsycopg/_cursor_base.py:4652 ms1.7%
PostgresClientQuery.convertpsycopg/_queries.py:2892 ms1.7%
PostgresClientQuery.dumppsycopg/_queries.py:2992 ms1.7%
PostgresClientQuery.dump.<locals>.<genexpr>psycopg/_queries.py:3002 ms1.7%
process_profile_partapps/projects/profiles.py:377 or ProfilePart.objects.filter(profile_id=part.profile_id, index=part.index, id__gt=part.id).exists()2 ms1.7%
QuerySet.existsdjango/db/models/query.py:13372 ms1.7%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms1.7%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.7%
Cursor.executepsycopg/cursor.py:1132 ms1.7%
Connection.waitpsycopg/connection.py:4952 ms1.7%
process_profile_partapps/projects/profiles.py:3832 ms1.7%
upsert_testsapps/projects/profiles.py:4902 ms1.7%
TestManager.upsertapps/projects/models.py:230 self.bulk_create( # sorted, so uploads sharing tests lock their rows in the same order2 ms1.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.7%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms1.7%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms1.7%
QuerySet._insertdjango/db/models/query.py:19182 ms1.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.7%
Cursor.executepsycopg/cursor.py:1132 ms1.7%
Connection.waitpsycopg/connection.py:4952 ms1.7%
process_profile_partapps/projects/profiles.py:384 write_perfs(profile, part, entries, tests)2 ms1.7%
write_perfsapps/projects/profiles.py:497 TestPerf.objects.bulk_create(2 ms1.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.7%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms1.7%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms1.7%
QuerySet._insertdjango/db/models/query.py:19182 ms1.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.7%
Cursor.executepsycopg/cursor.py:1132 ms1.7%
Connection.waitpsycopg/connection.py:4952 ms1.7%
store_profileapps/projects/testing.py:374 finalize_profile(profile.id)6 ms6.6%
finalize_profileapps/projects/profiles.py:518 profile = Profile.objects.select_for_update(no_key=True).get(pk=profile_id)2 ms1.7%
QuerySet.getdjango/db/models/query.py:6352 ms1.7%
QuerySet.__len__django/db/models/query.py:3722 ms1.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.7%
ModelIterable.__iter__django/db/models/query.py:952 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.7%
Cursor.executepsycopg/cursor.py:1132 ms1.7%
Connection.waitpsycopg/connection.py:4952 ms1.7%
finalize_profileapps/projects/profiles.py:522 for part in ProfilePart.objects.filter(profile=profile).defer("document").order_by("index", "id"):2 ms1.7%
QuerySet.__iter__django/db/models/query.py:3902 ms1.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.7%
ModelIterable.__iter__django/db/models/query.py:952 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.7%
Cursor.executepsycopg/cursor.py:1132 ms1.7%
Connection.waitpsycopg/connection.py:4952 ms1.7%
finalize_profileapps/projects/profiles.py:531 for duplicate in duplicates:2 ms1.7%
QuerySet.__iter__django/db/models/query.py:3902 ms1.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.7%
ValuesIterable.__iter__django/db/models/query.py:2222 ms1.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.7%
Cursor.executepsycopg/cursor.py:1132 ms1.7%
Connection.waitpsycopg/connection.py:4952 ms1.7%
finalize_profileapps/projects/profiles.py:5352 ms1.7%
add_perfsapps/projects/rollups.py:64 for row in TestDailyStats.objects.filter(2 ms1.7%
QuerySet.__iter__django/db/models/query.py:3902 ms1.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.7%
ModelIterable.__iter__django/db/models/query.py:952 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.7%
Cursor.executepsycopg/cursor.py:1132 ms1.7%
Connection.waitpsycopg/connection.py:4952 ms1.7%
store_profileapps/projects/testing.py:371 profile = Profile.objects.create(project=project, external_id=document["run"]["id"], ingest_id=ingest_id)2 ms1.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.7%
QuerySet.createdjango/db/models/query.py:6692 ms1.7%
Profile.saveapps/projects/models.py:465 self.number = next_number(type(self), self.project_id)2 ms1.7%
next_numberapps/projects/models.py:35 return (model.objects.filter(project_id=project_id).aggregate(last=models.Max("number"))["last"] or 0) + 12 ms1.7%
QuerySet.aggregatedjango/db/models/query.py:5942 ms1.7%
Query.get_aggregationdjango/db/models/sql/query.py:6332 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.7%
Cursor.executepsycopg/cursor.py:1132 ms1.7%
Connection.waitpsycopg/connection.py:4952 ms1.7%
store_profileapps/projects/testing.py:372 part = ProfilePart.objects.create(profile=profile, index=0, document=compress(data), document_size=len(data))2 ms1.7%
compressapps/projects/profiles.py:111 return gzip.compress(data, compresslevel=6)2 ms1.7%
compress<stdlib>/gzip.py:6682 ms1.7%
StorageTest.setUpTestDataapps/projects/tests.py:1184 cls.project = baker.make(Project)3 ms3.3%
makemodel_bakery/baker.py:1473 ms3.3%
Baker.makemodel_bakery/baker.py:4063 ms3.3%
Baker._makemodel_bakery/baker.py:471 self.model_attrs[field.name] = self.generate_value(2 ms1.7%
Baker.generate_valuemodel_bakery/baker.py:8002 ms1.7%
gen_relatedmodel_bakery/random_gen.py:2742 ms1.7%
makemodel_bakery/baker.py:1472 ms1.7%
Baker.makemodel_bakery/baker.py:4062 ms1.7%
Baker._makemodel_bakery/baker.py:4822 ms1.7%
Baker.instancemodel_bakery/baker.py:5352 ms1.7%
Model.savedjango/db/models/base.py:8742 ms1.7%
Model.save_basedjango/db/models/base.py:9662 ms1.7%
Model._save_tabledjango/db/models/base.py:11672 ms1.7%
Model._do_insertdjango/db/models/base.py:12182 ms1.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.7%
QuerySet._insertdjango/db/models/query.py:19182 ms1.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.7%
Cursor.executepsycopg/cursor.py:1132 ms1.7%
Connection.waitpsycopg/connection.py:4952 ms1.7%
Baker._makemodel_bakery/baker.py:4822 ms1.7%
Baker.instancemodel_bakery/baker.py:5352 ms1.7%
Model.savedjango/db/models/base.py:8742 ms1.7%
Model.save_basedjango/db/models/base.py:9662 ms1.7%
Model._save_tabledjango/db/models/base.py:11672 ms1.7%
Model._do_insertdjango/db/models/base.py:12182 ms1.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.7%
QuerySet._insertdjango/db/models/query.py:19182 ms1.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.7%
Cursor.executepsycopg/cursor.py:1132 ms1.7%
Connection.waitpsycopg/connection.py:4952 ms1.7%
StorageTest.setUpTestDataapps/projects/tests.py:12032 ms1.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.7%
QuerySet.getdjango/db/models/query.py:6352 ms1.7%
QuerySet.__len__django/db/models/query.py:3722 ms1.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms1.7%
ModelIterable.__iter__django/db/models/query.py:952 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.7%
Cursor.executepsycopg/cursor.py:1132 ms1.7%
Connection.waitpsycopg/connection.py:4952 ms1.7%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()9 ms10.0%
TestCase._enter_atomicsdjango/test/testcases.py:13969 ms10.0%
Atomic.__enter__django/db/transaction.py:1989 ms10.0%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4549 ms10.0%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3039 ms10.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms10.0%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2799 ms10.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms10.0%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2569 ms10.0%
DatabaseWrapper.get_new_connectionft/db/postgresql/base.py:39 return super().get_new_connection(conn_params)9 ms10.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms10.0%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3339 ms10.0%
Connection.connectpsycopg/connection.py:1099 ms10.0%
wait_connpsycopg/waiting.py:1416 ms6.6%
EpollSelector.select<stdlib>/selectors.py:4526 ms6.6%
wait_connpsycopg/waiting.py:1453 ms3.3%
BaseConnection._connect_genpsycopg/_connection_base.py:4393 ms3.3%
call28 ms30.0%
StorageTest.test_an_older_upload_keeps_the_newer_snapshotapps/projects/tests.py:1243 store_profile(25 ms26.8%
store_profileapps/projects/testing.py:37313 ms14.2%
process_profile_partapps/projects/profiles.py:381 profile = claim_part(part, document)7 ms7.9%
claim_partapps/projects/profiles.py:397 profile = Profile.objects.select_for_update(no_key=True).get(pk=part.profile_id)1 ms1.6%
QuerySet.getdjango/db/models/query.py:6351 ms1.6%
QuerySet.__len__django/db/models/query.py:3721 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms1.6%
ModelIterable.__iter__django/db/models/query.py:951 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16621 ms1.6%
cursor_iterdjango/db/models/sql/compiler.py:22541 ms1.6%
cursor_iter.<locals>.<lambda>django/db/models/sql/compiler.py:22541 ms1.6%
DatabaseErrorWrapper.__call__.<locals>.innerdjango/db/utils.py:1011 ms1.6%
Cursor.fetchmanypsycopg/cursor.py:2681 ms1.6%
claim_partapps/projects/profiles.py:399 ProfilePart.objects.filter(profile=profile, index=part.index, id__lt=part.id).delete() # superseded uploads1 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.6%
QuerySet.filterdjango/db/models/query.py:15421 ms1.6%
QuerySet._filter_or_excludedjango/db/models/query.py:15601 ms1.6%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15701 ms1.6%
Query.add_qdjango/db/models/sql/query.py:16711 ms1.6%
Query._add_qdjango/db/models/sql/query.py:17031 ms1.6%
Query.build_filterdjango/db/models/sql/query.py:15991 ms1.6%
Query.trim_joinsdjango/db/models/sql/query.py:20131 ms1.6%
<GC>~1 ms1.6%
claim_partapps/projects/profiles.py:4171 ms1.6%
get_or_create_environmentapps/projects/environments.py:63 obj, created = Environment.objects.get_or_create(1 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.6%
QuerySet.get_or_createdjango/db/models/query.py:9871 ms1.6%
QuerySet.getdjango/db/models/query.py:6351 ms1.6%
QuerySet.__len__django/db/models/query.py:3721 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms1.6%
ModelIterable.__iter__django/db/models/query.py:951 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.6%
claim_partapps/projects/profiles.py:422 commit, _ = Commit.objects.get_or_create(1 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.6%
QuerySet.get_or_createdjango/db/models/query.py:9871 ms1.6%
QuerySet.getdjango/db/models/query.py:6351 ms1.6%
QuerySet.__len__django/db/models/query.py:3721 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms1.6%
ModelIterable.__iter__django/db/models/query.py:951 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.6%
Cursor.executepsycopg/cursor.py:1131 ms1.6%
Connection.waitpsycopg/connection.py:4951 ms1.6%
claim_partapps/projects/profiles.py:4851 ms1.6%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)1 ms1.6%
Model.savedjango/db/models/base.py:8741 ms1.6%
Model.save_basedjango/db/models/base.py:9661 ms1.6%
Model._save_tabledjango/db/models/base.py:11101 ms1.6%
Model._do_updatedjango/db/models/base.py:12111 ms1.6%
QuerySet._updatedjango/db/models/query.py:13271 ms1.6%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21401 ms1.6%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21111 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.6%
Cursor.executepsycopg/cursor.py:1131 ms1.6%
Connection.waitpsycopg/connection.py:4951 ms1.6%
process_profile_partapps/projects/profiles.py:374 part = ProfilePart.objects.filter(pk=part.pk).first()1 ms1.6%
QuerySet.firstdjango/db/models/query.py:11451 ms1.6%
QuerySet.__iter__django/db/models/query.py:3901 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms1.6%
ModelIterable.__iter__django/db/models/query.py:951 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16221 ms1.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.6%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3201 ms1.6%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2981 ms1.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.6%
process_profile_partapps/projects/profiles.py:377 or ProfilePart.objects.filter(profile_id=part.profile_id, index=part.index, id__gt=part.id).exists()1 ms1.6%
QuerySet.existsdjango/db/models/query.py:13371 ms1.6%
Query.has_resultsdjango/db/models/sql/query.py:6811 ms1.6%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15921 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.6%
process_profile_partapps/projects/profiles.py:3851 ms1.6%
write_snapshotsapps/projects/profiles.py:3511 ms1.6%
write_snapshots.<locals>.<genexpr>apps/projects/profiles.py:3491 ms1.6%
write_snapshots.<locals>.rowapps/projects/profiles.py:345 compress(json.dumps(snapshot_document(document, entry), separators=(",", ":")).encode()),1 ms1.6%
compressapps/projects/profiles.py:111 return gzip.compress(data, compresslevel=6)1 ms1.6%
compress<stdlib>/gzip.py:6681 ms1.6%
process_profile_partapps/projects/profiles.py:386 ProfilePart.objects.filter(pk=part.pk).update(1 ms1.6%
QuerySet.updatedjango/db/models/query.py:13001 ms1.6%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21111 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.6%
Cursor.executepsycopg/cursor.py:1131 ms1.6%
Connection.waitpsycopg/connection.py:4951 ms1.6%
store_profileapps/projects/testing.py:374 finalize_profile(profile.id)7 ms7.9%
finalize_profileapps/projects/profiles.py:518 profile = Profile.objects.select_for_update(no_key=True).get(pk=profile_id)1 ms1.6%
QuerySet.getdjango/db/models/query.py:6351 ms1.6%
QuerySet.__len__django/db/models/query.py:3721 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms1.6%
ModelIterable.__iter__django/db/models/query.py:951 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.6%
finalize_profileapps/projects/profiles.py:527 ProfilePart.objects.filter(profile=profile).exclude(pk__in=[part.pk for part in current]).delete()1 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.6%
QuerySet.filterdjango/db/models/query.py:15421 ms1.6%
QuerySet._filter_or_excludedjango/db/models/query.py:15601 ms1.6%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15701 ms1.6%
Query.add_qdjango/db/models/sql/query.py:16711 ms1.6%
Query._add_qdjango/db/models/sql/query.py:17031 ms1.6%
Query.build_filterdjango/db/models/sql/query.py:15991 ms1.6%
Query.trim_joinsdjango/db/models/sql/query.py:20081 ms1.6%
finalize_profileapps/projects/profiles.py:530 duplicates = rows.values("test").annotate(count=Count("id"), keep=Max("id")).filter(count__gt=1)1 ms1.6%
QuerySet.valuesdjango/db/models/query.py:14141 ms1.6%
QuerySet._valuesdjango/db/models/query.py:14091 ms1.6%
Query.set_valuesdjango/db/models/sql/query.py:26051 ms1.6%
finalize_profileapps/projects/profiles.py:5351 ms1.6%
add_perfsapps/projects/rollups.py:88 TestDailyStats.objects.bulk_create(1 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.6%
QuerySet.bulk_createdjango/db/models/query.py:8331 ms1.6%
QuerySet._batched_insertdjango/db/models/query.py:19561 ms1.6%
QuerySet._insertdjango/db/models/query.py:19181 ms1.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19241 ms1.6%
SQLInsertCompiler.as_sqldjango/db/models/sql/compiler.py:18131 ms1.6%
SQLInsertCompiler.prepare_valuedjango/db/models/sql/compiler.py:17421 ms1.6%
Field.get_db_prep_savedjango/db/models/fields/__init__.py:10111 ms1.6%
Field.get_db_prep_valuedjango/db/models/fields/__init__.py:10041 ms1.6%
finalize_profileapps/projects/profiles.py:5431 ms1.6%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)1 ms1.6%
Model.savedjango/db/models/base.py:8741 ms1.6%
Model.save_basedjango/db/models/base.py:9661 ms1.6%
Model._save_tabledjango/db/models/base.py:11101 ms1.6%
Model._do_updatedjango/db/models/base.py:12111 ms1.6%
QuerySet._updatedjango/db/models/query.py:13271 ms1.6%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21401 ms1.6%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21111 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.6%
Cursor.executepsycopg/cursor.py:1131 ms1.6%
Connection.waitpsycopg/connection.py:4951 ms1.6%
store_profileapps/projects/testing.py:371 profile = Profile.objects.create(project=project, external_id=document["run"]["id"], ingest_id=ingest_id)1 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.6%
QuerySet.createdjango/db/models/query.py:6691 ms1.6%
Profile.saveapps/projects/models.py:465 self.number = next_number(type(self), self.project_id)1 ms1.6%
next_numberapps/projects/models.py:35 return (model.objects.filter(project_id=project_id).aggregate(last=models.Max("number"))["last"] or 0) + 11 ms1.6%
QuerySet.aggregatedjango/db/models/query.py:5941 ms1.6%
Query.get_aggregationdjango/db/models/sql/query.py:6331 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.6%
Cursor.executepsycopg/cursor.py:1131 ms1.6%
Connection.waitpsycopg/connection.py:4951 ms1.6%
store_profileapps/projects/testing.py:372 part = ProfilePart.objects.create(profile=profile, index=0, document=compress(data), document_size=len(data))1 ms1.6%
compressapps/projects/profiles.py:111 return gzip.compress(data, compresslevel=6)1 ms1.6%
compress<stdlib>/gzip.py:6681 ms1.6%
store_profileapps/projects/testing.py:375 profile.refresh_from_db()1 ms1.6%
Model.refresh_from_dbdjango/db/models/base.py:7581 ms1.6%
QuerySet.getdjango/db/models/query.py:6351 ms1.6%
QuerySet.__len__django/db/models/query.py:3721 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms1.6%
ModelIterable.__iter__django/db/models/query.py:951 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.6%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()3 ms3.2%
TestCase._fixture_teardowndjango/test/testcases.py:14953 ms3.2%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4833 ms3.2%
CursorWrapper.executedjango/db/backends/utils.py:793 ms3.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms3.2%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms3.2%
Cursor.executepsycopg/cursor.py:1133 ms3.2%
Connection.waitpsycopg/connection.py:4953 ms3.2%
Estimated from 61 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
ft/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection
· Database
|
9 ms |
|
apps/projects/testing.py:374
finalize_profile(profile.id)
store_profile
· Database
|
9 ms |
|
apps/projects/models.py:466
super().save(*args, **kwargs)
Profile.save
· Database
|
6 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
|
5 ms |
|
apps/projects/profiles.py:377
or ProfilePart.objects.filter(profile_id=part.profile_id, index=part.index, id__gt=part.id).exists()
process_profile_part
· Database
|
5 ms |
|
apps/projects/profiles.py:397
profile = Profile.objects.select_for_update(no_key=True).get(pk=part.profile_id)
claim_part
· Database
|
5 ms |
|
apps/projects/profiles.py:111
return gzip.compress(data, compresslevel=6)
compress
· Libraries
|
4 ms |
|
apps/projects/tests.py:1184
cls.project = baker.make(Project)
StorageTest.setUpTestData
· Database
|
3 ms |
|
apps/projects/profiles.py:497
TestPerf.objects.bulk_create(
write_perfs
· Database
|
3 ms |
|
apps/projects/profiles.py:522
for part in ProfilePart.objects.filter(profile=profile).defer("document").order_by("index", "id"):
finalize_profile
· App code
|
3 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_StorageTest class | 64 ms |
| _django_setup_unittest class | 0.20 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _django_db_marker function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_set_urlconf function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.01 ms |
Database
128 queries · 39 ms
Repeated queries are usually N+1 lookups: fetch them once with select_related / prefetch_related (or selectinload).
10×
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…
7×
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…
6×
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"."…
3×
SELECT MAX("projects_profile"."number") AS "last" FROM "projects_profile" WHERE "projects_profile"."project_id" = %s
3×
INSERT INTO "projects_profile" ("project_id", "number", "environment_id", "session_id", "run_id", "commit_id", "ingest_id", "external_id", "status", "error", "started_at", "duration", "exit_status", "backend", "rate", "samples", "workers", "flakytest_version", "python_version", "branch", "dirty", "…
Biggest pieces of work
|
setup setUpClass
django/test/testcases.py:1423
|
65 ms |
|
call test body
apps/projects/tests.py:1243
|
25 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
3 ms |
Reliability
15 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 15 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 93 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 120 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 72 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 116 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 71 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 117 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 93 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 119 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 78 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 125 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 120 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 119 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 139 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 100 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 130 ms | Profile |