Tests / apps/projects/tests.py
FlakyReportTest::test_window
First seen 1 month, 1 week ago in 78a4357
CI
github-actions:test
15 runs
Average
12 ms
median 13 ms
max 17 ms
max 17 ms
Phases
Setup 0.62 ms
Call 10 ms
Teardown 1 ms
Categories
Database 9 ms
App code 0.18 ms
Other (Unsampled, pytest, Deep copies) 2 ms
13 database queries per run
Needs 0 KB of memory (max 4 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call10 ms74.5%
FlakyReportTest.test_windowapps/projects/tests.py:639 report = flaky_report(self.project, days=2)8 ms59.6%
flaky_reportapps/projects/flakiness.py:2538 ms59.6%
compute_flaky_reportapps/projects/flakiness.py:2726 ms44.7%
observations_forapps/projects/flakiness.py:169 for row in Session.objects.filter(id__in={row[4] for row in test_runs}).values_list(2 ms14.9%
QuerySet.__iter__django/db/models/query.py:3902 ms14.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms14.9%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms14.9%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms14.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms14.9%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7922 ms14.9%
SQLCompiler.get_from_clausedjango/db/models/sql/compiler.py:11592 ms14.9%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms14.9%
Join.as_sqldjango/db/models/sql/datastructures.py:882 ms14.9%
observations_forapps/projects/flakiness.py:186 perfs = list(perfs)2 ms14.9%
QuerySet.__iter__django/db/models/query.py:3902 ms14.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms14.9%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms14.9%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms14.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms14.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms14.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms14.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms14.9%
Cursor.executepsycopg/cursor.py:1132 ms14.9%
Connection.waitpsycopg/connection.py:4952 ms14.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms14.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms14.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms14.9%
observations_forapps/projects/flakiness.py:189 for row in Profile.objects.filter(id__in={row[3] for row in perfs}).values_list(2 ms14.9%
QuerySet.__iter__django/db/models/query.py:3902 ms14.9%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms14.9%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms14.9%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms14.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms14.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms14.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms14.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms14.9%
Cursor.executepsycopg/cursor.py:1132 ms14.9%
Connection.waitpsycopg/connection.py:4952 ms14.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms14.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3182 ms14.9%
compute_flaky_reportapps/projects/flakiness.py:2682 ms14.9%
failing_test_idsapps/projects/flakiness.py:209 .values_list("test_id", flat=True)2 ms14.9%
QuerySet.values_listdjango/db/models/query.py:14582 ms14.9%
QuerySet._valuesdjango/db/models/query.py:14092 ms14.9%
Query.set_valuesdjango/db/models/sql/query.py:26052 ms14.9%
Query.add_fieldsdjango/db/models/sql/query.py:22662 ms14.9%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms14.9%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms14.9%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms14.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms14.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms14.9%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms14.9%
Cursor.executepsycopg/cursor.py:1132 ms14.9%
Connection.waitpsycopg/connection.py:4952 ms14.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms14.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms14.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms14.9%
teardown3 ms19.8%
TestCase.tearDownClassdjango/test/testcases.py:1455 conn.close()2 ms13.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms13.2%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3552 ms13.2%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:3962 ms13.2%
Connection.closepsycopg/connection.py:2012 ms13.2%
Estimated from 8 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/projects/flakiness.py:209
.values_list("test_id", flat=True)
failing_test_ids
· Database
|
2 ms |
|
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
|
2 ms |
|
apps/projects/flakiness.py:186
perfs = list(perfs)
observations_for
· Database
|
2 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
|
2 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.05 ms |
| _template_string_if_invalid_marker function | 0.05 ms |
| _live_server_helper function | 0.03 ms |
| _django_db_marker function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
13 queries · 4 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/projects/tests.py:639
|
8 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
2 ms |
|
teardown tearDownClass
django/test/testcases.py:1455
|
2 ms |
| teardown pytest internals | 0.90 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 | 14 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 13 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 7 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 12 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 7 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 12 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 11 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 17 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 8 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 13 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 13 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 14 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 14 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 8 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 14 ms | Profile |