Tests / apps/orgs/tests.py
SignupTest::test_github_login_names_it
First seen 1 month, 1 week ago in 78a4357
CI
github-actions:test
15 runs
Average
18 ms
median 18 ms
max 38 ms
max 38 ms
Phases
Setup 10 ms
Call 8 ms
Teardown 0.14 ms
Categories
Database 17 ms
Password hashing 0.12 ms
Other (Libraries, pytest, Unsampled) 1 ms
11 database queries per run
Needs 1 KB of memory (max 4 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup7 ms49.9%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()6 ms42.8%
TestCase._enter_atomicsdjango/test/testcases.py:13966 ms42.8%
Atomic.__enter__django/db/transaction.py:1986 ms42.8%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4546 ms42.8%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3036 ms42.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:266 ms42.8%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2796 ms42.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:266 ms42.8%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2566 ms42.8%
DatabaseWrapper.get_new_connectionft/db/postgresql/base.py:39 return super().get_new_connection(conn_params)6 ms42.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:266 ms42.8%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3336 ms42.8%
Connection.connectpsycopg/connection.py:1096 ms42.8%
wait_connpsycopg/waiting.py:1414 ms28.5%
EpollSelector.select<stdlib>/selectors.py:4524 ms28.5%
wait_connpsycopg/waiting.py:1452 ms14.3%
BaseConnection._connect_genpsycopg/_connection_base.py:4392 ms14.3%
call7 ms49.2%
SignupTest.test_github_login_names_itapps/orgs/tests.py:44 organization = ensure_organization(user, sociallogin)5 ms36.9%
ensure_organizationapps/orgs/models.py:126 membership = Membership.objects.filter(user=user).select_related("organization").order_by("id").first()2 ms12.3%
QuerySet.firstdjango/db/models/query.py:11452 ms12.3%
QuerySet.__iter__django/db/models/query.py:3902 ms12.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms12.3%
ModelIterable.__iter__django/db/models/query.py:952 ms12.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms12.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms12.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms12.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms12.3%
Cursor.executepsycopg/cursor.py:1132 ms12.3%
Connection.waitpsycopg/connection.py:4952 ms12.3%
ensure_organizationapps/orgs/models.py:1312 ms12.3%
unique_slugapps/orgs/models.py:46 while slug in reserved or taken.filter(slug=slug).exists():2 ms12.3%
QuerySet.existsdjango/db/models/query.py:13372 ms12.3%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms12.3%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms12.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms12.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms12.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms12.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms12.3%
Cursor.executepsycopg/cursor.py:1132 ms12.3%
Connection.waitpsycopg/connection.py:4952 ms12.3%
ensure_organizationapps/orgs/models.py:133 Membership.objects.create(organization=organization, user=user, role=Membership.Role.OWNER)2 ms12.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms12.3%
QuerySet.createdjango/db/models/query.py:6692 ms12.3%
Model.savedjango/db/models/base.py:8742 ms12.3%
Model.save_basedjango/db/models/base.py:9392 ms12.3%
SignupTest.test_github_login_names_itapps/orgs/tests.py:462 ms12.3%
ensure_organizationapps/orgs/models.py:126 membership = Membership.objects.filter(user=user).select_related("organization").order_by("id").first()2 ms12.3%
QuerySet.firstdjango/db/models/query.py:11452 ms12.3%
QuerySet.__iter__django/db/models/query.py:3902 ms12.3%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms12.3%
ModelIterable.__iter__django/db/models/query.py:952 ms12.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms12.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms12.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms12.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms12.3%
Cursor.executepsycopg/cursor.py:1132 ms12.3%
Connection.waitpsycopg/connection.py:4952 ms12.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms12.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms12.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms12.3%
Estimated from 11 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
ft/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection
· Database
|
6 ms |
|
apps/orgs/models.py:126
membership = Membership.objects.filter(user=user).select_related("organization").order_by("id").first()
ensure_organization
· Database
|
3 ms |
|
apps/orgs/models.py:46
while slug in reserved or taken.filter(slug=slug).exists():
unique_slug
· Database
|
2 ms |
|
apps/orgs/models.py:133
Membership.objects.create(organization=organization, user=user, role=Membership.Role.OWNER)
ensure_organization
· Database
|
2 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_SignupTest class | 6 ms |
| _django_setup_unittest class | 0.15 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _django_db_marker function | 0.03 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_clear_site_cache function | 0.02 ms |
| _django_set_urlconf function | 0.02 ms |
| _live_server_helper function | 0.02 ms |
| monkeypatch function | 0.01 ms |
Database
11 queries · 4 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/orgs/tests.py:44
|
7 ms |
|
setup setUpClass
django/test/testcases.py:1423
|
6 ms |
| setup pytest internals | 1 ms |
Reliability
15 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 15 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 14 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 20 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 12 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 17 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 12 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 18 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 15 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 20 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 12 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 20 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 19 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 19 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 38 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 14 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 22 ms | Profile |