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

TestParseHandle::test_valid_handles

First seen 14 hours ago in 0c23747
CI github-actions:test 4 runs
Average
27 ms
median 26 ms
max 52 ms
Phases
Setup 14 ms Call 12 ms Teardown 1 ms
Categories
Database 17 ms Other (pytest, Imports, Unsampled) 11 ms

5 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, 9 hours ago · open run
Show pytest frames
setup0.99 ms18.6%
call3 ms64.5%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms43.0%
TestCase._fixture_teardowndjango/test/testcases.py:14981 ms21.5%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4961 ms21.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms21.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms21.5%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms21.5%
Cursor.executepsycopg/cursor.py:1131 ms21.5%
TestCase._fixture_teardowndjango/test/testcases.py:15001 ms21.5%
TestCase._rollback_atomicsdjango/test/testcases.py:14081 ms21.5%
Atomic.__exit__django/db/transaction.py:2981 ms21.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms21.5%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4311 ms21.5%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3751 ms21.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms21.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms21.5%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms21.5%
Cursor.executepsycopg/cursor.py:1131 ms21.5%
Connection.waitpsycopg/connection.py:4951 ms21.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms21.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms21.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms21.5%
TestParseHandle.test_valid_handlesstarter_packs/tests.py:1157 with self.subTest(raw=raw):1 ms21.5%
teardown0.90 ms16.8%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()0.90 ms16.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.90 ms16.8%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3550.90 ms16.8%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4080.90 ms16.8%
Connection.closepsycopg/connection.py:2010.90 ms16.8%
Estimated from 6 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/tests.py:1157
with self.subTest(raw=raw):
TestParseHandle.test_valid_handles · pytest
1 ms

Fixtures

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

Database

5 queries · 1 ms
No repeated queries.

Biggest pieces of work

call _post_teardown
django/test/testcases.py:1243
2 ms
call test body
starter_packs/tests.py:1157
1 ms
setup pytest internals 0.99 ms
teardown tearDownClass
django/test/testcases.py:1458
0.90 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
9 hours ago CI github-actions:test passed 5 ms d923a46 main Profile
9 hours ago CI github-actions:test passed 52 ms 82997f8 main Profile
9 hours ago CI github-actions:test passed 18 ms 623aa3e main Profile
14 hours ago CI github-actions:test passed 34 ms ab6465a main Profile
14 hours ago CI github-actions:test passed 4 ms 0c23747 main Run