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

IngestStartEndpointTest::test_ingest_start_progress_end

First seen 2 years, 9 months ago in 9ff0a7e
CI github-actions:test 5 runs
Average
295 ms
median 297 ms
max 354 ms
Phases
Setup 0.92 ms Call 294 ms Teardown 0.29 ms
Categories
Database 147 ms App code 1 ms Factories 0.26 ms Other (DB schema, Libraries, Imports, pytest, ...) 147 ms

133 database queries per run

Needs 220 KB of memory (max 464 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 13 minutes ago · open run
Show pytest frames
setup0.90 ms0.3%
call295 ms99.6%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()115 ms39.0%
TransactionTestCase._fixture_teardowndjango/test/testcases.py:1275115 ms39.0%
call_commanddjango/core/management/__init__.py:195114 ms38.5%
BaseCommand.executedjango/core/management/base.py:460114 ms38.5%
Command.handledjango/core/management/commands/flush.py:7464 ms21.7%
BaseDatabaseOperations.execute_sql_flushdjango/db/backends/base/operations.py:46851 ms17.3%
CursorWrapper.executedjango/db/backends/utils.py:7951 ms17.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9251 ms17.3%
CursorWrapper._executedjango/db/backends/utils.py:10350 ms16.9%
Cursor.executepsycopg/cursor.py:11350 ms16.9%
Connection.waitpsycopg/connection.py:49550 ms16.9%
BaseDatabaseOperations.execute_sql_flushdjango/db/backends/base/operations.py:46213 ms4.3%
Atomic.__exit__django/db/transaction.py:26313 ms4.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2613 ms4.3%
BaseDatabaseWrapper.commitdjango/db/backends/base/base.py:32713 ms4.3%
BaseDatabaseWrapper._commitdjango/db/backends/base/base.py:30313 ms4.3%
Connection.commitpsycopg/connection.py:30913 ms4.3%
Connection.waitpsycopg/connection.py:49513 ms4.3%
Command.handledjango/core/management/commands/flush.py:9246 ms15.6%
emit_post_migrate_signaldjango/core/management/sql.py:5246 ms15.6%
Signal.senddjango/dispatch/dispatcher.py:20946 ms15.6%
create_permissionsdjango/contrib/auth/management/__init__.py:10717 ms5.6%
QuerySet.bulk_createdjango/db/models/query.py:83314 ms4.8%
QuerySet._batched_insertdjango/db/models/query.py:195613 ms4.3%
QuerySet._insertdjango/db/models/query.py:191812 ms3.9%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:192510 ms3.5%
CursorWrapper.executedjango/db/backends/utils.py:7910 ms3.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9210 ms3.5%
CursorWrapper._executedjango/db/backends/utils.py:10510 ms3.5%
Cursor.executepsycopg/cursor.py:11310 ms3.5%
Connection.waitpsycopg/connection.py:49510 ms3.5%
1 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
create_permissionsdjango/contrib/auth/management/__init__.py:6113 ms4.3%
create_contenttypesdjango/contrib/contenttypes/management/__init__.py:1328 ms2.6%
QuerySet.bulk_createdjango/db/models/query.py:8338 ms2.6%
QuerySet._batched_insertdjango/db/models/query.py:19568 ms2.6%
QuerySet._insertdjango/db/models/query.py:19188 ms2.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19258 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:798 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:928 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1056 ms2.2%
Cursor.executepsycopg/cursor.py:1136 ms2.2%
Connection.waitpsycopg/connection.py:4956 ms2.2%
create_contenttypesdjango/contrib/contenttypes/management/__init__.py:1225 ms1.7%
QuerySet.__iter__django/db/models/query.py:3905 ms1.7%
QuerySet._fetch_alldjango/db/models/query.py:20005 ms1.7%
FlatValuesListIterable.__iter__django/db/models/query.py:2775 ms1.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15735 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16244 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:794 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms1.3%
Cursor.executepsycopg/cursor.py:1134 ms1.3%
Connection.waitpsycopg/connection.py:4954 ms1.3%
1 smaller frames hidden
create_contenttypesdjango/contrib/contenttypes/management/__init__.py:1226 ms2.2%
QuerySet.__iter__django/db/models/query.py:3906 ms2.2%
QuerySet._fetch_alldjango/db/models/query.py:20006 ms2.2%
FlatValuesListIterable.__iter__django/db/models/query.py:2776 ms2.2%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15736 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16246 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:796 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:926 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1056 ms2.2%
Cursor.executepsycopg/cursor.py:1136 ms2.2%
Connection.waitpsycopg/connection.py:4956 ms2.2%
create_permissionsdjango/contrib/auth/management/__init__.py:876 ms2.2%
QuerySet.__iter__django/db/models/query.py:3906 ms2.2%
QuerySet._fetch_alldjango/db/models/query.py:20006 ms2.2%
ValuesListIterable.__iter__django/db/models/query.py:2386 ms2.2%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15735 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16245 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:795 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms1.7%
Cursor.executepsycopg/cursor.py:1135 ms1.7%
Connection.waitpsycopg/connection.py:4955 ms1.7%
1 smaller frames hidden
create_permissionsdjango/contrib/auth/management/__init__.py:804 ms1.3%
ContentTypeManager.get_for_modelsdjango/contrib/contenttypes/models.py:913 ms0.9%
QuerySet.__iter__django/db/models/query.py:3903 ms0.9%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms0.9%
ModelIterable.__iter__django/db/models/query.py:953 ms0.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms0.9%
CursorWrapper.executedjango/db/backends/utils.py:793 ms0.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms0.9%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms0.9%
Cursor.executepsycopg/cursor.py:1133 ms0.9%
Connection.waitpsycopg/connection.py:4953 ms0.9%
1 smaller frames hidden
Command.handledjango/core/management/commands/flush.py:524 ms1.3%
sql_flushdjango/core/management/sql.py:114 ms1.3%
BaseDatabaseIntrospection.django_table_namesdjango/db/backends/base/introspection.py:1134 ms1.3%
BaseDatabaseIntrospection.table_namesdjango/db/backends/base/introspection.py:604 ms1.3%
BaseDatabaseIntrospection.table_names.<locals>.get_namesdjango/db/backends/base/introspection.py:544 ms1.3%
DatabaseIntrospection.get_table_listdjango/db/backends/postgresql/introspection.py:584 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:794 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1034 ms1.3%
Cursor.executepsycopg/cursor.py:1134 ms1.3%
Connection.waitpsycopg/connection.py:4954 ms1.3%
1 smaller frames hidden
IngestStartEndpointTest.test_ingest_start_progress_endapps/api/tests.py:210 self.join_workers()69 ms23.4%
IngestStartEndpointTest.join_workersapps/api/tests.py:76 drain(current_app(), raise_on_failure=True)69 ms23.4%
drainpotatoq/testing.py:7369 ms23.4%
executepotatoq/worker/executor.py:28869 ms23.4%
_executepotatoq/worker/executor.py:36869 ms23.4%
Task.__call__potatoq/task.py:19269 ms23.4%
Atomic.__enter__django/db/transaction.py:19823 ms7.8%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45423 ms7.8%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30323 ms7.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2623 ms7.8%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27923 ms7.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2623 ms7.8%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25622 ms7.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2622 ms7.4%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:33322 ms7.4%
Connection.connectpsycopg/connection.py:10922 ms7.4%
wait_connpsycopg/waiting.py:14512 ms3.9%
BaseConnection._connect_genpsycopg/_connection_base.py:43912 ms3.9%
wait_connpsycopg/waiting.py:14110 ms3.5%
EpollSelector.select<stdlib>/selectors.py:45210 ms3.5%
1 smaller frames hidden
warm_reportsapps/api/tasks.py:266 flaky_report(Project.objects.get(pk=project_id), DEFAULT_DAYS)22 ms7.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:8712 ms3.9%
QuerySet.getdjango/db/models/query.py:63512 ms3.9%
QuerySet.__len__django/db/models/query.py:37212 ms3.9%
QuerySet._fetch_alldjango/db/models/query.py:200012 ms3.9%
ModelIterable.__iter__django/db/models/query.py:9512 ms3.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162210 ms3.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms3.5%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:32010 ms3.5%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:29610 ms3.5%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30310 ms3.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms3.5%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27910 ms3.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms3.5%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2569 ms3.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms3.0%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3339 ms3.0%
Connection.connectpsycopg/connection.py:1099 ms3.0%
wait_connpsycopg/waiting.py:1414 ms1.3%
EpollSelector.select<stdlib>/selectors.py:4524 ms1.3%
wait_connpsycopg/waiting.py:1454 ms1.3%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms1.3%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
flaky_reportapps/projects/flakiness.py:2538 ms2.6%
compute_flaky_reportapps/projects/flakiness.py:2685 ms1.7%
failing_test_idsapps/projects/flakiness.py:202 ids = set(3 ms0.9%
QuerySet.__iter__django/db/models/query.py:3903 ms0.9%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms0.9%
FlatValuesListIterable.__iter__django/db/models/query.py:2773 ms0.9%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15733 ms0.9%
failing_test_idsapps/projects/flakiness.py:212 ids |= set(3 ms0.9%
QuerySet.__iter__django/db/models/query.py:3903 ms0.9%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms0.9%
FlatValuesListIterable.__iter__django/db/models/query.py:2773 ms0.9%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15733 ms0.9%
compute_flaky_reportapps/projects/flakiness.py:2723 ms0.9%
flaky_reportapps/projects/flakiness.py:2503 ms0.9%
data_versionapps/projects/flakiness.py:229 profile = Profile.objects.filter(project=project).aggregate(latest=Max("date_processed"))["latest"]3 ms0.9%
process_ingest_progressapps/api/tasks.py:1215 ms1.7%
TestManager.upsertapps/projects/models.py:2293 ms0.9%
2 smaller frames hidden
Atomic.__exit__django/db/transaction.py:2633 ms0.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms0.9%
BaseDatabaseWrapper.commitdjango/db/backends/base/base.py:3273 ms0.9%
BaseDatabaseWrapper._commitdjango/db/backends/base/base.py:3033 ms0.9%
Connection.commitpsycopg/connection.py:3093 ms0.9%
Connection.waitpsycopg/connection.py:4953 ms0.9%
process_ingest_progressapps/api/tasks.py:118 session = Session.objects.get(project=ingest.project, ingest_id=parent_ingest_id)3 ms0.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms0.9%
process_ingest_endapps/api/tasks.py:210 session = Session.objects.get(project=ingest.project, ingest_id=parent_ingest_id)3 ms0.9%
9 smaller frames hidden
IngestStartEndpointTest.test_ingest_start_progress_endapps/api/tests.py:19140 ms13.4%
IngestStartEndpointTest.ingest_startapps/api/tests.py:98 return self.client.post(40 ms13.4%
Client.postdjango/test/client.py:115340 ms13.4%
RequestFactory.postdjango/test/client.py:49940 ms13.4%
RequestFactory.genericdjango/test/client.py:67140 ms13.4%
Client.requestdjango/test/client.py:108238 ms13.0%
ClientHandler.__call__django/test/client.py:18621 ms6.9%
BaseHandler.get_responsedjango/core/handlers/base.py:14121 ms6.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5521 ms6.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13021 ms6.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5521 ms6.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30921 ms6.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5521 ms6.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12321 ms6.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5521 ms6.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30921 ms6.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5521 ms6.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30921 ms6.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5521 ms6.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30921 ms6.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5521 ms6.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30921 ms6.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5521 ms6.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30921 ms6.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5521 ms6.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30921 ms6.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5521 ms6.9%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3421 ms6.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5521 ms6.9%
BaseHandler._get_responsedjango/core/handlers/base.py:19821 ms6.9%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:6521 ms6.9%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:3721 ms6.9%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:6421 ms6.9%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:7515 ms5.2%
ingest_startapps/api/urls.py:100 process_ingest_start(ingest.id)10 ms3.5%
_SharedTaskProxy.__call__potatoq/app.py:76310 ms3.5%
Task.__call__potatoq/task.py:18910 ms3.5%
process_ingest_startapps/api/tasks.py:79 ingest.project,3 ms0.9%
process_ingest_startapps/api/tasks.py:773 ms0.9%
process_ingest_startapps/api/tasks.py:843 ms0.9%
get_or_create_environmentapps/projects/environments.py:63 obj, created = Environment.objects.get_or_create(3 ms0.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms0.9%
2 smaller frames hidden
ingest_startapps/api/urls.py:95 "muted_tests": [{"name": test.name} for test in muted_tests],3 ms0.9%
QuerySet.__iter__django/db/models/query.py:3903 ms0.9%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms0.9%
ModelIterable.__iter__django/db/models/query.py:953 ms0.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms0.9%
CursorWrapper.executedjango/db/backends/utils.py:793 ms0.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms0.9%
2 smaller frames hidden
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:73 touch_token(request.headers.get("Authorization"))4 ms1.3%
1 smaller frames hidden
ClientHandler.__call__django/test/client.py:17318 ms6.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6218 ms6.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10418 ms6.1%
WhiteNoise.add_fileswhitenoise/base.py:10818 ms6.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12014 ms4.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13114 ms4.8%
WhiteNoise.get_static_filewhitenoise/base.py:2088 ms2.6%
StaticFile.__init__whitenoise/responders.py:773 ms0.9%
StaticFile.__init__whitenoise/responders.py:763 ms0.9%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1893 ms0.9%
Headers.__getitem__<stdlib>/wsgiref/headers.py:833 ms0.9%
StaticFile.__init__whitenoise/responders.py:733 ms0.9%
StaticFile.get_headerswhitenoise/responders.py:1763 ms0.9%
WhiteNoise.get_static_filewhitenoise/base.py:2035 ms1.7%
WhiteNoise.add_cache_headerswhitenoise/base.py:2245 ms1.7%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1765 ms1.7%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1975 ms1.7%
URLMixin.urldebug_toolbar/panels/staticfiles.py:205 ms1.7%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2054 ms1.3%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1863 ms0.9%
1 smaller frames hidden
1 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms1.3%
scantreewhitenoise/base.py:2624 ms1.3%
scantreewhitenoise/base.py:2624 ms1.3%
scantreewhitenoise/base.py:2643 ms0.9%
1 smaller frames hidden
1 smaller frames hidden
IngestStartEndpointTest.test_ingest_start_progress_endapps/api/tests.py:20526 ms8.7%
IngestStartEndpointTest.join_workersapps/api/tests.py:76 drain(current_app(), raise_on_failure=True)26 ms8.7%
drainpotatoq/testing.py:7324 ms8.2%
executepotatoq/worker/executor.py:28824 ms8.2%
_executepotatoq/worker/executor.py:36823 ms7.8%
Task.__call__potatoq/task.py:19223 ms7.8%
Atomic.__enter__django/db/transaction.py:19812 ms3.9%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45412 ms3.9%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30312 ms3.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2612 ms3.9%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27912 ms3.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2612 ms3.9%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25610 ms3.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms3.5%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:33310 ms3.5%
Connection.connectpsycopg/connection.py:10910 ms3.5%
wait_connpsycopg/waiting.py:1416 ms2.2%
EpollSelector.select<stdlib>/selectors.py:4526 ms2.2%
wait_connpsycopg/waiting.py:1454 ms1.3%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms1.3%
1 smaller frames hidden
process_ingest_progressapps/api/tasks.py:1214 ms1.3%
TestManager.upsertapps/projects/models.py:2293 ms0.9%
1 smaller frames hidden
process_ingest_progressapps/api/tasks.py:118 session = Session.objects.get(project=ingest.project, ingest_id=parent_ingest_id)3 ms0.9%
process_ingest_progressapps/api/tasks.py:1853 ms0.9%
2 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
IngestStartEndpointTest.setUpapps/api/tests.py:73 self.project = baker.make("projects.Project", secrettokens_set__token=self.secret_token)15 ms5.2%
makemodel_bakery/baker.py:14715 ms5.2%
Baker.makemodel_bakery/baker.py:40615 ms5.2%
Baker._makemodel_bakery/baker.py:47113 ms4.3%
Baker.generate_valuemodel_bakery/baker.py:80013 ms4.3%
gen_relatedmodel_bakery/random_gen.py:27412 ms3.9%
makemodel_bakery/baker.py:14712 ms3.9%
Baker.makemodel_bakery/baker.py:40612 ms3.9%
Baker._makemodel_bakery/baker.py:48212 ms3.9%
Baker.instancemodel_bakery/baker.py:53512 ms3.9%
Model.savedjango/db/models/base.py:87412 ms3.9%
Model.save_basedjango/db/models/base.py:96612 ms3.9%
Model._save_tabledjango/db/models/base.py:116712 ms3.9%
Model._do_insertdjango/db/models/base.py:121812 ms3.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:8712 ms3.9%
QuerySet._insertdjango/db/models/query.py:191812 ms3.9%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:192310 ms3.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms3.5%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:32010 ms3.5%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:29610 ms3.5%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30310 ms3.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms3.5%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27910 ms3.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms3.5%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2569 ms3.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms3.0%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3339 ms3.0%
Connection.connectpsycopg/connection.py:1099 ms3.0%
wait_connpsycopg/waiting.py:1415 ms1.7%
EpollSelector.select<stdlib>/selectors.py:4525 ms1.7%
wait_connpsycopg/waiting.py:1454 ms1.3%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms1.3%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
IngestStartEndpointTest.test_ingest_start_progress_endapps/api/tests.py:20715 ms5.2%
IngestStartEndpointTest.ingest_endapps/api/tests.py:11415 ms5.2%
Client.postdjango/test/client.py:115315 ms5.2%
RequestFactory.postdjango/test/client.py:49915 ms5.2%
RequestFactory.genericdjango/test/client.py:67115 ms5.2%
Client.requestdjango/test/client.py:108215 ms5.2%
ClientHandler.__call__django/test/client.py:18615 ms5.2%
BaseHandler.get_responsedjango/core/handlers/base.py:14115 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms5.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13015 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms5.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12315 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms5.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms5.2%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3415 ms5.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms5.2%
BaseHandler._get_responsedjango/core/handlers/base.py:19815 ms5.2%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:6515 ms5.2%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:3715 ms5.2%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:6415 ms5.2%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:72 project = get_object_or_404(Project, secrettokens__token=request.headers.get("Authorization"))14 ms4.8%
get_object_or_404django/shortcuts.py:9014 ms4.8%
QuerySet.getdjango/db/models/query.py:63513 ms4.3%
QuerySet.__len__django/db/models/query.py:37213 ms4.3%
QuerySet._fetch_alldjango/db/models/query.py:200013 ms4.3%
ModelIterable.__iter__django/db/models/query.py:9513 ms4.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162210 ms3.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms3.5%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:32010 ms3.5%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:29610 ms3.5%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30310 ms3.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms3.5%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27910 ms3.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms3.5%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2569 ms3.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms3.0%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3339 ms3.0%
Connection.connectpsycopg/connection.py:1099 ms3.0%
wait_connpsycopg/waiting.py:1414 ms1.3%
EpollSelector.select<stdlib>/selectors.py:4524 ms1.3%
wait_connpsycopg/waiting.py:1454 ms1.3%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms1.3%
1 smaller frames hidden
1 smaller frames hidden
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms0.9%
CursorWrapper.executedjango/db/backends/utils.py:793 ms0.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms0.9%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms0.9%
Cursor.executepsycopg/cursor.py:1133 ms0.9%
Connection.waitpsycopg/connection.py:4953 ms0.9%
1 smaller frames hidden
1 smaller frames hidden
IngestStartEndpointTest.test_ingest_start_progress_endapps/api/tests.py:212 run = Run.objects.filter(project=self.project).get()12 ms3.9%
QuerySet.getdjango/db/models/query.py:63512 ms3.9%
QuerySet.__len__django/db/models/query.py:37212 ms3.9%
QuerySet._fetch_alldjango/db/models/query.py:200012 ms3.9%
ModelIterable.__iter__django/db/models/query.py:9512 ms3.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162210 ms3.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms3.5%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:32010 ms3.5%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:29610 ms3.5%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30310 ms3.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms3.5%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27910 ms3.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms3.5%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25610 ms3.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms3.5%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:33310 ms3.5%
Connection.connectpsycopg/connection.py:10910 ms3.5%
wait_connpsycopg/waiting.py:1416 ms2.2%
EpollSelector.select<stdlib>/selectors.py:4526 ms2.2%
wait_connpsycopg/waiting.py:1454 ms1.3%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms1.3%
1 smaller frames hidden
2 smaller frames hidden
Estimated from 231 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/api/tests.py:76
drain(current_app(), raise_on_failure=True)
IngestStartEndpointTest.join_workers · Database
42 ms
apps/api/tests.py:98
return self.client.post(
IngestStartEndpointTest.ingest_start · Libraries
19 ms
apps/api/tests.py:73
self.project = baker.make("projects.Project", secrettokens_set__token=self.secret_token)
IngestStartEndpointTest.setUp · Database
15 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
15 ms
apps/api/tests.py:212
run = Run.objects.filter(project=self.project).get()
IngestStartEndpointTest.test_ingest_start_progress_end · Database
12 ms
apps/api/tasks.py:266
flaky_report(Project.objects.get(pk=project_id), DEFAULT_DAYS)
warm_reports · Database
12 ms
apps/api/tasks.py:118
session = Session.objects.get(project=ingest.project, ingest_id=parent_ingest_id)
process_ingest_progress · Database
5 ms
apps/api/urls.py:59
SecretTokens.objects.filter(pk__in=list(stale)).update(date_last_used=now)
touch_token · Database
3 ms
apps/api/urls.py:95
"muted_tests": [{"name": test.name} for test in muted_tests],
ingest_start · Database
3 ms
apps/api/tasks.py:79
ingest.project,
process_ingest_start · Database
3 ms

Fixtures

Exact setup time
_django_db_marker function 0.06 ms
_template_string_if_invalid_marker function 0.06 ms
_dj_autoclear_mailbox function 0.06 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.03 ms

Database

133 queries · 119 ms

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

20×
SELECT "django_content_type"."model" AS "model" FROM "django_content_type" WHERE "django_content_type"."app_label" = %s
10×
SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type" WHERE ("django_content_type"."app_label" = %s AND "django_content_type"."model" IN (…))
10×
SELECT "auth_permission"."content_type_id" AS "content_type", "auth_permission"."codename" AS "codename" FROM "auth_permission" INNER JOIN "django_content_type" ON ("auth_permission"."content_type_id" = "django_content_type"."id") WHERE "auth_permission"."content_type_id" IN (…) ORDER BY "django_co…
10×
INSERT INTO "auth_permission" ("name", "content_type_id", "codename") SELECT * FROM UNNEST((%s)::varchar(?)[], (%s)::integer[], (%s)::varchar(?)[]) RETURNING "auth_permission"."id"
8×
SELECT "projects_project"."id", "projects_project"."organization_id", "projects_project"."name", "projects_project"."slug", "projects_project"."public", "projects_project"."description", "projects_project"."date_created", "projects_project"."date_updated", "projects_project"."created_by_id" FROM "p…

Biggest pieces of work

call test body
apps/api/tests.py:210
164 ms
call _post_teardown
django/test/testcases.py:1240
115 ms
call setUp
apps/api/tests.py:73
15 ms
setup pytest internals 0.90 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 50 results, oldest first in the strip
When Environment Outcome Duration Commit
13 minutes ago CI github-actions:test passed 296 ms 9caa567 main Profile
39 minutes ago CI github-actions:test passed 323 ms ec75501 main Profile
7 hours ago CI github-actions:test passed 354 ms d2c12e5 main Profile
7 hours ago CI github-actions:test passed 205 ms 0b902f6 main Profile
7 hours ago CI github-actions:test passed 297 ms 78a4357 main Profile
2 years ago CI github-actions passed 472 ms 61209a6 main Run
2 years, 2 months ago CI github-actions passed 585 ms 55ca4c2 main Run
2 years, 3 months ago CI github-actions passed 622 ms d007c85 main Run
2 years, 4 months ago CI github-actions passed 618 ms 3d86013 main Run
2 years, 4 months ago CI github-actions passed 578 ms bed0acb main Run
2 years, 4 months ago CI github-actions passed 719 ms 78c1737 main Run
2 years, 4 months ago CI github-actions passed 547 ms 1a5664b main Run
2 years, 5 months ago CI github-actions passed 545 ms c3680ac main Run
2 years, 5 months ago CI github-actions passed 533 ms 06a1df4 main Run
2 years, 5 months ago CI github-actions passed 594 ms a29c34e main Run
2 years, 5 months ago CI github-actions passed 584 ms e55e63f main Run
2 years, 5 months ago CI github-actions passed 644 ms ba5cb67 main Run
2 years, 6 months ago CI github-actions passed 590 ms 7c123d8 main Run
2 years, 6 months ago CI github-actions passed 639 ms 5ae45e1 main Run
2 years, 6 months ago CI github-actions passed 613 ms 1680367 main Run