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

TestResolveLegacyAccountsAndPosts::test_match_existing_account_by_url_when_ids_differ

First seen 1 month, 1 week ago in 0c23747
CI github-actions:test 13 runs
Average
12 ms
median 11 ms
max 24 ms
Phases
Setup 2 ms Call 10 ms Teardown 0.27 ms
Categories
Database 9 ms Factories 0.46 ms Other (Unsampled, Libraries, pytest) 3 ms

8 database queries per run

Needs 1 KB of memory (max 8 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
setup0.99 ms12.7%
call7 ms85.0%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms28.3%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms28.3%
TestCase._should_check_constraintsdjango/test/testcases.py:15062 ms28.3%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5042 ms28.3%
Cursor.executepsycopg/cursor.py:1132 ms28.3%
Connection.waitpsycopg/connection.py:4952 ms28.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms14.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms14.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms14.2%
TestResolveLegacyAccountsAndPosts.test_match_existing_account_by_url_when_ids_differconfs/tests.py:252 existing = baker.make(1 ms14.2%
makemodel_bakery/baker.py:1751 ms14.2%
Baker.makemodel_bakery/baker.py:4541 ms14.2%
Baker._makemodel_bakery/baker.py:5291 ms14.2%
Baker.generate_valuemodel_bakery/baker.py:10191 ms14.2%
gen_stringmodel_bakery/random_gen.py:2701 ms14.2%
gen_string.<locals>.<genexpr>model_bakery/random_gen.py:2701 ms14.2%
Random.choice<stdlib>/random.py:3541 ms14.2%
TestResolveLegacyAccountsAndPosts.test_match_existing_account_by_url_when_ids_differconfs/tests.py:2591 ms14.2%
_resolve_accountsconfs/migrations/0033_remove_legacy_conference_tables.py:2271 ms14.2%
_index_accountsconfs/migrations/0033_remove_legacy_conference_tables.py:194 for account in accounts:1 ms14.2%
QuerySet.__iter__django/db/models/query.py:4391 ms14.2%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms14.2%
ModelIterable.__iter__django/db/models/query.py:1031 ms14.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms14.2%
CursorWrapper.executedjango/db/backends/utils.py:791 ms14.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms14.2%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms14.2%
Cursor.executepsycopg/cursor.py:1131 ms14.2%
Connection.waitpsycopg/connection.py:4951 ms14.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms14.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms14.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms14.2%
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 ms14.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms14.2%
QuerySet.filterdjango/db/models/query.py:16761 ms14.2%
QuerySet._filter_or_excludedjango/db/models/query.py:16941 ms14.2%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17041 ms14.2%
Query.add_qdjango/db/models/sql/query.py:16811 ms14.2%
Query._add_qdjango/db/models/sql/query.py:17131 ms14.2%
Query.build_filterdjango/db/models/sql/query.py:16131 ms14.2%
Query.build_lookupdjango/db/models/sql/query.py:14251 ms14.2%
Estimated from 7 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 · Factories
1 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.32 ms
_dj_autoclear_mailbox function 0.03 ms
_django_db_marker function 0.03 ms
_django_isolate_apps function 0.03 ms
_django_set_urlconf function 0.03 ms
_live_server_helper function 0.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

8 queries · 2 ms
No repeated queries.

Biggest pieces of work

call test body
confs/tests.py:252
3 ms
call _post_teardown
django/test/testcases.py:1243
2 ms
call pytest internals 1 ms
setup pytest internals 0.99 ms

Reliability

14 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 14 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 8 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 8 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 11 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 4 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 9 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 13 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 6 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 14 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 18 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 9 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 24 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 15 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 16 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 5 ms 0c23747 main Run