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

AnalyticsTest::test_fix_next

First seen 10 hours ago in 78a4357
CI github-actions:test 5 runs
Average
9 ms
median 9 ms
max 9 ms
Phases
Setup 0.65 ms Call 8 ms Teardown 0.14 ms
Categories
Database 8 ms Other (Unsampled, Libraries) 0.78 ms

8 database queries per run

Needs 16 KB of memory (max 24 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 3 hours ago · open run
Hide pytest frames
setup0.75 ms8.2%
CallInfo.from_call_pytest/runner.py:3530.75 ms8.2%
call_and_report.<locals>.<lambda>_pytest/runner.py:2450.75 ms8.2%
HookCaller.__call__pluggy/_hooks.py:5120.75 ms8.2%
PluginManager._hookexecpluggy/_manager.py:1200.75 ms8.2%
_multicallpluggy/_callers.py:1210.75 ms8.2%
pytest_runtest_setup_pytest/runner.py:1650.75 ms8.2%
SetupState.setup_pytest/runner.py:5230.75 ms8.2%
TestCaseFunction.setup_pytest/unittest.py:2270.75 ms8.2%
Function.setup_pytest/python.py:17230.75 ms8.2%
TopRequest._fillfixtures_pytest/fixtures.py:7070.75 ms8.2%
FixtureRequest.getfixturevalue_pytest/fixtures.py:5390.75 ms8.2%
FixtureRequest._get_active_fixturedef_pytest/fixtures.py:6270.75 ms8.2%
FixtureDef.execute_pytest/fixtures.py:11100.75 ms8.2%
HookCaller.__call__pluggy/_hooks.py:5120.75 ms8.2%
PluginManager._hookexecpluggy/_manager.py:1200.75 ms8.2%
_multicallpluggy/_callers.py:1210.75 ms8.2%
pytest_fixture_setup_pytest/fixtures.py:11780.75 ms8.2%
FixtureRequest.getfixturevalue_pytest/fixtures.py:5390.75 ms8.2%
FixtureRequest._get_active_fixturedef_pytest/fixtures.py:5580.75 ms8.2%
__init____init__:-10.75 ms8.2%
RequestFixtureDef.__init___pytest/fixtures.py:11330.75 ms8.2%
FixtureDef.__init___pytest/fixtures.py:10200.75 ms8.2%
getfuncargnames_pytest/compat.py:1360.75 ms8.2%
signature_pytest/compat.py:700.75 ms8.2%
signature<stdlib>/inspect.py:33400.75 ms8.2%
Signature.from_callable<stdlib>/inspect.py:30550.75 ms8.2%
_signature_from_callable<stdlib>/inspect.py:25250.75 ms8.2%
call8 ms90.3%
CallInfo.from_call_pytest/runner.py:3538 ms90.3%
call_and_report.<locals>.<lambda>_pytest/runner.py:2458 ms90.3%
HookCaller.__call__pluggy/_hooks.py:5128 ms90.3%
PluginManager._hookexecpluggy/_manager.py:1208 ms90.3%
_multicallpluggy/_callers.py:1218 ms90.3%
pytest_runtest_call_pytest/runner.py:1798 ms90.3%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:5738 ms90.3%
SimpleTestCase.__call__django/test/testcases.py:3138 ms90.3%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3716 ms67.7%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()6 ms67.7%
TestCase._fixture_teardowndjango/test/testcases.py:14942 ms22.6%
TestCase._should_check_constraintsdjango/test/testcases.py:15032 ms22.6%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:4922 ms22.6%
Cursor.executepsycopg/cursor.py:1132 ms22.6%
Connection.waitpsycopg/connection.py:4952 ms22.6%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms22.6%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms22.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms22.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms22.6%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms22.6%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms22.6%
Cursor.executepsycopg/cursor.py:1132 ms22.6%
Connection.waitpsycopg/connection.py:4952 ms22.6%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms22.6%
TestCase._rollback_atomicsdjango/test/testcases.py:14052 ms22.6%
Atomic.__exit__django/db/transaction.py:2832 ms22.6%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3682 ms22.6%
TestCase.__call__<stdlib>/unittest/case.py:7472 ms22.6%
TestCase.run<stdlib>/unittest/case.py:6912 ms22.6%
TestCase._callTestMethod<stdlib>/unittest/case.py:6372 ms22.6%
AnalyticsTest.test_fix_nextapps/projects/tests.py:779 insights = fix_next(resolve_scope(self.project))2 ms22.6%
fix_nextapps/projects/analytics.py:5442 ms22.6%
latest_profilesapps/projects/analytics.py:264 profile = scope.profiles().filter(environment=environment).order_by("-started_at").first()2 ms22.6%
QuerySet.firstdjango/db/models/query.py:11452 ms22.6%
QuerySet.__iter__django/db/models/query.py:3902 ms22.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms22.6%
ModelIterable.__iter__django/db/models/query.py:952 ms22.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms22.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms22.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms22.6%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms22.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms22.6%
Cursor.executepsycopg/cursor.py:1132 ms22.6%
Connection.waitpsycopg/connection.py:4952 ms22.6%
Estimated from 5 samples; phase durations are exact. Frames from pytest and pluggy are shown .

Hot lines in your code

apps/projects/analytics.py:264
profile = scope.profiles().filter(environment=environment).order_by("-started_at").first()
latest_profiles · Database
2 ms

Fixtures

Exact setup time
_django_set_urlconf function 0.05 ms
_live_server_helper function 0.05 ms
_template_string_if_invalid_marker function 0.04 ms
_dj_autoclear_mailbox function 0.04 ms
_django_db_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
6 ms
call test body
apps/projects/tests.py:779
2 ms
setup __init__
__init__:-1
0.75 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
3 hours ago CI github-actions:test passed 9 ms 9caa567 main Profile
3 hours ago CI github-actions:test passed 9 ms ec75501 main Profile
10 hours ago CI github-actions:test passed 9 ms d2c12e5 main Profile
10 hours ago CI github-actions:test passed 6 ms 0b902f6 main Profile
10 hours ago CI github-actions:test passed 9 ms 78a4357 main Profile