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

FlakyReportTest::test_window

First seen 8 hours ago in 78a4357
CI github-actions:test 5 runs
Average
13 ms
median 14 ms
max 14 ms
Phases
Setup 0.67 ms Call 11 ms Teardown 1 ms
Categories
Database 11 ms App code 0.22 ms Other (Unsampled, pytest) 1 ms

13 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
setup0.84 ms6.4%
call12 ms88.3%
FlakyReportTest.test_windowapps/projects/tests.py:638 report = flaky_report(self.project, days=2)9 ms66.3%
flaky_reportapps/projects/flakiness.py:2537 ms55.2%
compute_flaky_reportapps/projects/flakiness.py:2724 ms33.1%
observations_forapps/projects/flakiness.py:163 .values_list("test_id", "date_run", "status", "failed", "session_id")1 ms11.0%
QuerySet.values_listdjango/db/models/query.py:14581 ms11.0%
QuerySet._valuesdjango/db/models/query.py:14091 ms11.0%
Query.set_valuesdjango/db/models/sql/query.py:26051 ms11.0%
Query.add_fieldsdjango/db/models/sql/query.py:22881 ms11.0%
Query.setup_joins.<locals>.final_transformerdjango/db/models/sql/query.py:19201 ms11.0%
observations_forapps/projects/flakiness.py:186 perfs = list(perfs)1 ms11.0%
QuerySet.__iter__django/db/models/query.py:3901 ms11.0%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms11.0%
ValuesListIterable.__iter__django/db/models/query.py:2381 ms11.0%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15731 ms11.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms11.0%
CursorWrapper.executedjango/db/backends/utils.py:791 ms11.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms11.0%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms11.0%
Cursor.executepsycopg/cursor.py:1131 ms11.0%
Connection.waitpsycopg/connection.py:4951 ms11.0%
observations_forapps/projects/flakiness.py:189 for row in Profile.objects.filter(id__in={row[3] for row in perfs}).values_list(1 ms11.0%
QuerySet.__iter__django/db/models/query.py:3901 ms11.0%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms11.0%
ValuesListIterable.__iter__django/db/models/query.py:2381 ms11.0%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15731 ms11.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms11.0%
CursorWrapper.executedjango/db/backends/utils.py:791 ms11.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms11.0%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms11.0%
Cursor.executepsycopg/cursor.py:1131 ms11.0%
Connection.waitpsycopg/connection.py:4951 ms11.0%
compute_flaky_reportapps/projects/flakiness.py:2683 ms22.1%
failing_test_idsapps/projects/flakiness.py:202 ids = set(1 ms11.0%
QuerySet.__iter__django/db/models/query.py:3901 ms11.0%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms11.0%
FlatValuesListIterable.__iter__django/db/models/query.py:2771 ms11.0%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15731 ms11.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16111 ms11.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7951 ms11.0%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5781 ms11.0%
WhereNode.as_sqldjango/db/models/sql/where.py:1511 ms11.0%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5781 ms11.0%
failing_test_idsapps/projects/flakiness.py:220 .values_list("test_id", flat=True)1 ms11.0%
QuerySet.values_listdjango/db/models/query.py:14581 ms11.0%
QuerySet._valuesdjango/db/models/query.py:14091 ms11.0%
Query.set_valuesdjango/db/models/sql/query.py:26051 ms11.0%
Query.add_fieldsdjango/db/models/sql/query.py:22661 ms11.0%
Query.setup_joinsdjango/db/models/sql/query.py:19771 ms11.0%
flaky_reportapps/projects/flakiness.py:2501 ms11.0%
data_versionapps/projects/flakiness.py:229 profile = Profile.objects.filter(project=project).aggregate(latest=Max("date_processed"))["latest"]1 ms11.0%
QuerySet.aggregatedjango/db/models/query.py:5941 ms11.0%
Query.get_aggregationdjango/db/models/sql/query.py:6331 ms11.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms11.0%
CursorWrapper.executedjango/db/backends/utils.py:791 ms11.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms11.0%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms11.0%
Cursor.executepsycopg/cursor.py:1131 ms11.0%
Connection.waitpsycopg/connection.py:4951 ms11.0%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()3 ms22.1%
TestCase._fixture_teardowndjango/test/testcases.py:14953 ms22.1%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4831 ms11.0%
CursorWrapper.executedjango/db/backends/utils.py:791 ms11.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms11.0%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms11.0%
Cursor.executepsycopg/cursor.py:1131 ms11.0%
Connection.waitpsycopg/connection.py:4951 ms11.0%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4841 ms11.0%
CursorWrapper.executedjango/db/backends/utils.py:791 ms11.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms11.0%
teardown0.69 ms5.3%
Estimated from 10 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/flakiness.py:229
profile = Profile.objects.filter(project=project).aggregate(latest=Max("date_processed"))["latest"]
data_version · Database
1 ms
apps/projects/flakiness.py:202
ids = set(
failing_test_ids · Database
1 ms
apps/projects/flakiness.py:220
.values_list("test_id", flat=True)
failing_test_ids · Database
1 ms
apps/projects/flakiness.py:163
.values_list("test_id", "date_run", "status", "failed", "session_id")
observations_for · Database
1 ms
apps/projects/flakiness.py:186
perfs = list(perfs)
observations_for · Database
1 ms
apps/projects/flakiness.py:189
for row in Profile.objects.filter(id__in={row[3] for row in perfs}).values_list(
observations_for · Database
1 ms

Fixtures

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

Database

13 queries · 6 ms
No repeated queries.

Biggest pieces of work

call test body
apps/projects/tests.py:638
9 ms
call _post_teardown
django/test/testcases.py:1240
3 ms
setup pytest internals 0.84 ms
teardown pytest internals 0.69 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 14 ms ec75501 main Profile
8 hours ago CI github-actions:test passed 14 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 14 ms 78a4357 main Profile