Tests / apps/projects/tests.py
StorageTest::test_slow_tests_come_from_daily_stats
First seen 9 hours ago in 78a4357
CI
github-actions:test
5 runs
Average
11 ms
median 11 ms
max 12 ms
max 12 ms
Phases
Setup 0.74 ms
Call 10 ms
Teardown 0.15 ms
Categories
Database 7 ms
App code 2 ms
Other (Unsampled, Deep copies, pytest, Libraries) 2 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, 2 hours ago ·
open run
setup0.95 ms8.2%
CallInfo.from_call_pytest/runner.py:3530.95 ms8.2%
call_and_report.<locals>.<lambda>_pytest/runner.py:2450.95 ms8.2%
HookCaller.__call__pluggy/_hooks.py:5120.95 ms8.2%
PluginManager._hookexecpluggy/_manager.py:1200.95 ms8.2%
_multicallpluggy/_callers.py:1210.95 ms8.2%
pytest_runtest_setup_pytest/runner.py:1650.95 ms8.2%
SetupState.setup_pytest/runner.py:5230.95 ms8.2%
TestCaseFunction.setup_pytest/unittest.py:2270.95 ms8.2%
Function.setup_pytest/python.py:17230.95 ms8.2%
TopRequest._fillfixtures_pytest/fixtures.py:7070.95 ms8.2%
FixtureRequest.getfixturevalue_pytest/fixtures.py:5390.95 ms8.2%
FixtureRequest._get_active_fixturedef_pytest/fixtures.py:6030.95 ms8.2%
call11 ms90.5%
CallInfo.from_call_pytest/runner.py:35311 ms90.5%
call_and_report.<locals>.<lambda>_pytest/runner.py:24511 ms90.5%
HookCaller.__call__pluggy/_hooks.py:51211 ms90.5%
PluginManager._hookexecpluggy/_manager.py:12011 ms90.5%
_multicallpluggy/_callers.py:12111 ms90.5%
pytest_runtest_call_pytest/runner.py:17911 ms90.5%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:57311 ms90.5%
SimpleTestCase.__call__django/test/testcases.py:31311 ms90.5%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3688 ms67.9%
TestCase.__call__<stdlib>/unittest/case.py:7478 ms67.9%
TestCase.run<stdlib>/unittest/case.py:6918 ms67.9%
TestCase._callTestMethod<stdlib>/unittest/case.py:6378 ms67.9%
StorageTest.test_slow_tests_come_from_daily_statsapps/projects/tests.py:12365 ms45.2%
slow_testsapps/projects/analytics.py:442 rows = list(3 ms22.6%
QuerySet.__iter__django/db/models/query.py:3903 ms22.6%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms22.6%
ValuesIterable.__iter__django/db/models/query.py:2223 ms22.6%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15733 ms22.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms22.6%
CursorWrapper.executedjango/db/backends/utils.py:793 ms22.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms22.6%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1003 ms22.6%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms22.6%
Cursor.executepsycopg/cursor.py:1133 ms22.6%
Connection.waitpsycopg/connection.py:4953 ms22.6%
slow_testsapps/projects/analytics.py:465 suite_time = scope.profiles().aggregate(avg=Avg("test_time"))["avg"] or 03 ms22.6%
StorageTest.test_slow_tests_come_from_daily_statsapps/projects/tests.py:1235 scope = resolve_scope(self.project, "", 365)3 ms22.6%
TestData.__get__django/test/testcases.py:13673 ms22.6%
deepcopy<stdlib>/copy.py:1573 ms22.6%
_reconstruct<stdlib>/copy.py:2553 ms22.6%
deepcopy<stdlib>/copy.py:1313 ms22.6%
_deepcopy_dict<stdlib>/copy.py:2023 ms22.6%
deepcopy<stdlib>/copy.py:1573 ms22.6%
_reconstruct<stdlib>/copy.py:2553 ms22.6%
deepcopy<stdlib>/copy.py:1313 ms22.6%
_deepcopy_dict<stdlib>/copy.py:2023 ms22.6%
deepcopy<stdlib>/copy.py:1313 ms22.6%
_deepcopy_dict<stdlib>/copy.py:2023 ms22.6%
deepcopy<stdlib>/copy.py:1573 ms22.6%
_reconstruct<stdlib>/copy.py:2553 ms22.6%
deepcopy<stdlib>/copy.py:1313 ms22.6%
_deepcopy_dict<stdlib>/copy.py:2023 ms22.6%
deepcopy<stdlib>/copy.py:1573 ms22.6%
_reconstruct<stdlib>/copy.py:2483 ms22.6%
deepcopy<stdlib>/copy.py:1543 ms22.6%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3713 ms22.6%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()3 ms22.6%
TestCase._fixture_teardowndjango/test/testcases.py:14953 ms22.6%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4833 ms22.6%
CursorWrapper.executedjango/db/backends/utils.py:793 ms22.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms22.6%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1003 ms22.6%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms22.6%
Cursor.executepsycopg/cursor.py:1133 ms22.6%
Connection.waitpsycopg/connection.py:4953 ms22.6%
Estimated from 5 samples; phase durations are exact. Frames from pytest and pluggy are
shown
.
Hot lines in your code
|
apps/projects/tests.py:1235
scope = resolve_scope(self.project, "", 365)
StorageTest.test_slow_tests_come_from_daily_stats
· Deep copies
|
3 ms |
|
apps/projects/analytics.py:442
rows = list(
slow_tests
· Database
|
3 ms |
|
apps/projects/analytics.py:465
suite_time = scope.profiles().aggregate(avg=Avg("test_time"))["avg"] or 0
slow_tests
· App code
|
3 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.05 ms |
| _django_db_marker function | 0.05 ms |
| _django_set_urlconf function | 0.05 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _live_server_helper function | 0.04 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
11 queries · 5 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/projects/tests.py:1235
|
8 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
3 ms |
| setup pytest internals | 0.95 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 | |
|---|---|---|---|---|
| 2 hours ago | CI github-actions:test | passed | 12 ms | Profile |
| 2 hours ago | CI github-actions:test | passed | 11 ms | Profile |
| 9 hours ago | CI github-actions:test | passed | 11 ms | Profile |
| 9 hours ago | CI github-actions:test | passed | 7 ms | Profile |
| 9 hours ago | CI github-actions:test | passed | 12 ms | Profile |