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

AnalyticsTest::test_suite_trend

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

6 database queries per run

Needs 1 KB of memory (max 4 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, an hour ago · open run
Show pytest frames
call4 ms75.1%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()3 ms50.0%
TestCase._fixture_teardowndjango/test/testcases.py:14951 ms25.0%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4831 ms25.0%
CursorWrapper.executedjango/db/backends/utils.py:791 ms25.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms25.0%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms25.0%
Cursor.executepsycopg/cursor.py:1131 ms25.0%
Connection.waitpsycopg/connection.py:4951 ms25.0%
TestCase._fixture_teardowndjango/test/testcases.py:14971 ms25.0%
TestCase._rollback_atomicsdjango/test/testcases.py:14051 ms25.0%
Atomic.__exit__django/db/transaction.py:2861 ms25.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms25.0%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4311 ms25.0%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3751 ms25.0%
CursorWrapper.executedjango/db/backends/utils.py:791 ms25.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms25.0%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms25.0%
Cursor.executepsycopg/cursor.py:1131 ms25.0%
Connection.waitpsycopg/connection.py:4951 ms25.0%
AnalyticsTest.test_suite_trendapps/projects/tests.py:767 trend = suite_trend(resolve_scope(self.project))1 ms25.0%
suite_trendapps/projects/analytics.py:338 for env_id, name, kind, started_at, duration, test_time, number in rows:1 ms25.0%
QuerySet.__iter__django/db/models/query.py:3901 ms25.0%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms25.0%
ValuesListIterable.__iter__django/db/models/query.py:2381 ms25.0%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15731 ms25.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16111 ms25.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7671 ms25.0%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:871 ms25.0%
SQLCompiler.get_order_bydjango/db/models/sql/compiler.py:4911 ms25.0%
SQLCompiler._order_by_pairsdjango/db/models/sql/compiler.py:3621 ms25.0%
Expression.__hash__django/db/models/expressions.py:5621 ms25.0%
Estimated from 3 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/analytics.py:338
for env_id, name, kind, started_at, duration, test_time, number in rows:
suite_trend · Database
1 ms

Fixtures

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

Database

6 queries · 2 ms
No repeated queries.

Biggest pieces of work

call _post_teardown
django/test/testcases.py:1240
3 ms
call test body
apps/projects/tests.py:767
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
an hour ago CI github-actions:test passed 6 ms 9caa567 main Profile
an hour ago CI github-actions:test passed 6 ms ec75501 main Profile
8 hours ago CI github-actions:test passed 6 ms d2c12e5 main Profile
8 hours ago CI github-actions:test passed 4 ms 0b902f6 main Profile
8 hours ago CI github-actions:test passed 7 ms 78a4357 main Profile