Tests / apps/projects/tests.py
ClassifyStreaksTest::test_dirty_runs_are_not_the_same_commit
First seen 8 hours ago in 78a4357
CI
github-actions:test
5 runs
Average
12 ms
median 12 ms
max 15 ms
max 15 ms
Phases
Setup 10 ms
Call 2 ms
Teardown 0.16 ms
Categories
Database 11 ms
Other (Unsampled, pytest) 2 ms
5 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, an hour ago ·
open run
setup10 ms81.8%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()9 ms73.6%
TestCase._enter_atomicsdjango/test/testcases.py:13969 ms73.6%
Atomic.__enter__django/db/transaction.py:1989 ms73.6%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4549 ms73.6%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3039 ms73.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms73.6%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2799 ms73.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms73.6%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2568 ms65.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms65.5%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3338 ms65.5%
Connection.connectpsycopg/connection.py:1097 ms57.3%
wait_connpsycopg/waiting.py:1454 ms32.7%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms32.7%
wait_connpsycopg/waiting.py:1413 ms24.5%
EpollSelector.select<stdlib>/selectors.py:4523 ms24.5%
Connection.connectpsycopg/connection.py:1001 ms8.2%
conninfo_attemptspsycopg/_conninfo_attempts.py:451 ms8.2%
_resolve_hostnamespsycopg/_conninfo_attempts.py:1021 ms8.2%
getaddrinfo<stdlib>/socket.py:9981 ms8.2%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2581 ms8.2%
DatabaseWrapper.init_connection_statedjango/db/backends/postgresql/base.py:4021 ms8.2%
DatabaseWrapper._configure_connectiondjango/db/backends/postgresql/base.py:3741 ms8.2%
DatabaseWrapper._configure_timezonedjango/db/backends/postgresql/base.py:3571 ms8.2%
Cursor.executepsycopg/cursor.py:1131 ms8.2%
Connection.waitpsycopg/connection.py:4951 ms8.2%
call2 ms16.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms16.8%
TestCase._fixture_teardowndjango/test/testcases.py:14941 ms8.4%
TestCase._should_check_constraintsdjango/test/testcases.py:15031 ms8.4%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:4921 ms8.4%
Cursor.executepsycopg/cursor.py:1131 ms8.4%
Connection.waitpsycopg/connection.py:4951 ms8.4%
TestCase._fixture_teardowndjango/test/testcases.py:14971 ms8.4%
TestCase._rollback_atomicsdjango/test/testcases.py:14051 ms8.4%
Atomic.__exit__django/db/transaction.py:2861 ms8.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms8.4%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4311 ms8.4%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3751 ms8.4%
CursorWrapper.executedjango/db/backends/utils.py:791 ms8.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms8.4%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms8.4%
Cursor.executepsycopg/cursor.py:1131 ms8.4%
Connection.waitpsycopg/connection.py:4951 ms8.4%
Estimated from 12 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Fixtures
Exact setup time| _unittest_setUpClass_fixture_ClassifyStreaksTest class | 9 ms |
| _django_setup_unittest class | 0.38 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _django_db_marker function | 0.04 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _live_server_helper 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
5 queries · 1 msNo repeated queries.
Biggest pieces of work
|
setup setUpClass
django/test/testcases.py:1423
|
9 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
2 ms |
| setup pytest internals | 1 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 | |
|---|---|---|---|---|
| an hour ago | CI github-actions:test | passed | 12 ms | Profile |
| an hour ago | CI github-actions:test | passed | 12 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 15 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 9 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 13 ms | Profile |