flakytest.dev anze3db fedidevs
Tests / confs/tests.py

TestResolveLegacyAccountsAndPosts::test_creates_account_when_neither_url_nor_pair_match

First seen 3 weeks ago in 0c23747
CI github-actions:test 11 runs
Average
43 ms
median 40 ms
max 71 ms
Phases
Setup 17 ms Call 25 ms Teardown 0.30 ms
Categories
Database 40 ms App code 0.11 ms Other (pytest, Libraries, Unsampled) 3 ms

12 database queries per run

Needs 1 KB of memory (max 12 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
setup22 ms40.6%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()19 ms36.5%
TestCase._enter_atomicsdjango/test/testcases.py:139919 ms36.5%
Atomic.__enter__django/db/transaction.py:21019 ms36.5%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45419 ms36.5%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30419 ms36.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2619 ms36.5%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27919 ms36.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2619 ms36.5%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25619 ms36.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2619 ms36.5%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34519 ms36.5%
Connection.connectpsycopg/connection.py:10919 ms36.5%
wait_connpsycopg/waiting.py:14113 ms24.3%
EpollSelector.select<stdlib>/selectors.py:45213 ms24.3%
wait_connpsycopg/waiting.py:1456 ms12.2%
BaseConnection._connect_genpsycopg/_connection_base.py:4396 ms12.2%
call31 ms58.8%
TestResolveLegacyAccountsAndPosts.test_creates_account_when_neither_url_nor_pair_matchconfs/tests.py:302 resolve = _legacy_migration()._resolve_accounts(22 ms42.0%
_resolve_accountsconfs/migrations/0033_remove_legacy_conference_tables.py:22715 ms27.3%
_index_accountsconfs/migrations/0033_remove_legacy_conference_tables.py:194 for account in accounts:15 ms27.3%
QuerySet.__iter__django/db/models/query.py:43915 ms27.3%
QuerySet._fetch_alldjango/db/models/query.py:226215 ms27.3%
ModelIterable.__iter__django/db/models/query.py:10315 ms27.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162515 ms27.3%
CursorWrapper.executedjango/db/backends/utils.py:7915 ms27.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9215 ms27.3%
CursorWrapper._executedjango/db/backends/utils.py:10515 ms27.3%
Cursor.executepsycopg/cursor.py:11315 ms27.3%
Connection.waitpsycopg/connection.py:49515 ms27.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2051 ms2.1%
BaseCursor._convert_querypsycopg/_cursor_base.py:4651 ms2.1%
PostgresClientQuery.convertpsycopg/_queries.py:2891 ms2.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms2.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms2.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms2.1%
_resolve_accountsconfs/migrations/0033_remove_legacy_conference_tables.py:250 account_model.objects.bulk_create(to_create, ignore_conflicts=True, batch_size=IN_CHUNK_SIZE)3 ms6.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms6.3%
QuerySet.bulk_createdjango/db/models/query.py:9003 ms6.3%
QuerySet._batched_insertdjango/db/models/query.py:21793 ms6.3%
QuerySet._insertdjango/db/models/query.py:21413 ms6.3%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19362 ms4.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.2%
Cursor.executepsycopg/cursor.py:1132 ms4.2%
Connection.waitpsycopg/connection.py:4952 ms4.2%
_resolve_accountsconfs/migrations/0033_remove_legacy_conference_tables.py:233 for account in _filter_by_pairs(lookup, "account_id", "instance", chunk):2 ms4.2%
QuerySet.__iter__django/db/models/query.py:4392 ms4.2%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms4.2%
ModelIterable.__iter__django/db/models/query.py:1032 ms4.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms4.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.2%
Cursor.executepsycopg/cursor.py:1132 ms4.2%
Connection.waitpsycopg/connection.py:4952 ms4.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms4.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms4.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms4.2%
_resolve_accountsconfs/migrations/0033_remove_legacy_conference_tables.py:2531 ms2.1%
_index_accountsconfs/migrations/0033_remove_legacy_conference_tables.py:194 for account in accounts:1 ms2.1%
QuerySet.__iter__django/db/models/query.py:4391 ms2.1%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms2.1%
ModelIterable.__iter__django/db/models/query.py:1031 ms2.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms2.1%
CursorWrapper.executedjango/db/backends/utils.py:791 ms2.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms2.1%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms2.1%
Cursor.executepsycopg/cursor.py:1131 ms2.1%
Connection.waitpsycopg/connection.py:4951 ms2.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms2.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms2.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms2.1%
_resolve_accountsconfs/migrations/0033_remove_legacy_conference_tables.py:256 for account in _filter_by_pairs(lookup, "account_id", "instance", chunk):1 ms2.1%
QuerySet.__iter__django/db/models/query.py:4391 ms2.1%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms2.1%
ModelIterable.__iter__django/db/models/query.py:1031 ms2.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms2.1%
CursorWrapper.executedjango/db/backends/utils.py:791 ms2.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms2.1%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms2.1%
Cursor.executepsycopg/cursor.py:1131 ms2.1%
Connection.waitpsycopg/connection.py:4951 ms2.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms2.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms2.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms2.1%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()4 ms8.4%
TestCase._fixture_setupdjango/test/testcases.py:14814 ms8.4%
TestCase._enter_atomicsdjango/test/testcases.py:13994 ms8.4%
Atomic.__enter__django/db/transaction.py:2234 ms8.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:264 ms8.4%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4004 ms8.4%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3674 ms8.4%
CursorWrapper.executedjango/db/backends/utils.py:794 ms8.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms8.4%
CursorWrapper._executedjango/db/backends/utils.py:1034 ms8.4%
Cursor.executepsycopg/cursor.py:1134 ms8.4%
Connection.waitpsycopg/connection.py:4954 ms8.4%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()4 ms8.4%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms4.2%
TestCase._should_check_constraintsdjango/test/testcases.py:15062 ms4.2%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5042 ms4.2%
Cursor.executepsycopg/cursor.py:1132 ms4.2%
Connection.waitpsycopg/connection.py:4952 ms4.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms4.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms4.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms4.2%
TestCase._fixture_teardowndjango/test/testcases.py:14981 ms2.1%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4951 ms2.1%
CursorWrapper.executedjango/db/backends/utils.py:791 ms2.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms2.1%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms2.1%
Cursor.executepsycopg/cursor.py:1131 ms2.1%
Connection.waitpsycopg/connection.py:4951 ms2.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms2.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms2.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms2.1%
TestCase._fixture_teardowndjango/test/testcases.py:15001 ms2.1%
TestCase._rollback_atomicsdjango/test/testcases.py:14081 ms2.1%
Atomic.__exit__django/db/transaction.py:2981 ms2.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms2.1%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4301 ms2.1%
Estimated from 48 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

confs/migrations/0033_remove_legacy_conference_tables.py:194
for account in accounts:
_index_accounts · Database
16 ms
confs/migrations/0033_remove_legacy_conference_tables.py:250
account_model.objects.bulk_create(to_create, ignore_conflicts=True, batch_size=IN_CHUNK_SIZE)
_resolve_accounts · Database
3 ms
confs/migrations/0033_remove_legacy_conference_tables.py:233
for account in _filter_by_pairs(lookup, "account_id", "instance", chunk):
_resolve_accounts · Database
2 ms
confs/migrations/0033_remove_legacy_conference_tables.py:256
for account in _filter_by_pairs(lookup, "account_id", "instance", chunk):
_resolve_accounts · Database
1 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestResolveLegacyAccountsAndPosts class 18 ms
_django_setup_unittest class 2 ms
_template_string_if_invalid_marker function 0.07 ms
_django_db_marker function 0.06 ms
_django_isolate_apps function 0.06 ms
_dj_autoclear_mailbox function 0.06 ms
_live_server_helper function 0.06 ms
_django_set_urlconf function 0.06 ms
_django_clear_site_cache function 0.05 ms
monkeypatch function 0.03 ms

Database

12 queries · 26 ms
No repeated queries.

Biggest pieces of work

call test body
confs/tests.py:302
22 ms
setup setUpClass
django/test/testcases.py:1426
19 ms
call _pre_setup
django/test/testcases.py:1167
4 ms
call _post_teardown
django/test/testcases.py:1243
4 ms
setup pytest internals 2 ms

Reliability

12 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 12 results, oldest first in the strip
When Environment Outcome Duration Commit
7 hours ago CI github-actions:test passed 53 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 24 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 40 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 35 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 30 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 44 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 50 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 26 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 71 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 62 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 32 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 17 ms 0c23747 main Run