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

TestCreateConference::test_advanced_days_are_saved

First seen 3 weeks ago in 0c23747
CI github-actions:test 11 runs
Average
805 ms
median 774 ms
max 1.34 s
Phases
Setup 21 ms Call 784 ms Teardown 0.50 ms
Categories
Password hashing 595 ms Database 63 ms App code 0.10 ms Other (Libraries, Imports, pytest, Deep copies, ...) 146 ms

27 database queries per run

Needs 2 MB of memory (max 3 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
setup20 ms2.5%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()20 ms2.5%
TestCase._enter_atomicsdjango/test/testcases.py:139920 ms2.5%
Atomic.__enter__django/db/transaction.py:21020 ms2.5%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45420 ms2.5%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30420 ms2.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2620 ms2.5%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27920 ms2.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2620 ms2.5%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25620 ms2.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2620 ms2.5%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34520 ms2.5%
Connection.connectpsycopg/connection.py:10920 ms2.5%
wait_connpsycopg/waiting.py:14511 ms1.4%
BaseConnection._connect_genpsycopg/_connection_base.py:43911 ms1.4%
wait_connpsycopg/waiting.py:1417 ms0.9%
EpollSelector.select<stdlib>/selectors.py:4527 ms0.9%
1 smaller frames hidden
call801 ms97.5%
TestCreateConference.setUpconfs/tests.py:1044 self.user = User.objects.create_user("alice", password="pw")542 ms65.9%
UserManager.create_userdjango/contrib/auth/models.py:180542 ms65.9%
UserManager._create_userdjango/contrib/auth/models.py:167537 ms65.4%
UserManager._create_user_objectdjango/contrib/auth/models.py:160536 ms65.3%
make_passworddjango/contrib/auth/hashers.py:118536 ms65.3%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333536 ms65.3%
pbkdf2django/utils/crypto.py:93536 ms65.3%
1 smaller frames hidden
1 smaller frames hidden
TestCreateConference.test_advanced_days_are_savedconfs/tests.py:1143 self.client.post(reverse("create_conference"), data)220 ms26.7%
Client.postdjango/test/client.py:1162220 ms26.7%
RequestFactory.postdjango/test/client.py:499220 ms26.7%
RequestFactory.genericdjango/test/client.py:671220 ms26.7%
Client.requestdjango/test/client.py:1091220 ms26.7%
ClientHandler.__call__django/test/client.py:186156 ms19.0%
BaseHandler.get_responsedjango/core/handlers/base.py:142156 ms19.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56156 ms19.0%
MiddlewareMixin.__call__django/utils/deprecation.py:380156 ms19.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56156 ms19.0%
MiddlewareMixin.__call__django/utils/deprecation.py:380156 ms19.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56156 ms19.0%
MiddlewareMixin.__call__django/utils/deprecation.py:380156 ms19.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56156 ms19.0%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:123156 ms19.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56156 ms19.0%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:145156 ms19.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56156 ms19.0%
MiddlewareMixin.__call__django/utils/deprecation.py:380156 ms19.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56156 ms19.0%
MiddlewareMixin.__call__django/utils/deprecation.py:380156 ms19.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56156 ms19.0%
MiddlewareMixin.__call__django/utils/deprecation.py:380156 ms19.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56156 ms19.0%
MiddlewareMixin.__call__django/utils/deprecation.py:380156 ms19.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56156 ms19.0%
MiddlewareMixin.__call__django/utils/deprecation.py:380156 ms19.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56156 ms19.0%
MiddlewareMixin.__call__django/utils/deprecation.py:380156 ms19.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56156 ms19.0%
MiddlewareMixin.__call__django/utils/deprecation.py:380156 ms19.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56156 ms19.0%
BaseHandler._get_responsedjango/core/handlers/base.py:199155 ms18.9%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:62155 ms18.9%
create_conferenceconfs/views.py:485 if form.is_valid():127 ms15.4%
BaseForm.is_validdjango/forms/forms.py:206127 ms15.4%
BaseForm.errorsdjango/forms/forms.py:201127 ms15.4%
BaseForm.full_cleandjango/forms/forms.py:337126 ms15.3%
BaseForm._clean_fieldsdjango/forms/forms.py:345126 ms15.3%
Field._clean_bound_fielddjango/forms/fields.py:273126 ms15.3%
Field.cleandjango/forms/fields.py:210125 ms15.2%
Field.run_validatorsdjango/forms/fields.py:195125 ms15.2%
URLValidator.__call__django/core/validators.py:178125 ms15.2%
RegexValidator.__call__django/core/validators.py:52125 ms15.2%
new_method_proxy.<locals>.innerdjango/utils/functional.py:251125 ms15.2%
SimpleLazyObject._setupdjango/utils/functional.py:404125 ms15.2%
_lazy_re_compile.<locals>._compiledjango/utils/regex_helper.py:348125 ms15.2%
LazyObject.__getattribute__django/utils/functional.py:280125 ms15.2%
new_method_proxy.<locals>.innerdjango/utils/functional.py:251125 ms15.2%
SimpleLazyObject._setupdjango/utils/functional.py:404125 ms15.2%
_lazy_re_compile.<locals>._compiledjango/utils/regex_helper.py:349125 ms15.2%
compile<stdlib>/re/__init__.py:291125 ms15.2%
_compile<stdlib>/re/__init__.py:352125 ms15.2%
compile<stdlib>/re/_compiler.py:766125 ms15.2%
_code<stdlib>/re/_compiler.py:599125 ms15.2%
_compile<stdlib>/re/_compiler.py:181125 ms15.2%
_compile<stdlib>/re/_compiler.py:133125 ms15.2%
_compile<stdlib>/re/_compiler.py:181125 ms15.2%
_compile<stdlib>/re/_compiler.py:8884 ms10.2%
_optimize_charset<stdlib>/re/_compiler.py:27480 ms9.7%
2 smaller frames hidden
_compile<stdlib>/re/_compiler.py:12430 ms3.6%
_compile<stdlib>/re/_compiler.py:11621 ms2.6%
_compile<stdlib>/re/_compiler.py:8821 ms2.6%
_optimize_charset<stdlib>/re/_compiler.py:27215 ms1.9%
3 smaller frames hidden
_compile<stdlib>/re/_compiler.py:888 ms1.0%
_optimize_charset<stdlib>/re/_compiler.py:2735 ms0.6%
2 smaller frames hidden
_compile<stdlib>/re/_compiler.py:18111 ms1.4%
_compile<stdlib>/re/_compiler.py:11611 ms1.4%
_compile<stdlib>/re/_compiler.py:8811 ms1.4%
_optimize_charset<stdlib>/re/_compiler.py:2737 ms0.9%
2 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
create_conferenceconfs/views.py:505 return redirect("conference", conference_slug=conference.slug)11 ms1.4%
redirectdjango/shortcuts.py:6011 ms1.4%
resolve_urldjango/shortcuts.py:20111 ms1.4%
reversedjango/urls/base.py:9811 ms1.4%
URLResolver._reverse_with_prefixdjango/urls/resolvers.py:76211 ms1.4%
URLResolver.reverse_dictdjango/urls/resolvers.py:63311 ms1.4%
URLResolver._populatedjango/urls/resolvers.py:58411 ms1.4%
URLResolver._populatedjango/urls/resolvers.py:5845 ms0.6%
3 smaller frames hidden
create_conferenceconfs/views.py:498 form.save_m2m() # persist the selected conference_tags (icons)11 ms1.4%
BaseModelForm._save_m2mdjango/forms/models.py:55611 ms1.4%
ManyToManyField.save_form_datadjango/db/models/fields/related.py:213311 ms1.4%
create_forward_many_to_many_manager.<locals>.ManyRelatedManager.setdjango/db/models/fields/related_descriptors.py:143010 ms1.2%
create_forward_many_to_many_manager.<locals>.ManyRelatedManager.set_basedjango/db/models/fields/related_descriptors.py:140610 ms1.2%
QuerySet.__iter__django/db/models/query.py:43910 ms1.2%
QuerySet._fetch_alldjango/db/models/query.py:226210 ms1.2%
FlatValuesListIterable.__iter__django/db/models/query.py:30210 ms1.2%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:157410 ms1.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16255 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:795 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms0.6%
Cursor.executepsycopg/cursor.py:1135 ms0.6%
Connection.waitpsycopg/connection.py:4955 ms0.6%
2 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
ClientHandler.__call__django/test/client.py:17363 ms7.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6354 ms6.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10453 ms6.5%
WhiteNoise.add_fileswhitenoise/base.py:10853 ms6.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12044 ms5.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13141 ms5.0%
WhiteNoise.get_static_filewhitenoise/base.py:21730 ms3.6%
StaticFile.__init__whitenoise/responders.py:7315 ms1.9%
StaticFile.get_headerswhitenoise/responders.py:1768 ms1.0%
formatdate<stdlib>/email/utils.py:2666 ms0.7%
format_datetime<stdlib>/email/utils.py:2755 ms0.6%
1 smaller frames hidden
2 smaller frames hidden
4 smaller frames hidden
StaticFile.__init__whitenoise/responders.py:745 ms0.6%
parsedate<stdlib>/email/_parseaddr.py:1855 ms0.6%
3 smaller frames hidden
WhiteNoise.get_static_filewhitenoise/base.py:2128 ms1.0%
WhiteNoise.add_cache_headerswhitenoise/base.py:2338 ms1.0%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1767 ms0.9%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1977 ms0.9%
URLMixin.urldebug_toolbar/panels/staticfiles.py:207 ms0.9%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2357 ms0.9%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2086 ms0.7%
urlsplit<stdlib>/urllib/parse.py:5886 ms0.7%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:1159 ms1.1%
scantreewhitenoise/base.py:2717 ms0.9%
scantreewhitenoise/base.py:2715 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
BaseHandler.load_middlewaredjango/core/handlers/base.py:428 ms1.0%
import_stringdjango/utils/module_loading.py:308 ms1.0%
cached_importdjango/utils/module_loading.py:158 ms1.0%
import_module<stdlib>/importlib/__init__.py:888 ms1.0%
_gcd_import<frozen importlib._bootstrap>:13898 ms1.0%
1 smaller frames hidden
TestCreateConference.test_advanced_days_are_savedconfs/tests.py:1137 self.client.force_login(self.user)30 ms3.6%
ClientMixin.force_logindjango/test/client.py:85829 ms3.5%
ClientMixin._logindjango/test/client.py:88417 ms2.1%
ClientMixin.sessiondjango/test/client.py:81513 ms1.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:12113 ms1.6%
SessionStore.createdjango/contrib/sessions/backends/db.py:708 ms1.0%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2018 ms1.0%
SessionStore.existsdjango/contrib/sessions/backends/db.py:638 ms1.0%
QuerySet.existsdjango/db/models/query.py:14588 ms1.0%
Query.has_resultsdjango/db/models/sql/query.py:6878 ms1.0%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15938 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16258 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:798 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:928 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1058 ms1.0%
Cursor.executepsycopg/cursor.py:1138 ms1.0%
Connection.waitpsycopg/connection.py:4958 ms1.0%
SessionStore.createdjango/contrib/sessions/backends/db.py:745 ms0.6%
1 smaller frames hidden
ClientMixin._logindjango/test/client.py:8897 ms0.9%
1 smaller frames hidden
1 smaller frames hidden
TestCreateConference.test_advanced_days_are_savedconfs/tests.py:1144 conference = Conference.objects.get(name="PyCon Test")5 ms0.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:875 ms0.6%
QuerySet.getdjango/db/models/query.py:7025 ms0.6%
QuerySet.__len__django/db/models/query.py:4215 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:22625 ms0.6%
ModelIterable.__iter__django/db/models/query.py:1035 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16255 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:795 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms0.6%
Cursor.executepsycopg/cursor.py:1135 ms0.6%
Connection.waitpsycopg/connection.py:4955 ms0.6%
2 smaller frames hidden
teardown0.35 ms0.0%
Estimated from 1,337 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

confs/tests.py:1044
self.user = User.objects.create_user("alice", password="pw")
TestCreateConference.setUp · Password hashing
542 ms
confs/views.py:485
if form.is_valid():
create_conference · Libraries
127 ms
confs/tests.py:1143
self.client.post(reverse("create_conference"), data)
TestCreateConference.test_advanced_days_are_saved · Libraries
64 ms
confs/tests.py:1137
self.client.force_login(self.user)
TestCreateConference.test_advanced_days_are_saved · Database
30 ms
confs/views.py:498
form.save_m2m() # persist the selected conference_tags (icons)
create_conference · Database
11 ms
confs/views.py:505
return redirect("conference", conference_slug=conference.slug)
create_conference · Libraries
11 ms
confs/tests.py:1144
conference = Conference.objects.get(name="PyCon Test")
TestCreateConference.test_advanced_days_are_saved · Database
5 ms
confs/views.py:475
while Conference.objects.filter(slug=slug).exists():
unique_conference_slug · Database
4 ms
confs/views.py:497
conference.save()
create_conference · Database
2 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestCreateConference class 19 ms
_django_setup_unittest class 0.40 ms
_template_string_if_invalid_marker function 0.07 ms
_django_db_marker function 0.06 ms
_live_server_helper function 0.05 ms
_django_isolate_apps function 0.05 ms
_django_set_urlconf function 0.05 ms
_dj_autoclear_mailbox function 0.05 ms
_django_clear_site_cache function 0.04 ms
monkeypatch function 0.03 ms

Database

27 queries · 44 ms
No repeated queries.

Biggest pieces of work

call setUp
confs/tests.py:1044
542 ms
call test body
confs/tests.py:1143
254 ms
setup setUpClass
django/test/testcases.py:1426
20 ms
call _pre_setup
django/test/testcases.py:1167
4 ms
call _post_teardown
django/test/testcases.py:1243
1 ms

Reliability

12 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 12 results, oldest first in the strip
When Environment Outcome Duration Commit
7 hours ago CI github-actions:test passed 822 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 471 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 897 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 774 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 718 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 662 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 709 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 552 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 816 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 1.09 s 623aa3e main Profile
3 weeks ago CI github-actions:test passed 1.34 s ab6465a main Profile
3 weeks ago CI github-actions:test passed 648 ms 0c23747 main Run