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

TestEditStarterPack::test_edit_starter_pack_languages

First seen 1 month, 1 week ago in 0c23747
CI github-actions:test 13 runs
Average
151 ms
median 148 ms
max 285 ms
Phases
Setup 5 ms Call 145 ms Teardown 0.44 ms
Categories
Database 49 ms Other (Libraries, pytest, Deep copies, Unsampled) 101 ms

26 database queries per run

Needs 540 KB of memory (max 1 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call78 ms98.9%
TestEditStarterPack.test_edit_starter_pack_languagesstarter_packs/tests.py:234 self.client.post(34 ms43.3%
Client.postdjango/test/client.py:116234 ms43.3%
RequestFactory.postdjango/test/client.py:49934 ms43.3%
RequestFactory.genericdjango/test/client.py:67134 ms43.3%
Client.requestdjango/test/client.py:109134 ms43.3%
ClientHandler.__call__django/test/client.py:17334 ms43.3%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6334 ms43.3%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10434 ms43.3%
WhiteNoise.add_fileswhitenoise/base.py:10834 ms43.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11519 ms24.7%
scantreewhitenoise/base.py:27310 ms12.4%
scantreewhitenoise/base.py:27110 ms12.4%
scantreewhitenoise/base.py:2735 ms6.2%
scantreewhitenoise/base.py:2715 ms6.2%
scantreewhitenoise/base.py:2715 ms6.2%
scantreewhitenoise/base.py:2715 ms6.2%
scantreewhitenoise/base.py:2715 ms6.2%
scantreewhitenoise/base.py:2735 ms6.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12015 ms18.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13115 ms18.5%
WhiteNoise.get_static_filewhitenoise/base.py:21710 ms12.4%
StaticFile.__init__whitenoise/responders.py:725 ms6.2%
StaticFile.get_file_statswhitenoise/responders.py:1615 ms6.2%
__init____init__:-15 ms6.2%
FileEntry.__init__whitenoise/responders.py:2635 ms6.2%
FileEntry.stat_regular_filewhitenoise/responders.py:2765 ms6.2%
<GC>~5 ms6.2%
WhiteNoise.get_static_filewhitenoise/base.py:2125 ms6.2%
WhiteNoise.add_cache_headerswhitenoise/base.py:2335 ms6.2%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1765 ms6.2%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1975 ms6.2%
TestEditStarterPack.test_edit_starter_pack_languagesstarter_packs/tests.py:233 self.client.force_login(self.user)29 ms37.1%
ClientMixin.force_logindjango/test/client.py:85829 ms37.1%
ClientMixin._logindjango/test/client.py:88415 ms18.5%
ClientMixin.sessiondjango/test/client.py:81515 ms18.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:12115 ms18.5%
SessionStore.createdjango/contrib/sessions/backends/db.py:7410 ms12.4%
SessionStore.savedjango/contrib/sessions/backends/db.py:12710 ms12.4%
Model.savedjango/db/models/base.py:90410 ms12.4%
Model.save_basedjango/db/models/base.py:99610 ms12.4%
Model._save_tabledjango/db/models/base.py:119910 ms12.4%
Model._do_insertdjango/db/models/base.py:125110 ms12.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:8710 ms12.4%
QuerySet._insertdjango/db/models/query.py:214110 ms12.4%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:193610 ms12.4%
CursorWrapper.executedjango/db/backends/utils.py:7910 ms12.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9210 ms12.4%
CursorWrapper._executedjango/db/backends/utils.py:10510 ms12.4%
Cursor.executepsycopg/cursor.py:11310 ms12.4%
Connection.waitpsycopg/connection.py:49510 ms12.4%
SessionStore.createdjango/contrib/sessions/backends/db.py:705 ms6.2%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2015 ms6.2%
SessionStore.existsdjango/contrib/sessions/backends/db.py:635 ms6.2%
QuerySet.existsdjango/db/models/query.py:14585 ms6.2%
Query.has_resultsdjango/db/models/sql/query.py:6875 ms6.2%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15935 ms6.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16255 ms6.2%
CursorWrapper.executedjango/db/backends/utils.py:795 ms6.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms6.2%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms6.2%
Cursor.executepsycopg/cursor.py:1135 ms6.2%
Connection.waitpsycopg/connection.py:4955 ms6.2%
ClientMixin._logindjango/test/client.py:88915 ms18.5%
logindjango/contrib/auth/__init__.py:18910 ms12.4%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4375 ms6.2%
SessionStore.createdjango/contrib/sessions/backends/db.py:705 ms6.2%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2005 ms6.2%
get_random_stringdjango/utils/crypto.py:785 ms6.2%
get_random_string.<locals>.<genexpr>django/utils/crypto.py:785 ms6.2%
Random.choice<stdlib>/random.py:3545 ms6.2%
Random._randbelow_with_getrandbits<stdlib>/random.py:2495 ms6.2%
SystemRandom.getrandbits<stdlib>/random.py:9155 ms6.2%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4405 ms6.2%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1755 ms6.2%
Model.deletedjango/db/models/base.py:13315 ms6.2%
Collector.deletedjango/db/models/deletion.py:4835 ms6.2%
DeleteQuery.delete_batchdjango/db/models/sql/subqueries.py:435 ms6.2%
DeleteQuery.do_querydjango/db/models/sql/subqueries.py:255 ms6.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16255 ms6.2%
CursorWrapper.executedjango/db/backends/utils.py:795 ms6.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms6.2%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms6.2%
Cursor.executepsycopg/cursor.py:1135 ms6.2%
Connection.waitpsycopg/connection.py:4955 ms6.2%
logindjango/contrib/auth/__init__.py:1775 ms6.2%
SessionBase.__contains__django/contrib/sessions/backends/base.py:525 ms6.2%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2545 ms6.2%
SessionStore.loaddjango/contrib/sessions/backends/db.py:555 ms6.2%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:345 ms6.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:875 ms6.2%
QuerySet.getdjango/db/models/query.py:7025 ms6.2%
QuerySet.__len__django/db/models/query.py:4215 ms6.2%
QuerySet._fetch_alldjango/db/models/query.py:22625 ms6.2%
ModelIterable.__iter__django/db/models/query.py:1035 ms6.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16255 ms6.2%
CursorWrapper.executedjango/db/backends/utils.py:795 ms6.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms6.2%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms6.2%
Cursor.executepsycopg/cursor.py:1135 ms6.2%
Connection.waitpsycopg/connection.py:4955 ms6.2%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()15 ms18.5%
TestCase._fixture_setupdjango/test/testcases.py:148115 ms18.5%
TestCase._enter_atomicsdjango/test/testcases.py:139915 ms18.5%
Atomic.__enter__django/db/transaction.py:22310 ms12.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms12.4%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:40010 ms12.4%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:36710 ms12.4%
CursorWrapper.executedjango/db/backends/utils.py:7910 ms12.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9210 ms12.4%
CursorWrapper._executedjango/db/backends/utils.py:10310 ms12.4%
Cursor.executepsycopg/cursor.py:11310 ms12.4%
Connection.waitpsycopg/connection.py:49510 ms12.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:20610 ms12.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28610 ms12.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7810 ms12.4%
teardown0.26 ms0.3%
Estimated from 21 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/tests.py:234
self.client.post(
TestEditStarterPack.test_edit_starter_pack_languages · Libraries
34 ms
starter_packs/tests.py:233
self.client.force_login(self.user)
TestEditStarterPack.test_edit_starter_pack_languages · Database
29 ms

Fixtures

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

Database

26 queries · 17 ms
No repeated queries.

Biggest pieces of work

call test body
starter_packs/tests.py:233
63 ms
call _pre_setup
django/test/testcases.py:1167
15 ms
teardown pytest internals 0.20 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 79 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 119 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 285 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 86 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 181 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 148 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 92 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 151 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 95 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 69 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 210 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 206 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 241 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 100 ms 0c23747 main Run