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

TestParseHandle::test_valid_handles

First seen 1 month, 1 week ago in 0c23747
CI github-actions:test 13 runs
Average
20 ms
median 17 ms
max 52 ms
Phases
Setup 7 ms Call 10 ms Teardown 2 ms
Categories
Database 9 ms Other (pytest, Unsampled, Imports, Libraries, ...) 11 ms

5 database queries per run

Needs 21 KB of memory (max 248 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
setup2 ms8.4%
call19 ms85.6%
TestParseHandle.test_valid_handlesstarter_packs/tests.py:1158 self.assertEqual(parse_handle(raw), expected)12 ms53.5%
parse_handlestarter_packs/remote_follow.py:44 ascii_domain = idna.encode(domain.rstrip("."), uts46=True).decode("ascii")12 ms53.5%
encodeidna/core.py:78610 ms48.1%
alabelidna/core.py:54910 ms48.1%
check_labelidna/core.py:52110 ms48.1%
check_bidiidna/core.py:19010 ms48.1%
encodeidna/core.py:7721 ms5.3%
uts46_remapidna/core.py:6741 ms5.3%
_find_and_load<frozen importlib._bootstrap>:13531 ms5.3%
_find_and_load_unlocked<frozen importlib._bootstrap>:12491 ms5.3%
_load_unlocked<frozen importlib._bootstrap>:8571 ms5.3%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:7471 ms5.3%
SourceLoader.get_code<frozen importlib._bootstrap_external>:8761 ms5.3%
_compile_bytecode<frozen importlib._bootstrap_external>:5001 ms5.3%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()7 ms32.1%
TestCase._fixture_teardowndjango/test/testcases.py:14983 ms16.0%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4962 ms10.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms10.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms10.7%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms10.7%
Cursor.executepsycopg/cursor.py:1132 ms10.7%
Connection.waitpsycopg/connection.py:4952 ms10.7%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4951 ms5.3%
CursorWrapper.executedjango/db/backends/utils.py:791 ms5.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms5.3%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms5.3%
Cursor.executepsycopg/cursor.py:1131 ms5.3%
Connection.waitpsycopg/connection.py:4951 ms5.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms5.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms5.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms5.3%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms10.7%
TestCase._should_check_constraintsdjango/test/testcases.py:15062 ms10.7%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5042 ms10.7%
Cursor.executepsycopg/cursor.py:1132 ms10.7%
Connection.waitpsycopg/connection.py:4952 ms10.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms10.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms10.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms10.7%
TestCase._fixture_teardowndjango/test/testcases.py:15001 ms5.3%
TestCase._rollback_atomicsdjango/test/testcases.py:14081 ms5.3%
Atomic.__exit__django/db/transaction.py:2951 ms5.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms5.3%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4131 ms5.3%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3711 ms5.3%
CursorWrapper.executedjango/db/backends/utils.py:791 ms5.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms5.3%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms5.3%
Cursor.executepsycopg/cursor.py:1131 ms5.3%
Connection.waitpsycopg/connection.py:4951 ms5.3%
teardown1 ms6.1%
Estimated from 18 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/remote_follow.py:44
ascii_domain = idna.encode(domain.rstrip("."), uts46=True).decode("ascii")
parse_handle · Libraries
12 ms

Fixtures

Exact setup time
_template_string_if_invalid_marker function 0.04 ms
_django_db_marker function 0.03 ms
_dj_autoclear_mailbox function 0.03 ms
_django_isolate_apps function 0.03 ms
_live_server_helper function 0.03 ms
_django_set_urlconf function 0.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

5 queries · 4 ms
No repeated queries.

Biggest pieces of work

call test body
starter_packs/tests.py:1158
12 ms
call _post_teardown
django/test/testcases.py:1243
7 ms
setup pytest internals 2 ms
teardown pytest internals 1 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 22 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 30 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 12 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 7 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 13 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 23 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 12 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 17 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 11 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 5 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 52 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 18 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 34 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 4 ms 0c23747 main Run