Tests / starter_packs/tests.py
TestShareStarterPack::test_api_plain_json
Regression caught
First seen 1 year, 3 months ago in 1e2abb0
CI
github-actions:test
11 runs
Average
149 ms
median 110 ms
max 362 ms
1 failed
max 362 ms
1 failed
Phases
Setup 32 ms
Call 116 ms
Teardown 0.37 ms
Categories
Database 57 ms
Factories 7 ms
App code 0.43 ms
Test code 0.43 ms
Other (Libraries, pytest, Unsampled, Deep copies, ...) 84 ms
17 database queries per run
Needs 521 KB of memory (max 3 MB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
call98 ms98.4%
TestShareStarterPack.test_api_plain_jsonstarter_packs/tests.py:897 for account in accounts85 ms85.1%
QuerySet.__iter__django/db/models/query.py:43985 ms85.1%
QuerySet._fetch_alldjango/db/models/query.py:226285 ms85.1%
ModelIterable.__iter__django/db/models/query.py:10385 ms85.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162585 ms85.1%
CursorWrapper.executedjango/db/backends/utils.py:7985 ms85.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9285 ms85.1%
CursorWrapper._executedjango/db/backends/utils.py:10583 ms83.6%
Cursor.executepsycopg/cursor.py:11383 ms83.6%
Connection.waitpsycopg/connection.py:49583 ms83.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.78 ms0.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3120.78 ms0.8%
TestShareStarterPack.test_api_plain_jsonstarter_packs/tests.py:851 response = self.client.get(10 ms10.2%
Client.getdjango/test/client.py:113310 ms10.2%
RequestFactory.getdjango/test/client.py:47510 ms10.2%
RequestFactory.genericdjango/test/client.py:67110 ms10.2%
Client.requestdjango/test/client.py:109110 ms10.2%
ClientHandler.__call__django/test/client.py:17310 ms10.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6310 ms10.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10410 ms10.2%
WhiteNoise.add_fileswhitenoise/base.py:10810 ms10.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1156 ms6.2%
scantreewhitenoise/base.py:2715 ms5.5%
scantreewhitenoise/base.py:2715 ms4.7%
scantreewhitenoise/base.py:2735 ms4.7%
scantreewhitenoise/base.py:2730.78 ms0.8%
scantreewhitenoise/base.py:2730.78 ms0.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1204 ms3.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1314 ms3.9%
WhiteNoise.get_static_filewhitenoise/base.py:2172 ms2.3%
StaticFile.__init__whitenoise/responders.py:740.78 ms0.8%
parsedate<stdlib>/email/_parseaddr.py:1850.78 ms0.8%
StaticFile.__init__whitenoise/responders.py:720.78 ms0.8%
StaticFile.get_file_statswhitenoise/responders.py:1610.78 ms0.8%
StaticFile.__init__whitenoise/responders.py:760.78 ms0.8%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1880.78 ms0.8%
WhiteNoise.get_static_filewhitenoise/base.py:2120.78 ms0.8%
WhiteNoise.add_cache_headerswhitenoise/base.py:2330.78 ms0.8%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1760.78 ms0.8%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1970.78 ms0.8%
URLMixin.urldebug_toolbar/panels/staticfiles.py:200.78 ms0.8%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2350.78 ms0.8%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2140.78 ms0.8%
ManifestFilesMixin.stored_namedjango/contrib/staticfiles/storage.py:5980.78 ms0.8%
WhiteNoise.get_static_filewhitenoise/base.py:2140.78 ms0.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()3 ms3.1%
TestCase._fixture_teardowndjango/test/testcases.py:14982 ms2.3%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4952 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.78 ms0.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2860.78 ms0.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:780.78 ms0.8%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4960.78 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:790.78 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.78 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1030.78 ms0.8%
Cursor.executepsycopg/cursor.py:1130.78 ms0.8%
Connection.waitpsycopg/connection.py:4950.78 ms0.8%
TestCase._fixture_teardowndjango/test/testcases.py:14970.78 ms0.8%
TestCase._should_check_constraintsdjango/test/testcases.py:15060.78 ms0.8%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5040.78 ms0.8%
Cursor.executepsycopg/cursor.py:1130.78 ms0.8%
Connection.waitpsycopg/connection.py:4950.78 ms0.8%
teardown0.55 ms0.6%
Estimated from 127 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
starter_packs/tests.py:897
for account in accounts
TestShareStarterPack.test_api_plain_json
· Database
|
85 ms |
|
starter_packs/tests.py:851
response = self.client.get(
TestShareStarterPack.test_api_plain_json
· Libraries
|
10 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.06 ms |
| _live_server_helper function | 0.05 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _django_db_marker function | 0.05 ms |
| _django_isolate_apps function | 0.05 ms |
| _django_set_urlconf function | 0.04 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.03 ms |
Database
9 queries · 13 msNo repeated queries.
Biggest pieces of work
|
call test body
starter_packs/tests.py:897
|
95 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
3 ms |
| teardown pytest internals | 0.55 ms |
Reliability
12 results · 1 CI failure · 0 local failuresRegression caught Fixed by a change that didn't touch the test: the test caught a real bug.
| Failure streak | Verdict | Failures |
|---|---|---|
| Oct 18, 15:53 → Oct 18, 16:01 | Regression caught | 1 |
History
Latest 12 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 7 hours ago | CI github-actions:test | passed | 99 ms | Profile |
| 16 hours ago | CI github-actions:test | passed | 47 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 169 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 100 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 64 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 167 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 110 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 53 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 218 ms | Profile |
| 3 weeks ago | CI github-actions:test | failed | 362 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 246 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 85 ms | Run |