Tests / apps/projects/tests.py
StorageTest::test_slow_tests_come_from_daily_stats
First seen 3 weeks ago in 78a4357
CI
github-actions:test
12 runs
Average
10 ms
median 11 ms
max 12 ms
max 12 ms
Phases
Setup 0.67 ms
Call 9 ms
Teardown 0.15 ms
Categories
Database 8 ms
App code 0.92 ms
Other (Unsampled, pytest, Deep copies, Libraries) 1 ms
11 database queries per run
Needs 0 KB of memory (max 0 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 16 hours ago ·
open run
call9 ms91.5%
StorageTest.test_slow_tests_come_from_daily_statsapps/projects/tests.py:1238 rows = slow_tests(scope)7 ms68.6%
slow_testsapps/projects/analytics.py:442 rows = list(2 ms22.9%
QuerySet.__iter__django/db/models/query.py:3902 ms22.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms22.9%
ValuesIterable.__iter__django/db/models/query.py:2222 ms22.9%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms22.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms22.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms22.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms22.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms22.9%
Cursor.executepsycopg/cursor.py:1132 ms22.9%
Connection.waitpsycopg/connection.py:4952 ms22.9%
slow_testsapps/projects/analytics.py:453 TestSnapshot.objects.filter(scope.environment_q(), test_id__in=ids)2 ms22.9%
QuerySet.__iter__django/db/models/query.py:3902 ms22.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms22.9%
ModelIterable.__iter__django/db/models/query.py:952 ms22.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms22.9%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7922 ms22.9%
SQLCompiler.get_from_clausedjango/db/models/sql/compiler.py:11592 ms22.9%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms22.9%
Join.as_sqldjango/db/models/sql/datastructures.py:882 ms22.9%
DatabaseOperations.prepare_join_on_clausedjango/db/backends/postgresql/operations.py:3992 ms22.9%
slow_testsapps/projects/analytics.py:461 for perf in TestPerf.objects.filter(2 ms22.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms22.9%
QuerySet.filterdjango/db/models/query.py:15422 ms22.9%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms22.9%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms22.9%
Query.add_qdjango/db/models/sql/query.py:16712 ms22.9%
Query._add_qdjango/db/models/sql/query.py:17032 ms22.9%
Query.build_filterdjango/db/models/sql/query.py:15992 ms22.9%
Query.trim_joinsdjango/db/models/sql/query.py:20102 ms22.9%
TransactionTestCase._pre_setupdjango/test/testcases.py:1164 cls._fixture_setup()2 ms22.9%
TestCase._fixture_setupdjango/test/testcases.py:14782 ms22.9%
TestCase._enter_atomicsdjango/test/testcases.py:13962 ms22.9%
Atomic.__enter__django/db/transaction.py:2112 ms22.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms22.9%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms22.9%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms22.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms22.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms22.9%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms22.9%
Cursor.executepsycopg/cursor.py:1132 ms22.9%
Connection.waitpsycopg/connection.py:4952 ms22.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms22.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms22.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms22.9%
Estimated from 4 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/projects/analytics.py:442
rows = list(
slow_tests
· Database
|
2 ms |
|
apps/projects/analytics.py:453
TestSnapshot.objects.filter(scope.environment_q(), test_id__in=ids)
slow_tests
· Database
|
2 ms |
|
apps/projects/analytics.py:461
for perf in TestPerf.objects.filter(
slow_tests
· Database
|
2 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.06 ms |
| _django_db_marker function | 0.05 ms |
| _django_set_urlconf function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_clear_site_cache function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
11 queries · 4 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/projects/tests.py:1238
|
7 ms |
|
call _pre_setup
django/test/testcases.py:1164
|
2 ms |
Reliability
12 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 12 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 16 hours ago | CI github-actions:test | passed | 10 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 7 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 11 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 9 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 11 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 8 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 12 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 12 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 11 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 11 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 7 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 12 ms | Profile |