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

FlakyReportTest::test_single_test

First seen 8 hours ago in 78a4357
CI github-actions:test 5 runs
Average
12 ms
median 12 ms
max 13 ms
Phases
Setup 0.76 ms Call 11 ms Teardown 0.23 ms
Categories
Database 10 ms Other (Unsampled, pytest, Libraries) 1 ms

11 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, an hour ago · open run
Show pytest frames
setup0.94 ms7.4%
call12 ms91.4%
FlakyReportTest.test_single_testapps/projects/tests.py:642 flakiness = flakiness_for_test(self.flaky_test)4 ms34.3%
flakiness_for_testapps/projects/flakiness.py:326 history = observations_for(test.project, [test.id], since).get(test.id, [])4 ms34.3%
observations_forapps/projects/flakiness.py:169 for row in Session.objects.filter(id__in={row[4] for row in test_runs}).values_list(3 ms22.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms11.4%
QuerySet.filterdjango/db/models/query.py:15421 ms11.4%
QuerySet._filter_or_excludedjango/db/models/query.py:15601 ms11.4%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15701 ms11.4%
Query.add_qdjango/db/models/sql/query.py:16711 ms11.4%
Query._add_qdjango/db/models/sql/query.py:17031 ms11.4%
Query.build_filterdjango/db/models/sql/query.py:16131 ms11.4%
QuerySet.__iter__django/db/models/query.py:3901 ms11.4%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms11.4%
ValuesListIterable.__iter__django/db/models/query.py:2381 ms11.4%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15731 ms11.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms11.4%
CursorWrapper.executedjango/db/backends/utils.py:791 ms11.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms11.4%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms11.4%
Cursor.executepsycopg/cursor.py:1131 ms11.4%
Connection.waitpsycopg/connection.py:4951 ms11.4%
observations_forapps/projects/flakiness.py:186 perfs = list(perfs)1 ms11.4%
QuerySet.__iter__django/db/models/query.py:3901 ms11.4%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms11.4%
ValuesListIterable.__iter__django/db/models/query.py:2381 ms11.4%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15731 ms11.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms11.4%
CursorWrapper.executedjango/db/backends/utils.py:791 ms11.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms11.4%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms11.4%
Cursor.executepsycopg/cursor.py:1131 ms11.4%
Connection.waitpsycopg/connection.py:4951 ms11.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2051 ms11.4%
BaseCursor._convert_querypsycopg/_cursor_base.py:4651 ms11.4%
PostgresClientQuery.convertpsycopg/_queries.py:2891 ms11.4%
PostgresClientQuery.dumppsycopg/_queries.py:2991 ms11.4%
PostgresClientQuery.dump.<locals>.<genexpr>psycopg/_queries.py:3001 ms11.4%
FlakyReportTest.test_single_testapps/projects/tests.py:6463 ms22.9%
flakiness_for_testapps/projects/flakiness.py:326 history = observations_for(test.project, [test.id], since).get(test.id, [])3 ms22.9%
observations_forapps/projects/flakiness.py:165 test_runs = list(test_runs)1 ms11.4%
QuerySet.__iter__django/db/models/query.py:3901 ms11.4%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms11.4%
ValuesListIterable.__iter__django/db/models/query.py:2381 ms11.4%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15731 ms11.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms11.4%
CursorWrapper.executedjango/db/backends/utils.py:791 ms11.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms11.4%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms11.4%
Cursor.executepsycopg/cursor.py:1131 ms11.4%
Connection.waitpsycopg/connection.py:4951 ms11.4%
observations_forapps/projects/flakiness.py:169 for row in Session.objects.filter(id__in={row[4] for row in test_runs}).values_list(1 ms11.4%
QuerySet.__iter__django/db/models/query.py:3901 ms11.4%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms11.4%
ValuesListIterable.__iter__django/db/models/query.py:2381 ms11.4%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15731 ms11.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms11.4%
CursorWrapper.executedjango/db/backends/utils.py:791 ms11.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms11.4%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms11.4%
Cursor.executepsycopg/cursor.py:1131 ms11.4%
Connection.waitpsycopg/connection.py:4951 ms11.4%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()3 ms22.9%
TestCase._fixture_teardowndjango/test/testcases.py:14951 ms11.4%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4831 ms11.4%
CursorWrapper.executedjango/db/backends/utils.py:791 ms11.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms11.4%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms11.4%
Cursor.executepsycopg/cursor.py:1131 ms11.4%
Connection.waitpsycopg/connection.py:4951 ms11.4%
TestCase._fixture_teardowndjango/test/testcases.py:14971 ms11.4%
TestCase._rollback_atomicsdjango/test/testcases.py:14051 ms11.4%
Atomic.__exit__django/db/transaction.py:2831 ms11.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms11.4%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4131 ms11.4%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3711 ms11.4%
CursorWrapper.executedjango/db/backends/utils.py:791 ms11.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms11.4%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms11.4%
Cursor.executepsycopg/cursor.py:1131 ms11.4%
Connection.waitpsycopg/connection.py:4951 ms11.4%
Estimated from 9 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/flakiness.py:169
for row in Session.objects.filter(id__in={row[4] for row in test_runs}).values_list(
observations_for · Database
4 ms
apps/projects/flakiness.py:186
perfs = list(perfs)
observations_for · Database
1 ms
apps/projects/flakiness.py:165
test_runs = list(test_runs)
observations_for · Database
1 ms

Fixtures

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

Database

11 queries · 5 ms
No repeated queries.

Biggest pieces of work

call test body
apps/projects/tests.py:642
7 ms
call _post_teardown
django/test/testcases.py:1240
3 ms
call pytest internals 1 ms
setup pytest internals 0.94 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 13 ms 9caa567 main Profile
an hour ago CI github-actions:test passed 12 ms ec75501 main Profile
8 hours ago CI github-actions:test passed 13 ms d2c12e5 main Profile
8 hours ago CI github-actions:test passed 8 ms 0b902f6 main Profile
8 hours ago CI github-actions:test passed 12 ms 78a4357 main Profile