CI
github-actions:test
12 runs
Average
11 ms
median 12 ms
max 13 ms
max 13 ms
Phases
Setup 0.68 ms
Call 10 ms
Teardown 0.18 ms
Categories
Database 9 ms
App code 0.25 ms
Other (Unsampled, pytest, Libraries) 2 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, 16 hours ago ·
open run
call10 ms92.7%
FlakyReportTest.test_single_testapps/projects/tests.py:643 flakiness = flakiness_for_test(self.flaky_test)3 ms30.9%
flakiness_for_testapps/projects/flakiness.py:326 history = observations_for(test.project, [test.id], since).get(test.id, [])3 ms30.9%
observations_forapps/projects/flakiness.py:165 test_runs = list(test_runs)2 ms15.5%
QuerySet.__iter__django/db/models/query.py:3902 ms15.5%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms15.5%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms15.5%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms15.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms15.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms15.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms15.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms15.5%
Cursor.executepsycopg/cursor.py:1132 ms15.5%
Connection.waitpsycopg/connection.py:4952 ms15.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2052 ms15.5%
BaseCursor._convert_querypsycopg/_cursor_base.py:4652 ms15.5%
PostgresClientQuery.convertpsycopg/_queries.py:2892 ms15.5%
observations_forapps/projects/flakiness.py:186 perfs = list(perfs)2 ms15.5%
QuerySet.__iter__django/db/models/query.py:3902 ms15.5%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms15.5%
ValuesListIterable.__iter__django/db/models/query.py:2372 ms15.5%
Query.get_compilerdjango/db/models/sql/query.py:3692 ms15.5%
FlakyReportTest.test_single_testapps/projects/tests.py:6473 ms30.9%
flakiness_for_testapps/projects/flakiness.py:326 history = observations_for(test.project, [test.id], since).get(test.id, [])3 ms30.9%
observations_forapps/projects/flakiness.py:165 test_runs = list(test_runs)2 ms15.5%
QuerySet.__iter__django/db/models/query.py:3902 ms15.5%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms15.5%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms15.5%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms15.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms15.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms15.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms15.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms15.5%
Cursor.executepsycopg/cursor.py:1132 ms15.5%
Connection.waitpsycopg/connection.py:4952 ms15.5%
observations_forapps/projects/flakiness.py:169 for row in Session.objects.filter(id__in={row[4] for row in test_runs}).values_list(2 ms15.5%
QuerySet.__iter__django/db/models/query.py:3902 ms15.5%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms15.5%
ValuesListIterable.__iter__django/db/models/query.py:2382 ms15.5%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms15.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms15.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms15.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms15.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms15.5%
Cursor.executepsycopg/cursor.py:1132 ms15.5%
Connection.waitpsycopg/connection.py:4952 ms15.5%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()3 ms30.9%
TestCase._fixture_teardowndjango/test/testcases.py:14942 ms15.5%
TestCase._should_check_constraintsdjango/test/testcases.py:15032 ms15.5%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:4922 ms15.5%
Cursor.executepsycopg/cursor.py:1132 ms15.5%
Connection.waitpsycopg/connection.py:4952 ms15.5%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms15.5%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms15.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms15.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms15.5%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms15.5%
Cursor.executepsycopg/cursor.py:1132 ms15.5%
Connection.waitpsycopg/connection.py:4952 ms15.5%
Estimated from 6 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/projects/flakiness.py:165
test_runs = list(test_runs)
observations_for
· Database
|
3 ms |
|
apps/projects/flakiness.py:186
perfs = list(perfs)
observations_for
· 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 |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.06 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_db_marker function | 0.03 ms |
| _django_clear_site_cache function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
11 queries · 5 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/projects/tests.py:643
|
7 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
3 ms |
Reliability
12 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 12 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 16 hours ago | CI github-actions:test | passed | 11 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 7 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 12 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 10 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 12 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 8 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 12 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 13 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 12 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 13 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 8 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 12 ms | Profile |