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

StorageTest::test_daily_stats_sum_the_days_results

First seen 3 weeks ago in 78a4357
CI github-actions:test 12 runs
Average
6 ms
median 7 ms
max 9 ms
Phases
Setup 0.69 ms Call 5 ms Teardown 0.14 ms
Categories
Database 5 ms Other (Unsampled, pytest, Libraries) 1 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, 16 hours ago · open run
Show pytest frames
setup0.74 ms11.9%
call5 ms86.1%
StorageTest.test_daily_stats_sum_the_days_resultsapps/projects/tests.py:1193 stats = self.stats()2 ms34.4%
StorageTest.statsapps/projects/tests.py:1190 return TestDailyStats.objects.get(test=self.test, environment=self.first.environment, day=self.morning.date())2 ms34.4%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2571 ms17.2%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2221 ms17.2%
QuerySet.getdjango/db/models/query.py:6351 ms17.2%
QuerySet.__len__django/db/models/query.py:3721 ms17.2%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms17.2%
ModelIterable.__iter__django/db/models/query.py:951 ms17.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16111 ms17.2%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:9781 ms17.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms17.2%
QuerySet.getdjango/db/models/query.py:6351 ms17.2%
QuerySet.__len__django/db/models/query.py:3721 ms17.2%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms17.2%
ModelIterable.__iter__django/db/models/query.py:951 ms17.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms17.2%
CursorWrapper.executedjango/db/backends/utils.py:791 ms17.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms17.2%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms17.2%
Cursor.executepsycopg/cursor.py:1131 ms17.2%
Connection.waitpsycopg/connection.py:4951 ms17.2%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms34.4%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms34.4%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4831 ms17.2%
CursorWrapper.executedjango/db/backends/utils.py:791 ms17.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms17.2%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms17.2%
Cursor.executepsycopg/cursor.py:1131 ms17.2%
Connection.waitpsycopg/connection.py:4951 ms17.2%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4841 ms17.2%
CursorWrapper.executedjango/db/backends/utils.py:791 ms17.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms17.2%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms17.2%
Cursor.executepsycopg/cursor.py:1131 ms17.2%
Connection.waitpsycopg/connection.py:4951 ms17.2%
StorageTest.test_daily_stats_sum_the_days_resultsapps/projects/tests.py:11961 ms17.2%
StorageTest.test_daily_stats_sum_the_days_results.<locals>.<genexpr>apps/projects/tests.py:1196 self.assertAlmostEqual(stats.duration_sum, sum(perf.duration for perf in perfs))1 ms17.2%
QuerySet.__iter__django/db/models/query.py:3901 ms17.2%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms17.2%
ModelIterable.__iter__django/db/models/query.py:951 ms17.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms17.2%
CursorWrapper.executedjango/db/backends/utils.py:791 ms17.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms17.2%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms17.2%
Cursor.executepsycopg/cursor.py:1131 ms17.2%
Connection.waitpsycopg/connection.py:4951 ms17.2%
Estimated from 6 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/tests.py:1190
return TestDailyStats.objects.get(test=self.test, environment=self.first.environment, day=self.morning.date())
StorageTest.stats · Database
2 ms
apps/projects/tests.py:1196
self.assertAlmostEqual(stats.duration_sum, sum(perf.duration for perf in perfs))
StorageTest.test_daily_stats_sum_the_days_results.<locals>.<genexpr> · Database
1 ms

Fixtures

Exact setup time
_template_string_if_invalid_marker function 0.05 ms
_dj_autoclear_mailbox function 0.05 ms
_django_db_marker function 0.04 ms
_django_set_urlconf function 0.04 ms
_django_clear_site_cache function 0.03 ms
_live_server_helper function 0.03 ms
monkeypatch function 0.03 ms

Database

8 queries · 3 ms
No repeated queries.

Biggest pieces of work

call test body
apps/projects/tests.py:1193
3 ms
call _post_teardown
django/test/testcases.py:1240
2 ms
setup pytest internals 0.74 ms

Reliability

12 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 12 results, oldest first in the strip
When Environment Outcome Duration Commit
16 hours ago CI github-actions:test passed 6 ms e141198 main Profile
1 week, 5 days ago CI github-actions:test passed 4 ms 46ec2aa main Profile
2 weeks, 1 day ago CI github-actions:test passed 7 ms afde85b main Profile
2 weeks, 1 day ago CI github-actions:test passed 5 ms fe29f9d main Profile
2 weeks, 1 day ago CI github-actions:test passed 7 ms 044719a main Profile
2 weeks, 2 days ago CI github-actions:test passed 4 ms b3fedae main Profile
2 weeks, 4 days ago CI github-actions:test passed 7 ms 43c4eda main Profile
2 weeks, 6 days ago CI github-actions:test passed 7 ms 9caa567 main Profile
2 weeks, 6 days ago CI github-actions:test passed 7 ms ec75501 main Profile
3 weeks ago CI github-actions:test passed 9 ms d2c12e5 main Profile
3 weeks ago CI github-actions:test passed 4 ms 0b902f6 main Profile
3 weeks ago CI github-actions:test passed 8 ms 78a4357 main Profile