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

ClassifyStreaksTest::test_flaky_when_failed_and_passed_on_same_commit

First seen 9 hours ago in 78a4357
CI github-actions:test 5 runs
Average
2 ms
median 3 ms
max 3 ms
Phases
Setup 0.64 ms Call 2 ms Teardown 0.13 ms
Categories
Database 1.00 ms Other (Unsampled) 1 ms

5 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, 2 hours ago · open run
Show pytest frames
call2 ms67.9%
TransactionTestCase._pre_setupdjango/test/testcases.py:1164 cls._fixture_setup()0.91 ms34.0%
TestCase._fixture_setupdjango/test/testcases.py:14780.91 ms34.0%
TestCase._enter_atomicsdjango/test/testcases.py:13960.91 ms34.0%
Atomic.__enter__django/db/transaction.py:2110.91 ms34.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.91 ms34.0%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4000.91 ms34.0%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3670.91 ms34.0%
CursorWrapper.executedjango/db/backends/utils.py:790.91 ms34.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.91 ms34.0%
CursorWrapper._executedjango/db/backends/utils.py:1030.91 ms34.0%
Cursor.executepsycopg/cursor.py:1130.91 ms34.0%
Connection.waitpsycopg/connection.py:4950.91 ms34.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.91 ms34.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2860.91 ms34.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:780.91 ms34.0%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()0.91 ms34.0%
TestCase._fixture_teardowndjango/test/testcases.py:14970.91 ms34.0%
TestCase._rollback_atomicsdjango/test/testcases.py:14050.91 ms34.0%
Atomic.__exit__django/db/transaction.py:2830.91 ms34.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.91 ms34.0%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4130.91 ms34.0%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3710.91 ms34.0%
CursorWrapper.executedjango/db/backends/utils.py:790.91 ms34.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.91 ms34.0%
CursorWrapper._executedjango/db/backends/utils.py:1030.91 ms34.0%
Cursor.executepsycopg/cursor.py:1130.91 ms34.0%
Connection.waitpsycopg/connection.py:4950.91 ms34.0%
Estimated from 2 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Fixtures

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

Database

5 queries · 1 ms
No repeated queries.

Biggest pieces of work

call _pre_setup
django/test/testcases.py:1164
0.91 ms
call _post_teardown
django/test/testcases.py:1240
0.91 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
2 hours ago CI github-actions:test passed 3 ms 9caa567 main Profile
2 hours ago CI github-actions:test passed 3 ms ec75501 main Profile
9 hours ago CI github-actions:test passed 3 ms d2c12e5 main Profile
9 hours ago CI github-actions:test passed 2 ms 0b902f6 main Profile
9 hours ago CI github-actions:test passed 2 ms 78a4357 main Profile