Tests / apps/api/tests.py
ProfileUploadTest::test_minimal_document
First seen 1 month, 1 week ago in 78a4357
CI
github-actions:test
15 runs
Average
60 ms
median 64 ms
max 90 ms
max 90 ms
Phases
Setup 0.64 ms
Call 59 ms
Teardown 0.17 ms
Categories
Database 39 ms
App code 1 ms
Other (Libraries, Unsampled, pytest) 20 ms
49 database queries per run
Needs 184 KB of memory (max 812 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call50 ms98.6%
ProfileUploadTest.test_minimal_documentapps/api/tests.py:915 response = self.upload({"format": "flakytest-profile", "version": 1, "run": {"id": "x"}})50 ms98.6%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(39 ms77.2%
Client.postdjango/test/client.py:115339 ms77.2%
RequestFactory.postdjango/test/client.py:49939 ms77.2%
RequestFactory.genericdjango/test/client.py:67139 ms77.2%
Client.requestdjango/test/client.py:108239 ms77.2%
ClientHandler.__call__django/test/client.py:17320 ms38.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6220 ms38.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10420 ms38.6%
WhiteNoise.add_fileswhitenoise/base.py:10820 ms38.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12015 ms30.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13115 ms30.0%
WhiteNoise.get_static_filewhitenoise/base.py:20811 ms21.4%
StaticFile.__init__whitenoise/responders.py:724 ms8.6%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms4.3%
StaticFile.get_file_statswhitenoise/responders.py:1572 ms4.3%
StaticFile.__init__whitenoise/responders.py:734 ms8.6%
StaticFile.get_headerswhitenoise/responders.py:1764 ms8.6%
formatdate<stdlib>/email/utils.py:2662 ms4.3%
StaticFile.__init__whitenoise/responders.py:762 ms4.3%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms4.3%
WhiteNoise.get_static_filewhitenoise/base.py:2034 ms8.6%
WhiteNoise.add_cache_headerswhitenoise/base.py:2244 ms8.6%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1764 ms8.6%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms4.3%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms4.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms8.6%
scantreewhitenoise/base.py:2624 ms8.6%
scantreewhitenoise/base.py:2624 ms8.6%
scantreewhitenoise/base.py:2644 ms8.6%
ClientHandler.__call__django/test/client.py:18618 ms34.3%
BaseHandler.get_responsedjango/core/handlers/base.py:14118 ms34.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms34.3%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13018 ms34.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms34.3%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms34.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms34.3%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12318 ms34.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms34.3%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms34.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms34.3%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms34.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms34.3%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms34.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms34.3%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms34.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms34.3%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms34.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms34.3%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms34.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms34.3%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3418 ms34.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms34.3%
BaseHandler._get_responsedjango/core/handlers/base.py:19818 ms34.3%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:6518 ms34.3%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:3718 ms34.3%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:6418 ms34.3%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:75 return view_func(request, *args, **kwargs)11 ms21.4%
profile_uploadapps/api/urls.py:1507 ms12.9%
get_or_create_numberedapps/projects/models.py:18 existing = model.objects.filter(project=project, **lookup).first()2 ms4.3%
QuerySet.firstdjango/db/models/query.py:11452 ms4.3%
QuerySet.__iter__django/db/models/query.py:3902 ms4.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.3%
ModelIterable.__iter__django/db/models/query.py:952 ms4.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms4.3%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:9782 ms4.3%
get_or_create_numberedapps/projects/models.py:212 ms4.3%
next_numberapps/projects/models.py:35 return (model.objects.filter(project_id=project_id).aggregate(last=models.Max("number"))["last"] or 0) + 12 ms4.3%
QuerySet.aggregatedjango/db/models/query.py:5942 ms4.3%
Query.get_aggregationdjango/db/models/sql/query.py:6332 ms4.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.3%
Cursor.executepsycopg/cursor.py:1132 ms4.3%
Connection.waitpsycopg/connection.py:4952 ms4.3%
get_or_create_numberedapps/projects/models.py:24 return model.objects.create(project=project, number=number, **lookup, **(defaults or {})), True2 ms4.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms4.3%
QuerySet.createdjango/db/models/query.py:6692 ms4.3%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)2 ms4.3%
Model.savedjango/db/models/base.py:8742 ms4.3%
Model.save_basedjango/db/models/base.py:9662 ms4.3%
Model._save_tabledjango/db/models/base.py:11672 ms4.3%
Model._do_insertdjango/db/models/base.py:12182 ms4.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms4.3%
QuerySet._insertdjango/db/models/query.py:19182 ms4.3%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms4.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.3%
Cursor.executepsycopg/cursor.py:1132 ms4.3%
Connection.waitpsycopg/connection.py:4952 ms4.3%
profile_uploadapps/api/urls.py:152 part = ProfilePart.objects.filter(profile=profile, index=index).order_by("-id").first()2 ms4.3%
QuerySet.firstdjango/db/models/query.py:11452 ms4.3%
QuerySet.__iter__django/db/models/query.py:3902 ms4.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.3%
ModelIterable.__iter__django/db/models/query.py:952 ms4.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms4.3%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7952 ms4.3%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms4.3%
WhereNode.as_sqldjango/db/models/sql/where.py:1512 ms4.3%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms4.3%
profile_uploadapps/api/urls.py:162 process_profile.delay(part.id)2 ms4.3%
䡽綋䣐疍ṜJ蕈瓀䡷쎉譈�赈䟨䨞䠀삅杴譈⭈赈謼襈䧆욉ퟨ§褀䳁즅䩴උঀ빁⾨Œ女뿿䑶譈鬽ဎ䠀욉ᗿາ譈謽ဎ䠀�ᗿຢ襌䣰쒃嬠幁썝ㅅ䗯�උॖ빁⿈Œ듫쇿襁첵쳌쳌쳌쳌쳌쳌쳌䡕偓襈ㇷ䣛喍뻰)쀱⯨䑭蔀瓀䠼綋ㇰ㇛ᶆJ蕈瓀茪⼸좹刯묁⾨Œ�譈]ဍ䠀욉ᗿถ]皿䠊�荈ࣄ嵛ᅢ觀쳰쳌쳌䡕噁䡓 �襈ㇷ䣛喍뻨)쀱돨䑬蔀瓀䡎綋䣨疍ᴎJ蕈瓀䤺욉赈債䣿잉䨦묀⾨Œ삅ぴ譈紽ဍ䰀ᗿඔ]瞿(觀䣛�腈ꃄ�嬀幁썝薋ィ솉�女耀�멵䦨ꢸ刯묁⿈Œ�꣫쳌쳌䡕坁噁啁呁䡓�襉擶譈┄(�襈큅좉褆菋샡襁䇟䰿ⲍ䠑붉h襈觖咆gʼn䇞㞼�묀7�⥄菳㿣圏䣀붍p⤏灇⤏恇⤏假⤏䁇⤏ぇ⤏⁇⤏၇⤏뤇�襌䳮憎맨§䴀ⲍ䤯얁q왁e薀瓛䔔荁㿤襌䳶燨µ䄀ᒍ茟ূ셉Ϧ襍ᵴ섀۪赈債䣿붋h杓搀譈┄(�㭈큅ት腈飄�嬀屁嵁幁彁썝ᗨÂ찀쳌쳌䡕坁噁啁呁䡓䄘횉襈Ԩ혢ﻫ赌쁽ཁܩ䐆茿Ǹ�䄀풉셁ۤ⥅仦ⲍ䰦ノ痨杓䰀ノ襌䳦襄ﺔཁܨᄏ䠃쒃嬘屁嵁幁彁썝쳌쳌쳌쳌쳌쳌쳌䡕ދ젏ډ䞋༄览ц䞋༈览ࡆ䞋༌览ె䞋༐览၆썝쳌쳌䡕坁噁啁呁䡓�襉擶譈┄(�襈큅좉褆菋샡襁䇟䰿ⲍ䠑붉h襈觖ତfʼn䇞㞼�묀7�⥄菳㿣圏䣀붍p⤏灇⤏恇⤏假⤏䁇⤏ぇ⤏⁇⤏၇⤏뤇�襌䳮憎裡¥䴀ⲍ䤯얁q왁e薀瓛䔔荁㿤襌䳶뇨³䤀䤃츏赁ἔ슃䴉璉䠆떍p譈䢽આf䡤ҋ⠥�䠀䔻痐䠒쒁�䅛䅜䅝䅞嵟쁒�쳌䡕坁噁啁呁䡓䄘힉襈Ԩ观G赌쁵ཁة읁၆쏒䐆茿Ǹ�䄀풉셁ۤ⥅仧ⲍ䰦௨昊䰀襌䳦襄ﺌ譁༆览䄃䚋༄览у譁ࡆ젏䎉䄈䚋༌览ృ譁၆젏䎉䠐쒃嬘屁嵁幁彁썝쳌䡕坁噁啁呁䡓�襈䢍䧿ﺉ䡤ҋ⠥�䠀䖉䓐溍㇈䇛ﶃ྿쎒圏䳀붍pཁ䜩䅰⤏恇ཁ䜩䅐⤏䁇ཁ䜩䄰⤏⁇ཁ䜩䄐⤏䤇䤃츏襁맴�襌䣿횉襌ꑚ�왂▄p솀ۣ襌ᵴ䢈鶋h襌䣿�럨曱䇿ﶃ瞾䠌綍䢐�ꗨ曱擿譈┄(�㭈큅ት腈飄�嬀屁嵁幁彁썝쿨¾찀쳌쳌쳌쳌쳌쳌쳌䡕ދ例༄࿈诉ࡗ쨏譄ేཁ䓈例䄐줏譄ᑗཁ䓊律䄘쬏羋༜觏褆ю嚉䐈䚉䐌争䐐嚉䐔庉褘᱾썝䡕ދ例༄࿈诉ࡗ쨏譄ేཁ䓈例䄐줏譄ᑗཁ诊켏ډ争褄ࡖ襄ె襄၎襄ᑖ纉崘쳃쳌쳌쳌쳌쳌䡕坁噁啁呁䡓Ę�襌삅䣿趉ﻈ펉襉䧶ノ䡤ҋ⠥�䠀䖉䓐掍䖐腁翼䇿鈏䣅붍ﻐº냔�ཌྷﺤ䤃䤃츏ཉ觏맛Ā�赈킽䣿떋ﻈ襈ꋈ�蓆퀝胿譈삝䇿万뒉䀭仿벉䠭䣿붍ﻐ襈ァ腁综矿䠏붍p襈ァ䡤ҋ⠥�䠀䔻痐䠒쒁Ę�䅛䅜䅝䅞嵟봨�쳌쳌쳌쳌䡕譈䠇例䠈젏䣉型䠐쨏譌ᡇཉ䳈例䤠줏譌<unknown file>2 ms4.3%
_SharedTaskProxy.__getattr__potatoq/app.py:7602 ms4.3%
_SharedTaskProxy._resolvepotatoq/app.py:7572 ms4.3%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:73 touch_token(request.headers.get("Authorization"))4 ms8.6%
touch_tokenapps/api/urls.py:56 .filter(Q(date_last_used__lt=now - TOKEN_TOUCH_INTERVAL) | Q(date_last_used=None), token=token)2 ms4.3%
QuerySet.filterdjango/db/models/query.py:15422 ms4.3%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms4.3%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms4.3%
Query.add_qdjango/db/models/sql/query.py:16712 ms4.3%
Query._add_qdjango/db/models/sql/query.py:17032 ms4.3%
Query.build_filterdjango/db/models/sql/query.py:15282 ms4.3%
Query._add_qdjango/db/models/sql/query.py:17032 ms4.3%
Query.build_filterdjango/db/models/sql/query.py:16132 ms4.3%
touch_tokenapps/api/urls.py:59 SecretTokens.objects.filter(pk__in=list(stale)).update(date_last_used=now)2 ms4.3%
QuerySet.updatedjango/db/models/query.py:13002 ms4.3%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms4.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.3%
Cursor.executepsycopg/cursor.py:1132 ms4.3%
Connection.waitpsycopg/connection.py:4952 ms4.3%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:72 project = get_object_or_404(Project, secrettokens__token=request.headers.get("Authorization"))2 ms4.3%
get_object_or_404django/shortcuts.py:902 ms4.3%
QuerySet.getdjango/db/models/query.py:6352 ms4.3%
QuerySet.__len__django/db/models/query.py:3722 ms4.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.3%
ModelIterable.__iter__django/db/models/query.py:952 ms4.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.3%
Cursor.executepsycopg/cursor.py:1132 ms4.3%
Connection.waitpsycopg/connection.py:4952 ms4.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms4.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms4.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms4.3%
ClientHandler.__call__django/test/client.py:2072 ms4.3%
HttpResponseBase.closedjango/http/response.py:3412 ms4.3%
ProfileUploadTest.uploadapps/api/tests.py:49511 ms21.4%
_SharedTaskProxy.__call__potatoq/app.py:76311 ms21.4%
Task.__call__potatoq/task.py:18911 ms21.4%
process_profileapps/api/tasks.py:2394 ms8.6%
process_profile_partapps/projects/profiles.py:381 profile = claim_part(part, document)4 ms8.6%
claim_partapps/projects/profiles.py:415 project = profile.project2 ms4.3%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2572 ms4.3%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2222 ms4.3%
QuerySet.getdjango/db/models/query.py:6352 ms4.3%
QuerySet.__len__django/db/models/query.py:3722 ms4.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.3%
ModelIterable.__iter__django/db/models/query.py:952 ms4.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.3%
Cursor.executepsycopg/cursor.py:1132 ms4.3%
Connection.waitpsycopg/connection.py:4952 ms4.3%
claim_partapps/projects/profiles.py:4172 ms4.3%
get_or_create_environmentapps/projects/environments.py:63 obj, created = Environment.objects.get_or_create(2 ms4.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms4.3%
QuerySet.get_or_createdjango/db/models/query.py:9942 ms4.3%
QuerySet.createdjango/db/models/query.py:6692 ms4.3%
Model.savedjango/db/models/base.py:8742 ms4.3%
Model.save_basedjango/db/models/base.py:9662 ms4.3%
Model._save_tabledjango/db/models/base.py:11512 ms4.3%
process_profileapps/api/tasks.py:2534 ms8.6%
_SharedTaskProxy.__call__potatoq/app.py:7634 ms8.6%
Task.__call__potatoq/task.py:1894 ms8.6%
finalize_profile_partsapps/api/tasks.py:2594 ms8.6%
finalize_profileapps/projects/profiles.py:531 for duplicate in duplicates:2 ms4.3%
QuerySet.__iter__django/db/models/query.py:3902 ms4.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.3%
ValuesIterable.__iter__django/db/models/query.py:2222 ms4.3%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms4.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.3%
Cursor.executepsycopg/cursor.py:1132 ms4.3%
Connection.waitpsycopg/connection.py:4952 ms4.3%
finalize_profileapps/projects/profiles.py:5432 ms4.3%
Profile.saveapps/projects/models.py:466 super().save(*args, **kwargs)2 ms4.3%
Model.savedjango/db/models/base.py:8742 ms4.3%
Model.save_basedjango/db/models/base.py:9662 ms4.3%
Model._save_tabledjango/db/models/base.py:11102 ms4.3%
Model._do_updatedjango/db/models/base.py:12112 ms4.3%
QuerySet._updatedjango/db/models/query.py:13272 ms4.3%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms4.3%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms4.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.3%
Cursor.executepsycopg/cursor.py:1132 ms4.3%
Connection.waitpsycopg/connection.py:4952 ms4.3%
process_profileapps/api/tasks.py:237 part = ProfilePart.objects.select_related("profile").get(id=part_id)2 ms4.3%
QuerySet.getdjango/db/models/query.py:6352 ms4.3%
QuerySet.__len__django/db/models/query.py:3722 ms4.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.3%
ModelIterable.__iter__django/db/models/query.py:952 ms4.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.3%
Estimated from 23 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
|
22 ms |
|
apps/projects/models.py:466
super().save(*args, **kwargs)
Profile.save
· Database
|
4 ms |
|
apps/api/urls.py:72
project = get_object_or_404(Project, secrettokens__token=request.headers.get("Authorization"))
api_request.<locals>.decorator.<locals>.wrapped_view
· Database
|
2 ms |
|
apps/api/urls.py:56
.filter(Q(date_last_used__lt=now - TOKEN_TOUCH_INTERVAL) | Q(date_last_used=None), token=token)
touch_token
· 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/projects/models.py:35
return (model.objects.filter(project_id=project_id).aggregate(last=models.Max("number"))["last"] or 0) + 1
next_number
· Database
|
2 ms |
|
apps/api/urls.py:152
part = ProfilePart.objects.filter(profile=profile, index=index).order_by("-id").first()
profile_upload
· Database
|
2 ms |
|
apps/api/urls.py:162
process_profile.delay(part.id)
profile_upload
· Libraries
|
2 ms |
|
apps/api/tasks.py:237
part = ProfilePart.objects.select_related("profile").get(id=part_id)
process_profile
· Database
|
2 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_db_marker function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
49 queries · 12 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"."…
3×
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…
Biggest pieces of work
|
call test body
apps/api/tests.py:915
|
50 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 | 51 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 64 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 38 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 75 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 40 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 61 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 50 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 90 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 40 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 75 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 68 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 68 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 77 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 42 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 68 ms | Profile |