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

StorageTest::test_snapshot_renders_like_the_whole_document

First seen 8 hours ago in 78a4357
CI github-actions:test 5 runs
Average
9 ms
median 9 ms
max 10 ms
Phases
Setup 0.65 ms Call 7 ms Teardown 0.88 ms
Categories
Database 6 ms App code 0.80 ms Other (Unsampled, Serialization, Libraries) 2 ms

9 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, an hour ago · open run
Show pytest frames
call8 ms82.9%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()4 ms41.4%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms20.7%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms20.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms20.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms20.7%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms20.7%
Cursor.executepsycopg/cursor.py:1132 ms20.7%
Connection.waitpsycopg/connection.py:4952 ms20.7%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms20.7%
TestCase._rollback_atomicsdjango/test/testcases.py:14052 ms20.7%
Atomic.__exit__django/db/transaction.py:2862 ms20.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms20.7%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms20.7%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms20.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms20.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms20.7%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms20.7%
Cursor.executepsycopg/cursor.py:1132 ms20.7%
Connection.waitpsycopg/connection.py:4952 ms20.7%
StorageTest.test_snapshot_renders_like_the_whole_documentapps/projects/tests.py:1211 snapshot = TestSnapshot.objects.get(test=self.test, environment=self.second.environment)2 ms20.7%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2572 ms20.7%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2222 ms20.7%
QuerySet.getdjango/db/models/query.py:6352 ms20.7%
QuerySet.__len__django/db/models/query.py:3722 ms20.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms20.7%
ModelIterable.__iter__django/db/models/query.py:1272 ms20.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15772 ms20.7%
SQLCompiler.get_convertersdjango/db/models/sql/compiler.py:15252 ms20.7%
StorageTest.test_snapshot_renders_like_the_whole_documentapps/projects/tests.py:12132 ms20.7%
load_documentapps/projects/profiles.py:112 return json.loads(gzip.decompress(bytes(part.document)))2 ms20.7%
loads<stdlib>/json/__init__.py:3712 ms20.7%
JSONDecoder.decode<stdlib>/json/decoder.py:3582 ms20.7%
Estimated from 4 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/tests.py:1211
snapshot = TestSnapshot.objects.get(test=self.test, environment=self.second.environment)
StorageTest.test_snapshot_renders_like_the_whole_document · Database
2 ms
apps/projects/profiles.py:112
return json.loads(gzip.decompress(bytes(part.document)))
load_document · Serialization
2 ms

Fixtures

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

Database

9 queries · 3 ms
No repeated queries.

Biggest pieces of work

call test body
apps/projects/tests.py:1211
4 ms
call _post_teardown
django/test/testcases.py:1240
4 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
an hour ago CI github-actions:test passed 9 ms 9caa567 main Profile
an hour ago CI github-actions:test passed 10 ms ec75501 main Profile
8 hours ago CI github-actions:test passed 10 ms d2c12e5 main Profile
8 hours ago CI github-actions:test passed 6 ms 0b902f6 main Profile
8 hours ago CI github-actions:test passed 9 ms 78a4357 main Profile