Tests / apps/api/tests.py
ProfileUploadTest::test_reject_missing_run
First seen 7 hours ago in 78a4357
CI
github-actions:test
5 runs
Average
37 ms
median 38 ms
max 41 ms
max 41 ms
Phases
Setup 0.75 ms
Call 36 ms
Teardown 0.15 ms
Categories
Database 5 ms
Other (Libraries, Unsampled, pytest) 31 ms
10 database queries per run
Needs 306 KB of memory (max 804 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 17 minutes ago ·
open run
call40 ms97.5%
ProfileUploadTest.test_reject_missing_runapps/api/tests.py:596 response = self.upload({"format": "flakytest-profile"})31 ms74.5%
ProfileUploadTest.uploadapps/api/tests.py:487 response = self.client.post(31 ms74.5%
Client.postdjango/test/client.py:115331 ms74.5%
RequestFactory.postdjango/test/client.py:49931 ms74.5%
RequestFactory.genericdjango/test/client.py:67131 ms74.5%
Client.requestdjango/test/client.py:108231 ms74.5%
ClientHandler.__call__django/test/client.py:17329 ms68.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6229 ms68.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10426 ms63.1%
WhiteNoise.add_fileswhitenoise/base.py:10826 ms63.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12019 ms45.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13119 ms45.9%
WhiteNoise.get_static_filewhitenoise/base.py:20814 ms34.4%
StaticFile.__init__whitenoise/responders.py:777 ms17.2%
StaticFile.get_alternativeswhitenoise/responders.py:2005 ms11.5%
StaticFile.get_alternativeswhitenoise/responders.py:2012 ms5.7%
StaticFile.__init__whitenoise/responders.py:745 ms11.5%
parsedate<stdlib>/email/_parseaddr.py:1855 ms11.5%
StaticFile.__init__whitenoise/responders.py:762 ms5.7%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms5.7%
WhiteNoise.get_static_filewhitenoise/base.py:2022 ms5.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1157 ms17.2%
scantreewhitenoise/base.py:2627 ms17.2%
scantreewhitenoise/base.py:2627 ms17.2%
scantreewhitenoise/base.py:2622 ms5.7%
scantreewhitenoise/base.py:2622 ms5.7%
scantreewhitenoise/base.py:2622 ms5.7%
scantreewhitenoise/base.py:2602 ms5.7%
scantreewhitenoise/base.py:2642 ms5.7%
scantreewhitenoise/base.py:2602 ms5.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1112 ms5.7%
WhiteNoise.add_fileswhitenoise/base.py:1082 ms5.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1202 ms5.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1312 ms5.7%
WhiteNoise.get_static_filewhitenoise/base.py:2082 ms5.7%
StaticFile.__init__whitenoise/responders.py:732 ms5.7%
StaticFile.get_headerswhitenoise/responders.py:1762 ms5.7%
formatdate<stdlib>/email/utils.py:2662 ms5.7%
ClientHandler.__call__django/test/client.py:1862 ms5.7%
BaseHandler.get_responsedjango/core/handlers/base.py:1412 ms5.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.7%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1302 ms5.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.7%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1232 ms5.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.7%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:342 ms5.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.7%
BaseHandler._get_responsedjango/core/handlers/base.py:1982 ms5.7%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:652 ms5.7%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:372 ms5.7%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:642 ms5.7%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:73 touch_token(request.headers.get("Authorization"))2 ms5.7%
touch_tokenapps/api/urls.py:59 SecretTokens.objects.filter(pk__in=list(stale)).update(date_last_used=now)2 ms5.7%
QuerySet.__iter__django/db/models/query.py:3902 ms5.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms5.7%
FlatValuesListIterable.__iter__django/db/models/query.py:2772 ms5.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms5.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms5.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms5.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms5.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms5.7%
Cursor.executepsycopg/cursor.py:1132 ms5.7%
Connection.waitpsycopg/connection.py:4952 ms5.7%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()5 ms11.5%
TestCase._fixture_teardowndjango/test/testcases.py:14942 ms5.7%
TestCase._should_check_constraintsdjango/test/testcases.py:15032 ms5.7%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:4922 ms5.7%
Cursor.executepsycopg/cursor.py:1132 ms5.7%
Connection.waitpsycopg/connection.py:4952 ms5.7%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms5.7%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms5.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms5.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms5.7%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms5.7%
Cursor.executepsycopg/cursor.py:1132 ms5.7%
Connection.waitpsycopg/connection.py:4952 ms5.7%
TransactionTestCase._pre_setupdjango/test/testcases.py:1178 for db_name in cls._databases_names(include_mirrors=False):2 ms5.7%
Estimated from 17 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
|
29 ms |
|
apps/api/urls.py:59
SecretTokens.objects.filter(pk__in=list(stale)).update(date_last_used=now)
touch_token
· Database
|
2 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.06 ms |
| _django_db_marker function | 0.05 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _django_set_urlconf function | 0.05 ms |
| _live_server_helper function | 0.05 ms |
| _django_clear_site_cache function | 0.04 ms |
| monkeypatch function | 0.03 ms |
Database
10 queries · 3 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/api/tests.py:596
|
31 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
5 ms |
|
call _pre_setup
django/test/testcases.py:1178
|
2 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 5 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 17 minutes ago | CI github-actions:test | passed | 41 ms | Profile |
| 42 minutes ago | CI github-actions:test | passed | 37 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 41 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 25 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 38 ms | Profile |