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

ProfileUploadTest::test_upload_gzip

First seen 1 month, 1 week ago in 78a4357
CI github-actions:test 15 runs
Average
71 ms
median 78 ms
max 99 ms
Phases
Setup 0.67 ms Call 70 ms Teardown 0.16 ms
Categories
Database 52 ms App code 2 ms Test code 0.12 ms Other (Libraries, Serialization, Unsampled, pytest) 17 ms

61 database queries per run

Needs 80 KB of memory (max 408 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call55 ms98.8%
ProfileUploadTest.test_upload_gzipapps/api/tests.py:578 response = self.upload(gzip.compress(json.dumps(self.document()).encode()), content_encoding="gzip")51 ms92.2%
ProfileUploadTest.uploadapps/api/tests.py:49531 ms56.0%
_SharedTaskProxy.__call__potatoq/app.py:76331 ms56.0%
Task.__call__potatoq/task.py:18931 ms56.0%
process_profileapps/api/tasks.py:23918 ms32.9%
process_profile_partapps/projects/profiles.py:381 profile = claim_part(part, document)9 ms16.5%
claim_partapps/projects/profiles.py:398 ProfilePart.objects.filter(pk=part.pk).update(status=ProfilePart.StatusTypes.PENDING)2 ms3.3%
QuerySet.updatedjango/db/models/query.py:13002 ms3.3%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms3.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.3%
Cursor.executepsycopg/cursor.py:1132 ms3.3%
Connection.waitpsycopg/connection.py:4952 ms3.3%
claim_partapps/projects/profiles.py:415 project = profile.project2 ms3.3%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2572 ms3.3%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2222 ms3.3%
QuerySet.getdjango/db/models/query.py:6352 ms3.3%
QuerySet.__len__django/db/models/query.py:3722 ms3.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.3%
ModelIterable.__iter__django/db/models/query.py:952 ms3.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.3%
Cursor.executepsycopg/cursor.py:1132 ms3.3%
Connection.waitpsycopg/connection.py:4952 ms3.3%
claim_partapps/projects/profiles.py:4172 ms3.3%
get_or_create_environmentapps/projects/environments.py:63 obj, created = Environment.objects.get_or_create(2 ms3.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.3%
QuerySet.get_or_createdjango/db/models/query.py:9922 ms3.3%
Atomic.__enter__django/db/transaction.py:2112 ms3.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms3.3%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms3.3%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms3.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.3%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms3.3%
Cursor.executepsycopg/cursor.py:1132 ms3.3%
Connection.waitpsycopg/connection.py:4952 ms3.3%
claim_partapps/projects/profiles.py:422 commit, _ = Commit.objects.get_or_create(2 ms3.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.3%
QuerySet.get_or_createdjango/db/models/query.py:9872 ms3.3%
QuerySet.getdjango/db/models/query.py:6352 ms3.3%
QuerySet.__len__django/db/models/query.py:3722 ms3.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.3%
ModelIterable.__iter__django/db/models/query.py:952 ms3.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms3.3%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms3.3%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms3.3%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms3.3%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms3.3%
claim_partapps/projects/profiles.py:4852 ms3.3%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)2 ms3.3%
Model.savedjango/db/models/base.py:8742 ms3.3%
Model.save_basedjango/db/models/base.py:9662 ms3.3%
Model._save_tabledjango/db/models/base.py:11102 ms3.3%
Model._do_updatedjango/db/models/base.py:12112 ms3.3%
QuerySet._updatedjango/db/models/query.py:13272 ms3.3%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms3.3%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms3.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.3%
Cursor.executepsycopg/cursor.py:1132 ms3.3%
Connection.waitpsycopg/connection.py:4952 ms3.3%
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 ms3.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.3%
QuerySet.filterdjango/db/models/query.py:15422 ms3.3%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms3.3%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms3.3%
Query.add_qdjango/db/models/sql/query.py:16712 ms3.3%
Query._add_qdjango/db/models/sql/query.py:17032 ms3.3%
Query.build_filterdjango/db/models/sql/query.py:15772 ms3.3%
process_profile_partapps/projects/profiles.py:3832 ms3.3%
upsert_testsapps/projects/profiles.py:4902 ms3.3%
TestManager.upsertapps/projects/models.py:236 return {test.name: test for test in self.filter(project=project, name__in=names)}2 ms3.3%
QuerySet.__iter__django/db/models/query.py:3902 ms3.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.3%
ModelIterable.__iter__django/db/models/query.py:952 ms3.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.3%
Cursor.executepsycopg/cursor.py:1132 ms3.3%
Connection.waitpsycopg/connection.py:4952 ms3.3%
process_profile_partapps/projects/profiles.py:384 write_perfs(profile, part, entries, tests)2 ms3.3%
write_perfsapps/projects/profiles.py:497 TestPerf.objects.bulk_create(2 ms3.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.3%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms3.3%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms3.3%
QuerySet._insertdjango/db/models/query.py:19182 ms3.3%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms3.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.3%
process_profile_partapps/projects/profiles.py:3852 ms3.3%
write_snapshotsapps/projects/profiles.py:352 cursor.executemany(SNAPSHOT_UPSERT, batch)2 ms3.3%
CursorWrapper.executemanydjango/db/backends/utils.py:842 ms3.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.3%
CursorWrapper._executemanydjango/db/backends/utils.py:1142 ms3.3%
Cursor.executemanypsycopg/cursor.py:1372 ms3.3%
Connection._pipeline_nolockpsycopg/connection.py:4722 ms3.3%
Pipeline.__exit__psycopg/_pipeline.py:732 ms3.3%
Connection.waitpsycopg/connection.py:4952 ms3.3%
process_profileapps/api/tasks.py:25311 ms19.8%
_SharedTaskProxy.__call__potatoq/app.py:76311 ms19.8%
Task.__call__potatoq/task.py:18911 ms19.8%
finalize_profile_partsapps/api/tasks.py:2599 ms16.5%
finalize_profileapps/projects/profiles.py:5354 ms6.6%
add_perfsapps/projects/rollups.py:582 ms3.3%
add_perfsapps/projects/rollups.py:88 TestDailyStats.objects.bulk_create(2 ms3.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.3%
QuerySet.bulk_createdjango/db/models/query.py:8332 ms3.3%
QuerySet._batched_insertdjango/db/models/query.py:19562 ms3.3%
QuerySet._insertdjango/db/models/query.py:19182 ms3.3%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19242 ms3.3%
SQLInsertCompiler.as_sqldjango/db/models/sql/compiler.py:18102 ms3.3%
finalize_profileapps/projects/profiles.py:527 ProfilePart.objects.filter(profile=profile).exclude(pk__in=[part.pk for part in current]).delete()2 ms3.3%
QuerySet.deletedjango/db/models/query.py:12372 ms3.3%
Collector.collectdjango/db/models/deletion.py:2792 ms3.3%
Collector.can_fast_deletedjango/db/models/deletion.py:2172 ms3.3%
finalize_profileapps/projects/profiles.py:530 duplicates = rows.values("test").annotate(count=Count("id"), keep=Max("id")).filter(count__gt=1)2 ms3.3%
QuerySet.annotatedjango/db/models/query.py:16992 ms3.3%
QuerySet._annotatedjango/db/models/query.py:17512 ms3.3%
Query.add_annotationdjango/db/models/sql/query.py:12422 ms3.3%
Aggregate.resolve_expressiondjango/db/models/aggregates.py:1222 ms3.3%
BaseExpression.resolve_expressiondjango/db/models/expressions.py:3012 ms3.3%
F.resolve_expressiondjango/db/models/expressions.py:9042 ms3.3%
Func.set_source_expressionsdjango/db/models/expressions.py:10912 ms3.3%
finalize_profileapps/projects/profiles.py:5432 ms3.3%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)2 ms3.3%
Model.savedjango/db/models/base.py:8742 ms3.3%
Model.save_basedjango/db/models/base.py:9662 ms3.3%
Model._save_tabledjango/db/models/base.py:11102 ms3.3%
Model._do_updatedjango/db/models/base.py:12112 ms3.3%
QuerySet._updatedjango/db/models/query.py:13272 ms3.3%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms3.3%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms3.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms3.3%
SQLUpdateCompiler.as_sqldjango/db/models/sql/compiler.py:20882 ms3.3%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms3.3%
finalize_profile_partsapps/api/tasks.py:2602 ms3.3%
QuerySet.getdjango/db/models/query.py:6352 ms3.3%
QuerySet.__len__django/db/models/query.py:3722 ms3.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.3%
FlatValuesListIterable.__iter__django/db/models/query.py:2772 ms3.3%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms3.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.3%
Cursor.executepsycopg/cursor.py:1132 ms3.3%
Connection.waitpsycopg/connection.py:4952 ms3.3%
process_profileapps/api/tasks.py:237 part = ProfilePart.objects.select_related("profile").get(id=part_id)2 ms3.3%
QuerySet.getdjango/db/models/query.py:6352 ms3.3%
QuerySet.__len__django/db/models/query.py:3722 ms3.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.3%
ModelIterable.__iter__django/db/models/query.py:952 ms3.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16622 ms3.3%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(20 ms36.2%
Client.postdjango/test/client.py:115320 ms36.2%
RequestFactory.postdjango/test/client.py:49920 ms36.2%
RequestFactory.genericdjango/test/client.py:67120 ms36.2%
Client.requestdjango/test/client.py:108220 ms36.2%
ClientHandler.__call__django/test/client.py:17313 ms23.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6213 ms23.1%
__init____init__:-113 ms23.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10413 ms23.1%
WhiteNoise.add_fileswhitenoise/base.py:10813 ms23.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12011 ms19.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13111 ms19.8%
WhiteNoise.get_static_filewhitenoise/base.py:20811 ms19.8%
StaticFile.__init__whitenoise/responders.py:776 ms9.9%
StaticFile.get_alternativeswhitenoise/responders.py:2006 ms9.9%
__init____init__:-12 ms3.3%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:502 ms3.3%
StaticFile.__init__whitenoise/responders.py:734 ms6.6%
StaticFile.get_headerswhitenoise/responders.py:1764 ms6.6%
formatdate<stdlib>/email/utils.py:2664 ms6.6%
StaticFile.__init__whitenoise/responders.py:762 ms3.3%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms3.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms3.3%
ClientHandler.__call__django/test/client.py:1867 ms13.2%
BaseHandler.get_responsedjango/core/handlers/base.py:1417 ms13.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms13.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1307 ms13.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms13.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms13.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms13.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1237 ms13.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms13.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms13.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms13.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms13.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms13.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms13.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms13.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms13.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms13.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms13.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms13.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms13.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms13.2%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:347 ms13.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms13.2%
BaseHandler._get_responsedjango/core/handlers/base.py:1987 ms13.2%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:657 ms13.2%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:377 ms13.2%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:647 ms13.2%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:73 touch_token(request.headers.get("Authorization"))4 ms6.6%
Atomic.__enter__django/db/transaction.py:2112 ms3.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms3.3%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms3.3%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms3.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.3%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms3.3%
Cursor.executepsycopg/cursor.py:1132 ms3.3%
Connection.waitpsycopg/connection.py:4952 ms3.3%
touch_tokenapps/api/urls.py:59 SecretTokens.objects.filter(pk__in=list(stale)).update(date_last_used=now)2 ms3.3%
QuerySet.updatedjango/db/models/query.py:13002 ms3.3%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms3.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.3%
Cursor.executepsycopg/cursor.py:1132 ms3.3%
Connection.waitpsycopg/connection.py:4952 ms3.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2052 ms3.3%
BaseCursor._convert_querypsycopg/_cursor_base.py:4652 ms3.3%
PostgresClientQuery.convertpsycopg/_queries.py:2892 ms3.3%
PostgresClientQuery.dumppsycopg/_queries.py:2992 ms3.3%
PostgresClientQuery.dump.<locals>.<genexpr>psycopg/_queries.py:3002 ms3.3%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:75 return view_func(request, *args, **kwargs)4 ms6.6%
profile_uploadapps/api/urls.py:1502 ms3.3%
get_or_create_numberedapps/projects/models.py:18 existing = model.objects.filter(project=project, **lookup).first()2 ms3.3%
QuerySet.firstdjango/db/models/query.py:11452 ms3.3%
QuerySet.__iter__django/db/models/query.py:3902 ms3.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.3%
ModelIterable.__iter__django/db/models/query.py:952 ms3.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms3.3%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms3.3%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms3.3%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms3.3%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:2552 ms3.3%
SQLCompiler.get_default_columnsdjango/db/models/sql/compiler.py:10302 ms3.3%
profile_uploadapps/api/urls.py:162 process_profile.delay(part.id)2 ms3.3%
ProfileUploadTest.test_upload_gzipapps/api/tests.py:5802 ms3.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.3%
QuerySet.getdjango/db/models/query.py:6352 ms3.3%
QuerySet.__len__django/db/models/query.py:3722 ms3.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.3%
ModelIterable.__iter__django/db/models/query.py:952 ms3.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.3%
Cursor.executepsycopg/cursor.py:1132 ms3.3%
Connection.waitpsycopg/connection.py:4952 ms3.3%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms3.3%
TestCase._fixture_teardowndjango/test/testcases.py:14942 ms3.3%
TestCase._should_check_constraintsdjango/test/testcases.py:15032 ms3.3%
Estimated from 30 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/api/tests.py:487
response = self.client.post(
ProfileUploadTest.upload · Libraries
13 ms
apps/projects/models.py:466
super().save(*args, **kwargs)
Profile.save · Database
4 ms
apps/api/urls.py:73
touch_token(request.headers.get("Authorization"))
api_request.<locals>.decorator.<locals>.wrapped_view · Database
2 ms
apps/api/urls.py:59
SecretTokens.objects.filter(pk__in=list(stale)).update(date_last_used=now)
touch_token · Database
2 ms
apps/projects/models.py:18
existing = model.objects.filter(project=project, **lookup).first()
get_or_create_numbered · Database
2 ms
apps/api/urls.py:162
process_profile.delay(part.id)
profile_upload · App code
2 ms
apps/api/tasks.py:237
part = ProfilePart.objects.select_related("profile").get(id=part_id)
process_profile · Database
2 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
2 ms
apps/projects/profiles.py:398
ProfilePart.objects.filter(pk=part.pk).update(status=ProfilePart.StatusTypes.PENDING)
claim_part · Database
2 ms
apps/projects/profiles.py:415
project = profile.project
claim_part · Database
2 ms

Fixtures

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

Database

61 queries · 15 ms

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

4×
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…
4×
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"."…

Biggest pieces of work

call test body
apps/api/tests.py:578
53 ms
call _post_teardown
django/test/testcases.py:1240
2 ms

Reliability

15 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 15 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 56 ms cb18ed3 main Profile
2 weeks, 4 days ago CI github-actions:test passed 97 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 43 ms 19dac9b main Profile
3 weeks ago CI github-actions:test passed 75 ms e141198 main Profile
1 month ago CI github-actions:test passed 44 ms 46ec2aa main Profile
1 month ago CI github-actions:test passed 85 ms afde85b main Profile
1 month ago CI github-actions:test passed 61 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 99 ms 044719a main Profile
1 month ago CI github-actions:test passed 49 ms b3fedae main Profile
1 month, 1 week ago CI github-actions:test passed 85 ms 43c4eda main Profile
1 month, 1 week ago CI github-actions:test passed 83 ms 9caa567 main Profile
1 month, 1 week ago CI github-actions:test passed 82 ms ec75501 main Profile
1 month, 1 week ago CI github-actions:test passed 86 ms d2c12e5 main Profile
1 month, 1 week ago CI github-actions:test passed 45 ms 0b902f6 main Profile
1 month, 1 week ago CI github-actions:test passed 78 ms 78a4357 main Profile