flakytest.dev anze3db flakytest
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
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
Show pytest frames
setup0.95 ms8.2%
call11 ms90.5%
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%
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%
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%
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 hidden .

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 ms
No 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 failures

This test hasn't failed recently.

History

Latest 5 results, oldest first in the strip
When Environment Outcome Duration Commit
2 hours ago CI github-actions:test passed 12 ms 9caa567 main Profile
2 hours ago CI github-actions:test passed 11 ms ec75501 main Profile
9 hours ago CI github-actions:test passed 11 ms d2c12e5 main Profile
9 hours ago CI github-actions:test passed 7 ms 0b902f6 main Profile
9 hours ago CI github-actions:test passed 12 ms 78a4357 main Profile