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

TestResolveLegacyAccountsAndPosts::test_match_existing_account_by_url_when_ids_differ

First seen 14 hours ago in 0c23747
CI github-actions:test 4 runs
Average
16 ms
median 16 ms
max 24 ms
Phases
Setup 1 ms Call 14 ms Teardown 0.28 ms
Categories
Database 13 ms Factories 0.25 ms Other (Unsampled, Libraries, pytest) 2 ms

8 database queries per run

Needs 3 KB of memory (max 8 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 8 hours ago · open run
Show pytest frames
setup2 ms17.8%
ABCMeta.__instancecheck__<frozen abc>:1190.78 ms8.9%
call7 ms80.1%
TestResolveLegacyAccountsAndPosts.test_match_existing_account_by_url_when_ids_differconfs/tests.py:252 existing = baker.make(3 ms34.3%
makemodel_bakery/baker.py:1753 ms34.3%
Baker.makemodel_bakery/baker.py:4543 ms34.3%
Baker._makemodel_bakery/baker.py:5012 ms22.9%
Baker._skip_fieldmodel_bakery/baker.py:7551 ms11.4%
Baker._skip_fieldmodel_bakery/baker.py:7301 ms11.4%
AutoFieldMeta.__instancecheck__django/db/models/fields/__init__.py:29541 ms11.4%
Baker._makemodel_bakery/baker.py:5421 ms11.4%
Baker.instancemodel_bakery/baker.py:6591 ms11.4%
Model.savedjango/db/models/base.py:9041 ms11.4%
Model.save_basedjango/db/models/base.py:9961 ms11.4%
Model._save_tabledjango/db/models/base.py:11991 ms11.4%
Model._do_insertdjango/db/models/base.py:12511 ms11.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms11.4%
QuerySet._insertdjango/db/models/query.py:21411 ms11.4%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19361 ms11.4%
CursorWrapper.executedjango/db/backends/utils.py:791 ms11.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 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:2061 ms11.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms11.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms11.4%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms22.9%
TestCase._fixture_teardowndjango/test/testcases.py:14971 ms11.4%
TestCase._should_check_constraintsdjango/test/testcases.py:15061 ms11.4%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5041 ms11.4%
Cursor.executepsycopg/cursor.py:1131 ms11.4%
Connection.waitpsycopg/connection.py:4951 ms11.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms11.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms11.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms11.4%
TestCase._fixture_teardowndjango/test/testcases.py:15001 ms11.4%
TestCase._rollback_atomicsdjango/test/testcases.py:14081 ms11.4%
Atomic.__exit__django/db/transaction.py:2981 ms11.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms11.4%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4311 ms11.4%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3751 ms11.4%
CursorWrapper.executedjango/db/backends/utils.py:791 ms11.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 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%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms11.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms11.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms11.4%
TestResolveLegacyAccountsAndPosts.test_match_existing_account_by_url_when_ids_differconfs/tests.py:2591 ms11.4%
_resolve_accountsconfs/migrations/0033_remove_legacy_conference_tables.py:2271 ms11.4%
_index_accountsconfs/migrations/0033_remove_legacy_conference_tables.py:194 for account in accounts:1 ms11.4%
QuerySet.__iter__django/db/models/query.py:4391 ms11.4%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms11.4%
ModelIterable.__iter__django/db/models/query.py:1031 ms11.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms11.4%
CursorWrapper.executedjango/db/backends/utils.py:791 ms11.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 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:2061 ms11.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms11.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms11.4%
TestResolveLegacyAccountsAndPosts.test_match_existing_account_by_url_when_ids_differconfs/tests.py:274 self.assertEqual(Account.objects.filter(url="https://mastodon.social/@alice").count(), 1)1 ms11.4%
QuerySet.countdjango/db/models/query.py:6771 ms11.4%
Query.get_countdjango/db/models/sql/query.py:6571 ms11.4%
Query.get_aggregationdjango/db/models/sql/query.py:4721 ms11.4%
Count.resolve_expressiondjango/db/models/aggregates.py:3121 ms11.4%
Estimated from 9 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

confs/tests.py:252
existing = baker.make(
TestResolveLegacyAccountsAndPosts.test_match_existing_account_by_url_when_ids_differ · Database
3 ms
confs/migrations/0033_remove_legacy_conference_tables.py:194
for account in accounts:
_index_accounts · Database
1 ms
confs/tests.py:274
self.assertEqual(Account.objects.filter(url="https://mastodon.social/@alice").count(), 1)
TestResolveLegacyAccountsAndPosts.test_match_existing_account_by_url_when_ids_differ · Database
1 ms

Fixtures

Exact setup time
_template_string_if_invalid_marker function 0.35 ms
_dj_autoclear_mailbox function 0.35 ms
_django_db_marker function 0.03 ms
_django_isolate_apps function 0.03 ms
_django_clear_site_cache function 0.03 ms
_django_set_urlconf function 0.02 ms
_live_server_helper function 0.02 ms
monkeypatch function 0.02 ms

Database

8 queries · 3 ms
No repeated queries.

Biggest pieces of work

call test body
confs/tests.py:252
5 ms
call _post_teardown
django/test/testcases.py:1243
2 ms
setup __instancecheck__
<frozen abc>:119
0.78 ms
setup pytest internals 0.78 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 5 results, oldest first in the strip
When Environment Outcome Duration Commit
8 hours ago CI github-actions:test passed 9 ms d923a46 main Profile
8 hours ago CI github-actions:test passed 24 ms 82997f8 main Profile
8 hours ago CI github-actions:test passed 15 ms 623aa3e main Profile
13 hours ago CI github-actions:test passed 16 ms ab6465a main Profile
14 hours ago CI github-actions:test passed 5 ms 0c23747 main Run