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

MemoryTest::test_stored_and_summed_per_day

First seen 8 hours ago in 78a4357
CI github-actions:test 5 runs
Average
15 ms
median 15 ms
max 18 ms
Phases
Setup 0.82 ms Call 13 ms Teardown 1 ms
Categories
Database 13 ms Other (Unsampled, pytest, Libraries) 2 ms

23 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, 47 minutes ago · open run
Show pytest frames
setup1 ms6.8%
__init____init__:-11 ms6.8%
signature<stdlib>/inspect.py:33401 ms6.8%
Signature.from_callable<stdlib>/inspect.py:30551 ms6.8%
_signature_from_callable<stdlib>/inspect.py:25251 ms6.8%
_signature_from_function<stdlib>/inspect.py:24121 ms6.8%
Signature.__init__<stdlib>/inspect.py:30451 ms6.8%
call14 ms88.9%
MemoryTest.setUpapps/projects/tests.py:1375 self.client.force_login(self.user)8 ms49.4%
ClientMixin.force_logindjango/test/client.py:8558 ms49.4%
ClientMixin._logindjango/test/client.py:8815 ms29.6%
logindjango/contrib/auth/__init__.py:1752 ms9.9%
SessionBase.__contains__django/contrib/sessions/backends/base.py:522 ms9.9%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2512 ms9.9%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms9.9%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms9.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms9.9%
QuerySet.getdjango/db/models/query.py:6352 ms9.9%
QuerySet.__len__django/db/models/query.py:3722 ms9.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms9.9%
ModelIterable.__iter__django/db/models/query.py:952 ms9.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms9.9%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms9.9%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:882 ms9.9%
WhereNode.split_having_qualifydjango/db/models/sql/where.py:472 ms9.9%
logindjango/contrib/auth/__init__.py:1872 ms9.9%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4342 ms9.9%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms9.9%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1982 ms9.9%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms9.9%
QuerySet.existsdjango/db/models/query.py:13372 ms9.9%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms9.9%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms9.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms9.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms9.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms9.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms9.9%
Cursor.executepsycopg/cursor.py:1132 ms9.9%
Connection.waitpsycopg/connection.py:4952 ms9.9%
logindjango/contrib/auth/__init__.py:1972 ms9.9%
Signal.senddjango/dispatch/dispatcher.py:2092 ms9.9%
update_last_logindjango/contrib/auth/models.py:242 ms9.9%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:622 ms9.9%
Model.savedjango/db/models/base.py:8742 ms9.9%
Model.save_basedjango/db/models/base.py:9662 ms9.9%
Model._save_tabledjango/db/models/base.py:11102 ms9.9%
Model._do_updatedjango/db/models/base.py:12112 ms9.9%
QuerySet._updatedjango/db/models/query.py:13272 ms9.9%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms9.9%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms9.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms9.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms9.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms9.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms9.9%
Cursor.executepsycopg/cursor.py:1132 ms9.9%
Connection.waitpsycopg/connection.py:4952 ms9.9%
ClientMixin._logindjango/test/client.py:8762 ms9.9%
ClientMixin.sessiondjango/test/client.py:8122 ms9.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:1212 ms9.9%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms9.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms9.9%
Model.savedjango/db/models/base.py:8742 ms9.9%
Model.save_basedjango/db/models/base.py:9662 ms9.9%
Model._save_tabledjango/db/models/base.py:11672 ms9.9%
Model._do_insertdjango/db/models/base.py:12182 ms9.9%
ClientMixin._logindjango/test/client.py:8832 ms9.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms9.9%
Model.savedjango/db/models/base.py:8742 ms9.9%
Model.save_basedjango/db/models/base.py:9662 ms9.9%
Model._save_tabledjango/db/models/base.py:11102 ms9.9%
Model._do_updatedjango/db/models/base.py:12112 ms9.9%
QuerySet._updatedjango/db/models/query.py:13272 ms9.9%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms9.9%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms9.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms9.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms9.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms9.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms9.9%
Cursor.executepsycopg/cursor.py:1132 ms9.9%
Connection.waitpsycopg/connection.py:4952 ms9.9%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()3 ms19.8%
TestCase._fixture_teardowndjango/test/testcases.py:14942 ms9.9%
TestCase._should_check_constraintsdjango/test/testcases.py:15032 ms9.9%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:4922 ms9.9%
Cursor.executepsycopg/cursor.py:1132 ms9.9%
Connection.waitpsycopg/connection.py:4952 ms9.9%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms9.9%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms9.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms9.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms9.9%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms9.9%
Cursor.executepsycopg/cursor.py:1132 ms9.9%
Connection.waitpsycopg/connection.py:4952 ms9.9%
MemoryTest.test_stored_and_summed_per_dayapps/projects/tests.py:1378 perf = TestPerf.objects.get(profile=self.latest, test=self.hog_test)2 ms9.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms9.9%
QuerySet.getdjango/db/models/query.py:6352 ms9.9%
QuerySet.__len__django/db/models/query.py:3722 ms9.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms9.9%
ModelIterable.__iter__django/db/models/query.py:952 ms9.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms9.9%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms9.9%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms9.9%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms9.9%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:2552 ms9.9%
SQLCompiler.get_default_columnsdjango/db/models/sql/compiler.py:10302 ms9.9%
MemoryTest.test_stored_and_summed_per_dayapps/projects/tests.py:1381 TestPerf.objects.get(profile=self.latest, test__name="tests/test_old.py::test_unmeasured").memory_peak2 ms9.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms9.9%
QuerySet.getdjango/db/models/query.py:6352 ms9.9%
QuerySet.__len__django/db/models/query.py:3722 ms9.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms9.9%
ModelIterable.__iter__django/db/models/query.py:1272 ms9.9%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15772 ms9.9%
SQLCompiler.get_convertersdjango/db/models/sql/compiler.py:15262 ms9.9%
Estimated from 10 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/tests.py:1375
self.client.force_login(self.user)
MemoryTest.setUp · Database
8 ms
apps/projects/tests.py:1378
perf = TestPerf.objects.get(profile=self.latest, test=self.hog_test)
MemoryTest.test_stored_and_summed_per_day · Database
2 ms
apps/projects/tests.py:1381
TestPerf.objects.get(profile=self.latest, test__name="tests/test_old.py::test_unmeasured").memory_peak
MemoryTest.test_stored_and_summed_per_day · Database
2 ms

Fixtures

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

Database

23 queries · 7 ms
No repeated queries.

Biggest pieces of work

call setUp
apps/projects/tests.py:1375
8 ms
call test body
apps/projects/tests.py:1378
3 ms
call _post_teardown
django/test/testcases.py:1240
3 ms
setup __init__
__init__:-1
1 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
47 minutes ago CI github-actions:test passed 15 ms 9caa567 main Profile
an hour ago CI github-actions:test passed 15 ms ec75501 main Profile
7 hours ago CI github-actions:test passed 18 ms d2c12e5 main Profile
8 hours ago CI github-actions:test passed 10 ms 0b902f6 main Profile
8 hours ago CI github-actions:test passed 17 ms 78a4357 main Profile