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

TestStarterPacks::test_index_page_unknown_language_ignored

First seen 3 weeks ago in 0c23747
CI github-actions:test 11 runs
Average
152 ms
median 123 ms
max 302 ms
Phases
Setup 5 ms Call 146 ms Teardown 0.52 ms
Categories
Database 29 ms Factories 2 ms App code 0.14 ms Other (Libraries, Templates, pytest, Unsampled, ...) 121 ms

16 database queries per run

Needs 104 KB of memory (max 612 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
call101 ms98.5%
TestStarterPacks.test_index_page_unknown_language_ignoredstarter_packs/tests.py:79 response = self.client.get(reverse("starter_packs"), {"language": "not-a-language"})99 ms96.2%
Client.getdjango/test/client.py:113399 ms96.2%
RequestFactory.getdjango/test/client.py:47599 ms96.2%
RequestFactory.genericdjango/test/client.py:67199 ms96.2%
Client.requestdjango/test/client.py:109199 ms96.2%
ClientHandler.__call__django/test/client.py:17387 ms84.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6387 ms84.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10480 ms77.9%
WhiteNoise.add_fileswhitenoise/base.py:10880 ms77.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11519 ms18.3%
scantreewhitenoise/base.py:27116 ms16.0%
scantreewhitenoise/base.py:27116 ms16.0%
scantreewhitenoise/base.py:2719 ms9.2%
scantreewhitenoise/base.py:2719 ms9.2%
scantreewhitenoise/base.py:2735 ms4.6%
scantreewhitenoise/base.py:2692 ms2.3%
scantreewhitenoise/base.py:2715 ms4.6%
scantreewhitenoise/base.py:2692 ms2.3%
scantreewhitenoise/base.py:2732 ms2.3%
scantreewhitenoise/base.py:2735 ms4.6%
scantreewhitenoise/base.py:2692 ms2.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1205 ms4.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1315 ms4.6%
WhiteNoise.get_static_filewhitenoise/base.py:2172 ms2.3%
StaticFile.__init__whitenoise/responders.py:762 ms2.3%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms2.3%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms2.3%
Headers.get<stdlib>/wsgiref/headers.py:1052 ms2.3%
WhiteNoise.get_static_filewhitenoise/base.py:2112 ms2.3%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1117 ms6.9%
WhiteNoise.add_fileswhitenoise/base.py:1085 ms4.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms2.3%
scantreewhitenoise/base.py:2692 ms2.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1202 ms2.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1312 ms2.3%
WhiteNoise.get_static_filewhitenoise/base.py:2112 ms2.3%
WhiteNoise.add_fileswhitenoise/base.py:982 ms2.3%
ClientHandler.__call__django/test/client.py:18612 ms11.5%
BaseHandler.get_responsedjango/core/handlers/base.py:14212 ms11.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms11.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms11.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms11.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms11.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms11.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms11.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms11.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12312 ms11.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms11.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14512 ms11.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms11.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms11.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms11.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms11.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms11.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms11.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms11.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms11.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms11.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms11.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms11.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3809 ms9.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms9.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3809 ms9.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms9.2%
BaseHandler._get_responsedjango/core/handlers/base.py:1997 ms6.9%
starter_packsstarter_packs/views.py:160 for pack_languages in StarterPack.objects.filter(published_at__isnull=False, deleted_at__isnull=True).values_list(7 ms6.9%
QuerySet.__iter__django/db/models/query.py:4395 ms4.6%
QuerySet._fetch_alldjango/db/models/query.py:22625 ms4.6%
FlatValuesListIterable.__iter__django/db/models/query.py:3025 ms4.6%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15745 ms4.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms2.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.3%
Cursor.executepsycopg/cursor.py:1132 ms2.3%
Connection.waitpsycopg/connection.py:4952 ms2.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.3%
BaseCursor._convert_querypsycopg/_cursor_base.py:4652 ms2.3%
PostgresClientQuery.convertpsycopg/_queries.py:2892 ms2.3%
PostgresClientQuery.dumppsycopg/_queries.py:2982 ms2.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16662 ms2.3%
cursor_iterdjango/db/models/sql/compiler.py:22642 ms2.3%
cursor_iter.<locals>.<lambda>django/db/models/sql/compiler.py:22642 ms2.3%
DatabaseErrorWrapper.__call__.<locals>.innerdjango/db/utils.py:1012 ms2.3%
QuerySet.values_listdjango/db/models/query.py:15922 ms2.3%
䡽綋䣐疍M蕈瓀䡷쎉譈�赈嗨䷫䠀삅杴譈⭈᡼赈謼襈䧆욉ퟨ§褀䳁즅䩴උঐ빁ꗨő女￿뿿䑶譈ꬽဎ䠀욉ᗿໂ譈鬽ဎ䠀�ᗿາ襌䣰쒃嬠幁썝ㅅ䗯�උ०빁ꘈő듫쇿襁첵쳌쳌쳌쳌쳌쳌쳌䡕偓襈ㇷ䣛喍뻰)쀱㯨䗰蔀瓀䠼綋ㇰ㇛M蕈瓀茪⼸ࢹ冦묁ꗨő཈�譈༽ဎ䠀욉ᗿฦ΋]￿皿䠊�荈ࣄ嵛ᅢ觀쳰쳌쳌䡕噁䡓 �襈ㇷ䣛喍뻨)쀱쏨䗯蔀瓀䡎綋䣨疍M蕈瓀䤺욉赈債￿䣿잉�䷵묀ꗨő삅ぴ譈贽ဍ䰀ᗿඤ΋]￿瞿(觀㄂䣛�腈ꃄ�嬀幁썝薋ィ￿솉�女耀�멵䦨冥묁ꘈő཈�꣫쳌쳌䡕坁噁啁呁䡓˜�襉擶譈┄(�襈큅좉褆菋샡襁䇟䰿ⲍ䠑붉h￿襈觖薖hʼn䇞㞼�묀7�⥄菳㿣圏䣀붍p￿⤏灇⤏恇⤏假⤏䁇⤏ぇ⤏⁇⤏၇⤏뤇€�襌䳮憎맨§䴀ⲍ䤯얁q￿왁e薀瓛䔔荁㿤襌㇯䳶燨µ䄀ᒍ茟ূ셉Ϧ襍ᵴ섀۪赈債￿䣿붋h￿ﯨ梄搀譈┄(�㭈큅ት腈飄�嬀屁嵁幁彁썝ᗨÂ찀쳌쳌䡕坁噁啁呁䡓䄘횉襈࿻Ԩ庒ﻬ赌쁽ཁܩ䐆茿Ǹ�䄀풉셁ۤ⥅仦ⲍ䰦ノ藨梄䰀ノ襌䳦襄ﺔ￿ཁܨᄏ䠃쒃嬘屁嵁幁彁썝쳌쳌쳌쳌쳌쳌쳌䡕ދ젏ډ䞋༄览ц䞋༈览ࡆ䞋༌览ె䞋༐览၆썝쳌쳌䡕坁噁啁呁䡓˜�襉擶譈┄(�襈큅좉褆菋샡襁䇟䰿ⲍ䠑붉h￿襈觖㶖gʼn䇞㞼�묀7�⥄菳㿣圏䣀붍p￿⤏灇⤏恇⤏假⤏䁇⤏ぇ⤏⁇⤏၇⤏뤇€�襌䳮憎裡¥䴀ⲍ䤯얁q￿왁e薀瓛䔔荁㿤襌㇯䳶뇨³䤀䤃츏赁ἔ슃䴉璉䠆떍p￿譈䢽￿㳸g䡤ҋ⠥�䠀䔻痐䠒쒁˜�䅛䅜䅝䅞嵟쁒�쳌䡕坁噁啁呁䡓䄘힉襈࿻ԨᙒH赌쁵ཁة읁၆쏒䐆茿Ǹ�䄀풉셁ۤ⥅仧ⲍ䰦編朼䰀襌䳦襄ﺌ￿譁༆览䄃䚋༄览у譁ࡆ젏䎉䄈䚋༌览ృ譁၆젏䎉䠐쒃嬘屁嵁幁彁썝쳌䡕坁噁啁呁䡓˜�襈䢍￿䧿ﺉ䡤ҋ⠥�䠀䖉䓐溍㇈䇛ﶃ྿쎒圏䳀붍p￿ཁ䜩䅰⤏恇ཁ䜩䅐⤏䁇ཁ䜩䄰⤏⁇ཁ䜩䄐⤏䤇䤃츏襁맴€�襌䣿횉襌ꑚ�왂▄p￿솀ۣ襌ᵴ䢈鶋h￿襌䣿�矨栏䇿ﶃ瞾䠌綍䢐�旨栏擿譈┄(�㭈큅ት腈飄�嬀屁嵁幁彁썝쿨¾찀쳌쳌쳌쳌쳌쳌쳌䡕ދ例༄࿈诉ࡗ쨏譄ేཁ䓈例䄐줏譄ᑗཁ䓊律䄘쬏羋༜觏褆ю嚉䐈䚉䐌争䐐嚉䐔庉褘᱾썝䡕ދ例༄࿈诉ࡗ쨏譄ేཁ䓈例䄐줏譄ᑗཁ诊᡿켏ډ争褄ࡖ襄ె襄၎襄ᑖ纉崘쳃쳌쳌쳌쳌쳌䡕坁噁啁呁䡓Ę�襌삅￾䣿趉ﻈ￿펉襉䧶ノ䡤ҋ⠥�䠀䖉䓐掍䖐腁翼￿䇿鈏䣅붍ﻐ￿º㄀냔�ཌྷﺤ䤃䤃츏ཉ觏맛Ā�赈킽￾䣿떋ﻈ￿襈ꋈ�蓆퀝￾胿譈삝￾䇿万뒉䀭￿仿벉䠭￿䣿붍ﻐ￿襈븦ト腁综￿矿䠏붍p￿襈븎ト䡤ҋ⠥�䠀䔻痐䠒쒁Ę�䅛䅜䅝䅞嵟봨�쳌쳌쳌쳌䡕譈䠇例䠈젏཈䣉型䠐쨏譌ᡇཉ䳈例䤠줏譌<unknown file>2 ms2.3%
QuerySet._valuesdjango/db/models/query.py:15312 ms2.3%
Query.set_valuesdjango/db/models/sql/query.py:26352 ms2.3%
BaseHandler._get_responsedjango/core/handlers/base.py:1832 ms2.3%
BaseHandler.resolve_requestdjango/core/handlers/base.py:3152 ms2.3%
URLResolver.resolvedjango/urls/resolvers.py:6782 ms2.3%
URLPattern.resolvedjango/urls/resolvers.py:4722 ms2.3%
RoutePattern.matchdjango/urls/resolvers.py:3272 ms2.3%
TestStarterPacks.test_index_page_unknown_language_ignoredstarter_packs/tests.py:76 pack = baker.make(2 ms2.3%
makemodel_bakery/baker.py:1752 ms2.3%
Baker.makemodel_bakery/baker.py:4542 ms2.3%
Baker._makemodel_bakery/baker.py:5422 ms2.3%
Baker.instancemodel_bakery/baker.py:6592 ms2.3%
Model.savedjango/db/models/base.py:9042 ms2.3%
Model.save_basedjango/db/models/base.py:9962 ms2.3%
Model._save_tabledjango/db/models/base.py:11882 ms2.3%
Estimated from 43 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/tests.py:79
response = self.client.get(reverse("starter_packs"), {"language": "not-a-language"})
TestStarterPacks.test_index_page_unknown_language_ignored · Libraries
92 ms
starter_packs/views.py:160
for pack_languages in StarterPack.objects.filter(published_at__isnull=False, deleted_at__isnull=True).values_list(
starter_packs · Database
7 ms
starter_packs/tests.py:76
pack = baker.make(
TestStarterPacks.test_index_page_unknown_language_ignored · Database
2 ms

Fixtures

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

Database

15 queries · 7 ms
No repeated queries.

Biggest pieces of work

call test body
starter_packs/tests.py:79
101 ms

Reliability

12 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 12 results, oldest first in the strip
When Environment Outcome Duration Commit
7 hours ago CI github-actions:test passed 103 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 62 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 236 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 93 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 151 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 123 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 88 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 71 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 247 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 302 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 198 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 97 ms 0c23747 main Run