flakytest.dev anze3db flakytest
Tests / apps/orgs/tests.py

SignupTest::test_github_login_names_it

First seen 8 hours ago in 78a4357
CI github-actions:test 5 runs
Average
23 ms
median 19 ms
max 38 ms
Phases
Setup 13 ms Call 10 ms Teardown 0.15 ms
Categories
Database 21 ms Other (pytest, Libraries, Unsampled) 2 ms

11 database queries per run

Needs 0 KB of memory (max 0 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 46 minutes ago · open run
Show pytest frames
setup9 ms49.7%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()9 ms49.7%
TestCase._enter_atomicsdjango/test/testcases.py:13969 ms49.7%
Atomic.__enter__django/db/transaction.py:1989 ms49.7%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4549 ms49.7%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3039 ms49.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms49.7%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2799 ms49.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms49.7%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2569 ms49.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms49.7%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3339 ms49.7%
Connection.connectpsycopg/connection.py:1098 ms43.5%
wait_connpsycopg/waiting.py:1455 ms24.9%
BaseConnection._connect_genpsycopg/_connection_base.py:4395 ms24.9%
wait_connpsycopg/waiting.py:1414 ms18.6%
EpollSelector.select<stdlib>/selectors.py:4524 ms18.6%
Connection.connectpsycopg/connection.py:1001 ms6.2%
conninfo_attemptspsycopg/_conninfo_attempts.py:451 ms6.2%
_resolve_hostnamespsycopg/_conninfo_attempts.py:1021 ms6.2%
getaddrinfo<stdlib>/socket.py:9981 ms6.2%
call9 ms49.5%
SignupTest.test_github_login_names_itapps/orgs/tests.py:444 ms21.2%
ensure_organizationapps/orgs/models.py:126 membership = Membership.objects.filter(user=user).select_related("organization").order_by("id").first()1 ms7.1%
QuerySet.firstdjango/db/models/query.py:11451 ms7.1%
QuerySet.__iter__django/db/models/query.py:3901 ms7.1%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms7.1%
ModelIterable.__iter__django/db/models/query.py:951 ms7.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms7.1%
CursorWrapper.executedjango/db/backends/utils.py:791 ms7.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms7.1%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms7.1%
Cursor.executepsycopg/cursor.py:1131 ms7.1%
Connection.waitpsycopg/connection.py:4951 ms7.1%
ensure_organizationapps/orgs/models.py:1311 ms7.1%
unique_slugapps/orgs/models.py:46 while slug in reserved or taken.filter(slug=slug).exists():1 ms7.1%
QuerySet.existsdjango/db/models/query.py:13371 ms7.1%
Query.has_resultsdjango/db/models/sql/query.py:6811 ms7.1%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15921 ms7.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms7.1%
CursorWrapper.executedjango/db/backends/utils.py:791 ms7.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms7.1%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms7.1%
Cursor.executepsycopg/cursor.py:1131 ms7.1%
Connection.waitpsycopg/connection.py:4951 ms7.1%
ensure_organizationapps/orgs/models.py:130 organization = Organization.objects.create(1 ms7.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms7.1%
QuerySet.createdjango/db/models/query.py:6691 ms7.1%
Model.savedjango/db/models/base.py:8741 ms7.1%
Model.save_basedjango/db/models/base.py:9661 ms7.1%
Model._save_tabledjango/db/models/base.py:11671 ms7.1%
Model._do_insertdjango/db/models/base.py:12181 ms7.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms7.1%
QuerySet._insertdjango/db/models/query.py:19181 ms7.1%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19251 ms7.1%
CursorWrapper.executedjango/db/backends/utils.py:791 ms7.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms7.1%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms7.1%
Cursor.executepsycopg/cursor.py:1131 ms7.1%
Connection.waitpsycopg/connection.py:4951 ms7.1%
SignupTest.test_github_login_names_itapps/orgs/tests.py:41 user = User.objects.create_user("octo", email="[email protected]")3 ms14.1%
UserManager.create_userdjango/contrib/auth/models.py:1753 ms14.1%
UserManager._create_userdjango/contrib/auth/models.py:1621 ms7.1%
UserManager._create_user_objectdjango/contrib/auth/models.py:1501 ms7.1%
UserManager._create_userdjango/contrib/auth/models.py:1631 ms7.1%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:621 ms7.1%
Model.savedjango/db/models/base.py:8741 ms7.1%
Model.save_basedjango/db/models/base.py:9661 ms7.1%
Model._save_tabledjango/db/models/base.py:11671 ms7.1%
Model._do_insertdjango/db/models/base.py:12181 ms7.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms7.1%
QuerySet._insertdjango/db/models/query.py:19181 ms7.1%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19251 ms7.1%
CursorWrapper.executedjango/db/backends/utils.py:791 ms7.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms7.1%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms7.1%
Cursor.executepsycopg/cursor.py:1131 ms7.1%
Connection.waitpsycopg/connection.py:4951 ms7.1%
SignupTest.test_github_login_names_itapps/orgs/tests.py:461 ms7.1%
ensure_organizationapps/orgs/models.py:126 membership = Membership.objects.filter(user=user).select_related("organization").order_by("id").first()1 ms7.1%
QuerySet.firstdjango/db/models/query.py:11451 ms7.1%
QuerySet.__iter__django/db/models/query.py:3901 ms7.1%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms7.1%
ModelIterable.__iter__django/db/models/query.py:1271 ms7.1%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15771 ms7.1%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()1 ms7.1%
TestCase._fixture_teardowndjango/test/testcases.py:14951 ms7.1%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4841 ms7.1%
CursorWrapper.executedjango/db/backends/utils.py:791 ms7.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms7.1%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms7.1%
Cursor.executepsycopg/cursor.py:1131 ms7.1%
Connection.waitpsycopg/connection.py:4951 ms7.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms7.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms7.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms7.1%
Estimated from 15 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/orgs/tests.py:41
user = User.objects.create_user("octo", email="[email protected]")
SignupTest.test_github_login_names_it · Libraries
3 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
1 ms
apps/orgs/models.py:130
organization = Organization.objects.create(
ensure_organization · Database
1 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_SignupTest class 8 ms
_django_setup_unittest class 0.62 ms
_django_set_urlconf function 0.06 ms
_django_db_marker function 0.04 ms
_template_string_if_invalid_marker function 0.04 ms
_live_server_helper function 0.04 ms
_dj_autoclear_mailbox function 0.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

11 queries · 6 ms
No repeated queries.

Biggest pieces of work

setup setUpClass
django/test/testcases.py:1423
9 ms
call test body
apps/orgs/tests.py:41
8 ms
call _post_teardown
django/test/testcases.py:1240
1 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
46 minutes ago CI github-actions:test passed 19 ms 9caa567 main Profile
an hour ago CI github-actions:test passed 19 ms ec75501 main Profile
7 hours ago CI github-actions:test passed 38 ms d2c12e5 main Profile
8 hours ago CI github-actions:test passed 14 ms 0b902f6 main Profile
8 hours ago CI github-actions:test passed 22 ms 78a4357 main Profile