CI
github-actions:test
5 runs
Average
12 ms
median 12 ms
max 13 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, 3 hours ago ·
open run
setup0.94 ms7.4%
CallInfo.from_call_pytest/runner.py:3530.94 ms7.4%
call_and_report.<locals>.<lambda>_pytest/runner.py:2450.94 ms7.4%
HookCaller.__call__pluggy/_hooks.py:5120.94 ms7.4%
PluginManager._hookexecpluggy/_manager.py:1200.94 ms7.4%
_multicallpluggy/_callers.py:1210.94 ms7.4%
pytest_runtest_setup_pytest/runner.py:1650.94 ms7.4%
SetupState.setup_pytest/runner.py:5230.94 ms7.4%
TestCaseFunction.setup_pytest/unittest.py:2270.94 ms7.4%
Function.setup_pytest/python.py:17230.94 ms7.4%
TopRequest._fillfixtures_pytest/fixtures.py:7070.94 ms7.4%
FixtureRequest.getfixturevalue_pytest/fixtures.py:5390.94 ms7.4%
FixtureRequest._get_active_fixturedef_pytest/fixtures.py:5680.94 ms7.4%
call12 ms91.4%
CallInfo.from_call_pytest/runner.py:35312 ms91.4%
call_and_report.<locals>.<lambda>_pytest/runner.py:24512 ms91.4%
HookCaller.__call__pluggy/_hooks.py:51212 ms91.4%
PluginManager._hookexecpluggy/_manager.py:12012 ms91.4%
_multicallpluggy/_callers.py:12112 ms91.4%
pytest_runtest_call_pytest/runner.py:17910 ms80.0%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:57310 ms80.0%
SimpleTestCase.__call__django/test/testcases.py:31310 ms80.0%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3687 ms57.2%
TestCase.__call__<stdlib>/unittest/case.py:7477 ms57.2%
TestCase.run<stdlib>/unittest/case.py:6917 ms57.2%
TestCase._callTestMethod<stdlib>/unittest/case.py:6377 ms57.2%
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%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1001 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%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1001 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%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1001 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%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1001 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%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3713 ms22.9%
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%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1001 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%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1001 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
shown
.
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 msNo 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 failuresThis test hasn't failed recently.
History
Latest 5 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 3 hours ago | CI github-actions:test | passed | 13 ms | Profile |
| 3 hours ago | CI github-actions:test | passed | 12 ms | Profile |
| 10 hours ago | CI github-actions:test | passed | 13 ms | Profile |
| 10 hours ago | CI github-actions:test | passed | 8 ms | Profile |
| 10 hours ago | CI github-actions:test | passed | 12 ms | Profile |