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

MemoryTest::test_stored_and_summed_per_day

First seen 3 weeks ago in 78a4357
CI github-actions:test 12 runs
Average
15 ms
median 15 ms
max 21 ms
Phases
Setup 0.77 ms Call 13 ms Teardown 1 ms
Categories
Database 13 ms Other (Unsampled, Libraries, pytest) 2 ms

23 database queries per run

Needs 0 KB of memory (max 4 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 16 hours ago · open run
Show pytest frames
setup0.88 ms6.3%
__init____init__:-10.88 ms6.3%
signature<stdlib>/inspect.py:33430.88 ms6.3%
Signature.from_callable<stdlib>/inspect.py:30580.88 ms6.3%
_signature_from_callable<stdlib>/inspect.py:25280.88 ms6.3%
_signature_from_function<stdlib>/inspect.py:23510.88 ms6.3%
call12 ms84.6%
MemoryTest.setUpapps/projects/tests.py:1413 self.client.force_login(self.user)4 ms31.7%
ClientMixin.force_logindjango/test/client.py:8554 ms31.7%
ClientMixin._logindjango/test/client.py:8813 ms21.1%
logindjango/contrib/auth/__init__.py:1731 ms10.6%
AbstractBaseUser.get_session_auth_hashdjango/contrib/auth/base_user.py:1361 ms10.6%
AbstractBaseUser._get_session_auth_hashdjango/contrib/auth/base_user.py:1441 ms10.6%
logindjango/contrib/auth/__init__.py:1871 ms10.6%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4341 ms10.6%
SessionStore.createdjango/contrib/sessions/backends/db.py:701 ms10.6%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1981 ms10.6%
SessionStore.existsdjango/contrib/sessions/backends/db.py:631 ms10.6%
QuerySet.existsdjango/db/models/query.py:13371 ms10.6%
Query.has_resultsdjango/db/models/sql/query.py:6811 ms10.6%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15921 ms10.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16111 ms10.6%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7951 ms10.6%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5781 ms10.6%
ClientMixin._logindjango/test/client.py:8831 ms10.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1231 ms10.6%
SessionStore.create_model_instancedjango/contrib/sessions/backends/db.py:1021 ms10.6%
SessionBase.encodedjango/contrib/sessions/backends/base.py:1261 ms10.6%
dumpsdjango/core/signing.py:1511 ms10.6%
Signer.sign_objectdjango/core/signing.py:2391 ms10.6%
TimestampSigner.signdjango/core/signing.py:2611 ms10.6%
Signer.signdjango/core/signing.py:2051 ms10.6%
Signer.signaturedjango/core/signing.py:2021 ms10.6%
base64_hmacdjango/core/signing.py:1001 ms10.6%
b64_encodedjango/core/signing.py:911 ms10.6%
MemoryTest.test_stored_and_summed_per_dayapps/projects/tests.py:1415 def test_stored_and_summed_per_day(self):1 ms10.6%
SysMonitor.sysmon_py_startcoverage/sysmon.py:3651 ms10.6%
bytes_to_linescoverage/sysmon.py:1961 ms10.6%
MemoryTest.test_stored_and_summed_per_dayapps/projects/tests.py:1416 perf = TestPerf.objects.get(profile=self.latest, test=self.hog_test)1 ms10.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms10.6%
QuerySet.getdjango/db/models/query.py:6351 ms10.6%
QuerySet.__len__django/db/models/query.py:3721 ms10.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms10.6%
ModelIterable.__iter__django/db/models/query.py:951 ms10.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms10.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms10.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms10.6%
MemoryTest.test_stored_and_summed_per_dayapps/projects/tests.py:1419 TestPerf.objects.get(profile=self.latest, test__name="tests/test_old.py::test_unmeasured").memory_peak1 ms10.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms10.6%
QuerySet.getdjango/db/models/query.py:6351 ms10.6%
QuerySet.__len__django/db/models/query.py:3721 ms10.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms10.6%
ModelIterable.__iter__django/db/models/query.py:951 ms10.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms10.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms10.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms10.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms10.6%
Cursor.executepsycopg/cursor.py:1131 ms10.6%
Connection.waitpsycopg/connection.py:4951 ms10.6%
MemoryTest.test_stored_and_summed_per_dayapps/projects/tests.py:1421 stats = TestDailyStats.objects.get(test=self.hog_test)1 ms10.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms10.6%
QuerySet.getdjango/db/models/query.py:6351 ms10.6%
QuerySet.__len__django/db/models/query.py:3721 ms10.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms10.6%
ModelIterable.__iter__django/db/models/query.py:1281 ms10.6%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15811 ms10.6%
SQLCompiler.has_composite_fieldsdjango/db/models/sql/compiler.py:15491 ms10.6%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()1 ms10.6%
TestCase._fixture_teardowndjango/test/testcases.py:14951 ms10.6%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4831 ms10.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms10.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms10.6%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms10.6%
Cursor.executepsycopg/cursor.py:1131 ms10.6%
Connection.waitpsycopg/connection.py:4951 ms10.6%
teardown1 ms9.2%
Estimated from 10 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/tests.py:1413
self.client.force_login(self.user)
MemoryTest.setUp · Libraries
4 ms
apps/projects/tests.py:1415
def test_stored_and_summed_per_day(self):
MemoryTest.test_stored_and_summed_per_day · Libraries
1 ms
apps/projects/tests.py:1416
perf = TestPerf.objects.get(profile=self.latest, test=self.hog_test)
MemoryTest.test_stored_and_summed_per_day · Database
1 ms
apps/projects/tests.py:1419
TestPerf.objects.get(profile=self.latest, test__name="tests/test_old.py::test_unmeasured").memory_peak
MemoryTest.test_stored_and_summed_per_day · Database
1 ms
apps/projects/tests.py:1421
stats = TestDailyStats.objects.get(test=self.hog_test)
MemoryTest.test_stored_and_summed_per_day · Database
1 ms

Fixtures

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

Database

23 queries · 6 ms
No repeated queries.

Biggest pieces of work

call test body
apps/projects/tests.py:1415
6 ms
call setUp
apps/projects/tests.py:1413
4 ms
call _post_teardown
django/test/testcases.py:1240
1 ms
teardown pytest internals 1 ms
setup __init__
__init__:-1
0.88 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 14 ms e141198 main Profile
1 week, 5 days ago CI github-actions:test passed 12 ms 46ec2aa main Profile
2 weeks, 1 day ago CI github-actions:test passed 21 ms afde85b main Profile
2 weeks, 1 day ago CI github-actions:test passed 12 ms fe29f9d main Profile
2 weeks, 1 day ago CI github-actions:test passed 16 ms 044719a main Profile
2 weeks, 2 days ago CI github-actions:test passed 9 ms b3fedae main Profile
2 weeks, 4 days ago CI github-actions:test passed 19 ms 43c4eda main Profile
2 weeks, 6 days ago CI github-actions:test passed 15 ms 9caa567 main Profile
2 weeks, 6 days ago CI github-actions:test passed 15 ms ec75501 main Profile
3 weeks ago CI github-actions:test passed 18 ms d2c12e5 main Profile
3 weeks ago CI github-actions:test passed 10 ms 0b902f6 main Profile
3 weeks ago CI github-actions:test passed 17 ms 78a4357 main Profile