Tests / apps/projects/tests.py
FlakyReportTest::test_report_by_environment_kind
First seen 1 month, 1 week ago in 78a4357
CI
github-actions:test
15 runs
Average
13 ms
median 14 ms
max 16 ms
max 16 ms
Phases
Setup 0.63 ms
Call 12 ms
Teardown 0.14 ms
Categories
Database 11 ms
App code 0.13 ms
Other (Unsampled, pytest, Deep copies) 2 ms
14 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, 2 weeks ago ·
open run
call13 ms94.9%
FlakyReportTest.test_report_by_environment_kindapps/projects/tests.py:635 report = flaky_report(self.project, days=30, environment_kind="local")13 ms94.9%
flaky_reportapps/projects/flakiness.py:2538 ms57.0%
compute_flaky_reportapps/projects/flakiness.py:2685 ms38.0%
failing_test_idsapps/projects/flakiness.py:202 ids = set(3 ms19.0%
QuerySet.__iter__django/db/models/query.py:3903 ms19.0%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms19.0%
FlatValuesListIterable.__iter__django/db/models/query.py:2773 ms19.0%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15733 ms19.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms19.0%
CursorWrapper.executedjango/db/backends/utils.py:793 ms19.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms19.0%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms19.0%
Cursor.executepsycopg/cursor.py:1133 ms19.0%
Connection.waitpsycopg/connection.py:4953 ms19.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms19.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms19.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms19.0%
failing_test_idsapps/projects/flakiness.py:220 .values_list("test_id", flat=True)3 ms19.0%
QuerySet.values_listdjango/db/models/query.py:14583 ms19.0%
QuerySet._valuesdjango/db/models/query.py:14093 ms19.0%
Query.set_valuesdjango/db/models/sql/query.py:25943 ms19.0%
compute_flaky_reportapps/projects/flakiness.py:267 environments = list(Environment.objects.filter(project=project, kind=environment_kind))3 ms19.0%
QuerySet.__iter__django/db/models/query.py:3903 ms19.0%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms19.0%
ModelIterable.__iter__django/db/models/query.py:953 ms19.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms19.0%
CursorWrapper.executedjango/db/backends/utils.py:793 ms19.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms19.0%
flaky_reportapps/projects/flakiness.py:2505 ms38.0%
data_versionapps/projects/flakiness.py:228 ingest = Ingest.objects.filter(project=project).aggregate(latest=Max("id"))["latest"]3 ms19.0%
QuerySet.aggregatedjango/db/models/query.py:5943 ms19.0%
Query.get_aggregationdjango/db/models/sql/query.py:6333 ms19.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms19.0%
CursorWrapper.executedjango/db/backends/utils.py:793 ms19.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms19.0%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms19.0%
Cursor.executepsycopg/cursor.py:1133 ms19.0%
Connection.waitpsycopg/connection.py:4953 ms19.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms19.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms19.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms19.0%
data_versionapps/projects/flakiness.py:229 profile = Profile.objects.filter(project=project).aggregate(latest=Max("date_processed"))["latest"]3 ms19.0%
QuerySet.aggregatedjango/db/models/query.py:5943 ms19.0%
Query.get_aggregationdjango/db/models/sql/query.py:6373 ms19.0%
Estimated from 5 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/projects/flakiness.py:228
ingest = Ingest.objects.filter(project=project).aggregate(latest=Max("id"))["latest"]
data_version
· Database
|
3 ms |
|
apps/projects/flakiness.py:229
profile = Profile.objects.filter(project=project).aggregate(latest=Max("date_processed"))["latest"]
data_version
· Database
|
3 ms |
|
apps/projects/flakiness.py:267
environments = list(Environment.objects.filter(project=project, kind=environment_kind))
compute_flaky_report
· Database
|
3 ms |
|
apps/projects/flakiness.py:202
ids = set(
failing_test_ids
· Database
|
3 ms |
|
apps/projects/flakiness.py:220
.values_list("test_id", flat=True)
failing_test_ids
· Database
|
3 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_db_marker function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
14 queries · 6 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/projects/tests.py:635
|
13 ms |
Reliability
15 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 15 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 13 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 14 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 10 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 13 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 8 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 14 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 13 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 15 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 9 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 15 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 15 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 15 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 16 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 10 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 15 ms | Profile |