flakytest.dev anze3db flakytest
Tests / apps/projects/tests.py

StorageTest::test_daily_stats_sum_the_days_results

First seen 9 hours ago in 78a4357
CI github-actions:test 5 runs
Average
7 ms
median 7 ms
max 9 ms
Phases
Setup 0.77 ms Call 6 ms Teardown 0.16 ms
Categories
Database 5 ms Other (Unsampled, Libraries, pytest) 2 ms

8 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.98 ms13.3%
call6 ms84.2%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()5 ms63.1%
TestCase._fixture_teardowndjango/test/testcases.py:14942 ms21.0%
TestCase._should_check_constraintsdjango/test/testcases.py:15032 ms21.0%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:4922 ms21.0%
Cursor.executepsycopg/cursor.py:1132 ms21.0%
Connection.waitpsycopg/connection.py:4952 ms21.0%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms21.0%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms21.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms21.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms21.0%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms21.0%
Cursor.executepsycopg/cursor.py:1132 ms21.0%
Connection.waitpsycopg/connection.py:4952 ms21.0%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms21.0%
TestCase._rollback_atomicsdjango/test/testcases.py:14052 ms21.0%
Atomic.__exit__django/db/transaction.py:2832 ms21.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms21.0%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4132 ms21.0%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3712 ms21.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms21.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms21.0%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms21.0%
Cursor.executepsycopg/cursor.py:1132 ms21.0%
Connection.waitpsycopg/connection.py:4952 ms21.0%
StorageTest.test_daily_stats_sum_the_days_resultsapps/projects/tests.py:1191 stats = self.stats()2 ms21.0%
StorageTest.statsapps/projects/tests.py:1188 return TestDailyStats.objects.get(test=self.test, environment=self.first.environment, day=self.morning.date())2 ms21.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms21.0%
QuerySet.getdjango/db/models/query.py:6252 ms21.0%
QuerySet.filterdjango/db/models/query.py:15422 ms21.0%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms21.0%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms21.0%
Query.add_qdjango/db/models/sql/query.py:16712 ms21.0%
Query._add_qdjango/db/models/sql/query.py:17032 ms21.0%
Query.build_filterdjango/db/models/sql/query.py:16132 ms21.0%
Query.build_lookupdjango/db/models/sql/query.py:14402 ms21.0%
Estimated from 5 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/tests.py:1188
return TestDailyStats.objects.get(test=self.test, environment=self.first.environment, day=self.morning.date())
StorageTest.stats · Database
2 ms

Fixtures

Exact setup time
_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.04 ms
_template_string_if_invalid_marker function 0.04 ms
_django_clear_site_cache function 0.03 ms
monkeypatch function 0.02 ms

Database

8 queries · 4 ms
No repeated queries.

Biggest pieces of work

call _post_teardown
django/test/testcases.py:1240
5 ms
call test body
apps/projects/tests.py:1191
2 ms
setup pytest internals 0.98 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 7 ms 9caa567 main Profile
2 hours ago CI github-actions:test passed 7 ms ec75501 main Profile
9 hours ago CI github-actions:test passed 9 ms d2c12e5 main Profile
9 hours ago CI github-actions:test passed 4 ms 0b902f6 main Profile
9 hours ago CI github-actions:test passed 8 ms 78a4357 main Profile