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
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, 9 hours ago ·
open run
setup2 ms17.8%
CallInfo.from_call_pytest/runner.py:3612 ms17.8%
call_and_report.<locals>.<lambda>_pytest/runner.py:2502 ms17.8%
HookCaller.__call__pluggy/_hooks.py:5122 ms17.8%
PluginManager._hookexecpluggy/_manager.py:1202 ms17.8%
_multicallpluggy/_callers.py:1212 ms17.8%
pytest_runtest_setup_pytest/runner.py:1702 ms17.8%
SetupState.setup_pytest/runner.py:5362 ms17.8%
TestCaseFunction.setup_pytest/unittest.py:2482 ms17.8%
Function.setup_pytest/python.py:17102 ms17.8%
TopRequest._fillfixtures_pytest/fixtures.py:8062 ms17.8%
FixtureRequest.getfixturevalue_pytest/fixtures.py:6302 ms17.8%
FixtureRequest._get_active_fixturedef_pytest/fixtures.py:7110.78 ms8.9%
SubRequest.__init___pytest/fixtures.py:8460.78 ms8.9%
get_scope_node_pytest/fixtures.py:1770.78 ms8.9%
Node.getparent_pytest/nodes.py:3930.78 ms8.9%
ABCMeta.__instancecheck__<frozen abc>:1190.78 ms8.9%
FixtureRequest._get_active_fixturedef_pytest/fixtures.py:7260.78 ms8.9%
FixtureDef.execute_pytest/fixtures.py:12320.78 ms8.9%
HookCaller.__call__pluggy/_hooks.py:5120.78 ms8.9%
PluginManager._hookexecpluggy/_manager.py:1200.78 ms8.9%
_multicallpluggy/_callers.py:1210.78 ms8.9%
pytest_fixture_setup_pytest/fixtures.py:13110.78 ms8.9%
call7 ms80.1%
CallInfo.from_call_pytest/runner.py:3617 ms80.1%
call_and_report.<locals>.<lambda>_pytest/runner.py:2507 ms80.1%
HookCaller.__call__pluggy/_hooks.py:5127 ms80.1%
PluginManager._hookexecpluggy/_manager.py:1207 ms80.1%
_multicallpluggy/_callers.py:1217 ms80.1%
pytest_runtest_call_pytest/runner.py:1847 ms80.1%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:6147 ms80.1%
SimpleTestCase.__call__django/test/testcases.py:3147 ms80.1%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3695 ms57.2%
TestCase.__call__<stdlib>/unittest/case.py:7475 ms57.2%
TestCase.run<stdlib>/unittest/case.py:6915 ms57.2%
TestCase._callTestMethod<stdlib>/unittest/case.py:6375 ms57.2%
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%
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: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%
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: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%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3722 ms22.9%
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%
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%
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%
Estimated from 9 samples; phase durations are exact. Frames from pytest and pluggy are
shown
.
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 msNo 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 failuresThis test hasn't failed recently.
History
Latest 5 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 9 hours ago | CI github-actions:test | passed | 9 ms | Profile |
| 9 hours ago | CI github-actions:test | passed | 24 ms | Profile |
| 9 hours ago | CI github-actions:test | passed | 15 ms | Profile |
| 14 hours ago | CI github-actions:test | passed | 16 ms | Profile |
| 14 hours ago | CI github-actions:test | passed | 5 ms | Run |