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

ProjectPagesTest::test_htmx_refresh_run_row

First seen 1 month, 1 week ago in 78a4357
CI github-actions:test 15 runs
Average
51 ms
median 58 ms
max 78 ms
Phases
Setup 0.63 ms Call 51 ms Teardown 0.17 ms
Categories
Database 27 ms Other (Libraries, pytest, Unsampled, Templates) 25 ms

28 database queries per run

Needs 90 KB of memory (max 340 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call40 ms98.0%
ProjectPagesTest.test_htmx_refresh_run_rowapps/projects/tests.py:1153 response = self.client.get(self.project.url("htmx_refresh_run_row", self.ingest_run.number))26 ms63.4%
Client.getdjango/test/client.py:112426 ms63.4%
RequestFactory.getdjango/test/client.py:47526 ms63.4%
RequestFactory.genericdjango/test/client.py:67126 ms63.4%
Client.requestdjango/test/client.py:108226 ms63.4%
ClientHandler.__call__django/test/client.py:17316 ms40.4%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6216 ms40.4%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10416 ms40.4%
WhiteNoise.add_fileswhitenoise/base.py:10816 ms40.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12016 ms40.4%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13116 ms40.4%
WhiteNoise.get_static_filewhitenoise/base.py:20814 ms34.6%
StaticFile.__init__whitenoise/responders.py:735 ms11.5%
StaticFile.get_headerswhitenoise/responders.py:1765 ms11.5%
formatdate<stdlib>/email/utils.py:2665 ms11.5%
format_datetime<stdlib>/email/utils.py:2845 ms11.5%
StaticFile.__init__whitenoise/responders.py:722 ms5.8%
StaticFile.get_file_statswhitenoise/responders.py:1632 ms5.8%
StaticFile.__init__whitenoise/responders.py:762 ms5.8%
StaticFile.__init__whitenoise/responders.py:772 ms5.8%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms5.8%
StaticFile.__init__whitenoise/responders.py:742 ms5.8%
parsedate<stdlib>/email/_parseaddr.py:1872 ms5.8%
WhiteNoise.get_static_filewhitenoise/base.py:2022 ms5.8%
ClientHandler.__call__django/test/client.py:1869 ms23.1%
BaseHandler.get_responsedjango/core/handlers/base.py:1419 ms23.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms23.1%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1309 ms23.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms23.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms23.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms23.1%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1239 ms23.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms23.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms23.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms23.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms23.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms23.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms23.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms23.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms23.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms23.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms23.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms23.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms23.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms23.1%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:349 ms23.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms23.1%
BaseHandler._get_responsedjango/core/handlers/base.py:1989 ms23.1%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:565 ms11.5%
login_required.<locals>.<lambda>django/contrib/auth/decorators.py:795 ms11.5%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2512 ms5.8%
SimpleLazyObject._setupdjango/utils/functional.py:4042 ms5.8%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:402 ms5.8%
get_userdjango/contrib/auth/middleware.py:202 ms5.8%
get_userdjango/contrib/auth/__init__.py:3112 ms5.8%
_get_user_session_keydjango/contrib/auth/__init__.py:952 ms5.8%
SessionBase.__getitem__django/contrib/sessions/backends/base.py:552 ms5.8%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2512 ms5.8%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms5.8%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms5.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms5.8%
QuerySet.getdjango/db/models/query.py:6352 ms5.8%
QuerySet.__len__django/db/models/query.py:3722 ms5.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms5.8%
ModelIterable.__iter__django/db/models/query.py:952 ms5.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms5.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms5.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms5.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms5.8%
Cursor.executepsycopg/cursor.py:1132 ms5.8%
Connection.waitpsycopg/connection.py:4952 ms5.8%
䡽綋䣐疍ṜJ蕈瓀䡷쎉譈�赈䟨䨞䠀삅杴譈⭈᡼赈謼襈䧆욉ퟨ§褀䳁즅䩴උঀ빁⾨Œ女￿뿿䑶譈鬽ဎ䠀욉ᗿາ譈謽ဎ䠀�ᗿຢ襌䣰쒃嬠幁썝ㅅ䗯�උॖ빁⿈Œ듫쇿襁첵쳌쳌쳌쳌쳌쳌쳌䡕偓襈ㇷ䣛喍뻰)쀱⯨䑭蔀瓀䠼綋ㇰ㇛ᶆJ蕈瓀茪⼸좹刯묁⾨Œ཈�譈]ဍ䠀욉ᗿถ΋]￿皿䠊�荈ࣄ嵛ᅢ觀쳰쳌쳌䡕噁䡓 �襈ㇷ䣛喍뻨)쀱돨䑬蔀瓀䡎綋䣨疍ᴎJ蕈瓀䤺욉赈債￿䣿잉䨦묀⾨Œ삅ぴ譈紽ဍ䰀ᗿඔ΋]￿瞿(觀㄂䣛�腈ꃄ�嬀幁썝薋ィ￿솉�女耀�멵䦨ꢸ刯묁⿈Œ཈�꣫쳌쳌䡕坁噁啁呁䡓˜�襉擶譈┄(�襈큅좉褆菋샡襁䇟䰿ⲍ䠑붉h￿襈觖咆gʼn䇞㞼�묀7�⥄菳㿣圏䣀붍p￿⤏灇⤏恇⤏假⤏䁇⤏ぇ⤏⁇⤏၇⤏뤇€�襌䳮憎맨§䴀ⲍ䤯얁q￿왁e薀瓛䔔荁㿤襌㇯䳶燨µ䄀ᒍ茟ূ셉Ϧ襍ᵴ섀۪赈債￿䣿붋h￿杓搀譈┄(�㭈큅ት腈飄�嬀屁嵁幁彁썝ᗨÂ찀쳌쳌䡕坁噁啁呁䡓䄘횉襈࿻Ԩ혢ﻫ赌쁽ཁܩ䐆茿Ǹ�䄀풉셁ۤ⥅仦ⲍ䰦ノ痨杓䰀ノ襌䳦襄ﺔ￿ཁܨᄏ䠃쒃嬘屁嵁幁彁썝쳌쳌쳌쳌쳌쳌쳌䡕ދ젏ډ䞋༄览ц䞋༈览ࡆ䞋༌览ె䞋༐览၆썝쳌쳌䡕坁噁啁呁䡓˜�襉擶譈┄(�襈큅좉褆菋샡襁䇟䰿ⲍ䠑붉h￿襈觖ତfʼn䇞㞼�묀7�⥄菳㿣圏䣀붍p￿⤏灇⤏恇⤏假⤏䁇⤏ぇ⤏⁇⤏၇⤏뤇€�襌䳮憎裡¥䴀ⲍ䤯얁q￿왁e薀瓛䔔荁㿤襌㇯䳶뇨³䤀䤃츏赁ἔ슃䴉璉䠆떍p￿譈䢽￿આf䡤ҋ⠥�䠀䔻痐䠒쒁˜�䅛䅜䅝䅞嵟쁒�쳌䡕坁噁啁呁䡓䄘힉襈࿻Ԩ观G赌쁵ཁة읁၆쏒䐆茿Ǹ�䄀풉셁ۤ⥅仧ⲍ䰦௨昊䰀襌䳦襄ﺌ￿譁༆览䄃䚋༄览у譁ࡆ젏䎉䄈䚋༌览ృ譁၆젏䎉䠐쒃嬘屁嵁幁彁썝쳌䡕坁噁啁呁䡓˜�襈䢍￿䧿ﺉ䡤ҋ⠥�䠀䖉䓐溍㇈䇛ﶃ྿쎒圏䳀붍p￿ཁ䜩䅰⤏恇ཁ䜩䅐⤏䁇ཁ䜩䄰⤏⁇ཁ䜩䄐⤏䤇䤃츏襁맴€�襌䣿횉襌ꑚ�왂▄p￿솀ۣ襌ᵴ䢈鶋h￿襌䣿�럨曱䇿ﶃ瞾䠌綍䢐�ꗨ曱擿譈┄(�㭈큅ት腈飄�嬀屁嵁幁彁썝쿨¾찀쳌쳌쳌쳌쳌쳌쳌䡕ދ例༄࿈诉ࡗ쨏譄ేཁ䓈例䄐줏譄ᑗཁ䓊律䄘쬏羋༜觏褆ю嚉䐈䚉䐌争䐐嚉䐔庉褘᱾썝䡕ދ例༄࿈诉ࡗ쨏譄ేཁ䓈例䄐줏譄ᑗཁ诊᡿켏ډ争褄ࡖ襄ె襄၎襄ᑖ纉崘쳃쳌쳌쳌쳌쳌䡕坁噁啁呁䡓Ę�襌삅￾䣿趉ﻈ￿펉襉䧶ノ䡤ҋ⠥�䠀䖉䓐掍䖐腁翼￿䇿鈏䣅붍ﻐ￿º㄀냔�ཌྷﺤ䤃䤃츏ཉ觏맛Ā�赈킽￾䣿떋ﻈ￿襈ꋈ�蓆퀝￾胿譈삝￾䇿万뒉䀭￿仿벉䠭￿䣿붍ﻐ￿襈ァ腁综￿矿䠏붍p￿襈ァ䡤ҋ⠥�䠀䔻痐䠒쒁Ę�䅛䅜䅝䅞嵟봨�쳌쳌쳌쳌䡕譈䠇例䠈젏཈䣉型䠐쨏譌ᡇཉ䳈例䤠줏譌<unknown file>2 ms5.8%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2512 ms5.8%
SimpleLazyObject._setupdjango/utils/functional.py:4042 ms5.8%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:402 ms5.8%
get_userdjango/contrib/auth/middleware.py:202 ms5.8%
get_userdjango/contrib/auth/__init__.py:3252 ms5.8%
AbstractBaseUser.get_session_auth_hashdjango/contrib/auth/base_user.py:1362 ms5.8%
AbstractBaseUser._get_session_auth_hashdjango/contrib/auth/base_user.py:1442 ms5.8%
salted_hmacdjango/utils/crypto.py:452 ms5.8%
new<stdlib>/hmac.py:2372 ms5.8%
__init____init__:-12 ms5.8%
HMAC.__init__<stdlib>/hmac.py:1082 ms5.8%
HMAC.__init<stdlib>/hmac.py:1132 ms5.8%
HMAC._init_openssl_hmac<stdlib>/hmac.py:1262 ms5.8%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:595 ms11.5%
htmx_refresh_run_rowapps/projects/urls.py:593 run.sessions = list(Session.objects.filter(run=run).select_related("environment").prefetch_related("profile_set"))2 ms5.8%
QuerySet.__iter__django/db/models/query.py:3902 ms5.8%
QuerySet._fetch_alldjango/db/models/query.py:20022 ms5.8%
QuerySet._prefetch_related_objectsdjango/db/models/query.py:13692 ms5.8%
prefetch_related_objectsdjango/db/models/query.py:24512 ms5.8%
prefetch_one_leveldjango/db/models/query.py:26072 ms5.8%
create_reverse_many_to_one_manager.<locals>.RelatedManager.get_prefetch_querysetsdjango/db/models/fields/related_descriptors.py:7772 ms5.8%
QuerySet.__iter__django/db/models/query.py:3902 ms5.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms5.8%
ModelIterable.__iter__django/db/models/query.py:1272 ms5.8%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15772 ms5.8%
SQLCompiler.get_convertersdjango/db/models/sql/compiler.py:15262 ms5.8%
Col.get_db_convertersdjango/db/models/expressions.py:13392 ms5.8%
Field.__eq__django/db/models/fields/__init__.py:6772 ms5.8%
htmx_refresh_run_rowapps/projects/urls.py:596 return render(request, "project_run_row.html", {"run": run, "project": project, "failed_tests": failed_tests})2 ms5.8%
renderdjango/shortcuts.py:252 ms5.8%
render_to_stringdjango/template/loader.py:622 ms5.8%
Template.renderdjango/template/backends/django.py:1072 ms5.8%
Template.renderdjango/template/base.py:1742 ms5.8%
instrumented_test_renderdjango/test/utils.py:1142 ms5.8%
NodeList.renderdjango/template/base.py:10912 ms5.8%
Node.render_annotateddjango/template/base.py:10522 ms5.8%
ForNode.renderdjango/template/defaulttags.py:2492 ms5.8%
Node.render_annotateddjango/template/base.py:10522 ms5.8%
VariableNode.renderdjango/template/base.py:11562 ms5.8%
ProjectPagesTest.setUpapps/projects/tests.py:954 self.client.force_login(self.user)9 ms23.1%
ClientMixin.force_logindjango/test/client.py:8559 ms23.1%
ClientMixin._logindjango/test/client.py:8815 ms11.5%
logindjango/contrib/auth/__init__.py:1875 ms11.5%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4342 ms5.8%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms5.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1232 ms5.8%
SessionStore.create_model_instancedjango/contrib/sessions/backends/db.py:1002 ms5.8%
<unknown function><unknown file>2 ms5.8%
Model.__init__django/db/models/base.py:5362 ms5.8%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4372 ms5.8%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1752 ms5.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms5.8%
QuerySet.getdjango/db/models/query.py:6352 ms5.8%
QuerySet.__len__django/db/models/query.py:3722 ms5.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms5.8%
ModelIterable.__iter__django/db/models/query.py:1272 ms5.8%
ClientMixin._logindjango/test/client.py:8762 ms5.8%
ClientMixin.sessiondjango/test/client.py:8122 ms5.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1212 ms5.8%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms5.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms5.8%
Atomic.__enter__django/db/transaction.py:2112 ms5.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms5.8%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms5.8%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms5.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms5.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms5.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms5.8%
ClientMixin._logindjango/test/client.py:8832 ms5.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1232 ms5.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms5.8%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms5.8%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms5.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms5.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms5.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms5.8%
Cursor.executepsycopg/cursor.py:1132 ms5.8%
Connection.waitpsycopg/connection.py:4952 ms5.8%
Estimated from 17 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/tests.py:1153
response = self.client.get(self.project.url("htmx_refresh_run_row", self.ingest_run.number))
ProjectPagesTest.test_htmx_refresh_run_row · Libraries
21 ms
apps/projects/tests.py:954
self.client.force_login(self.user)
ProjectPagesTest.setUp · Database
9 ms
apps/projects/urls.py:593
run.sessions = list(Session.objects.filter(run=run).select_related("environment").prefetch_related("profile_set"))
htmx_refresh_run_row · Database
2 ms
apps/projects/urls.py:596
return render(request, "project_run_row.html", {"run": run, "project": project, "failed_tests": failed_tests})
htmx_refresh_run_row · Templates
2 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_set_urlconf function 0.02 ms
_live_server_helper function 0.02 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.01 ms

Database

28 queries · 7 ms
No repeated queries.

Biggest pieces of work

call test body
apps/projects/tests.py:1153
26 ms
call setUp
apps/projects/tests.py:954
9 ms
call pytest internals 2 ms
call _post_teardown
django/test/testcases.py:1240
2 ms

Reliability

15 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 15 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 40 ms cb18ed3 main Profile
2 weeks, 4 days ago CI github-actions:test passed 61 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 29 ms 19dac9b main Profile
3 weeks ago CI github-actions:test passed 63 ms e141198 main Profile
1 month ago CI github-actions:test passed 30 ms 46ec2aa main Profile
1 month ago CI github-actions:test passed 61 ms afde85b main Profile
1 month ago CI github-actions:test passed 48 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 78 ms 044719a main Profile
1 month ago CI github-actions:test passed 33 ms b3fedae main Profile
1 month, 1 week ago CI github-actions:test passed 59 ms 43c4eda main Profile
1 month, 1 week ago CI github-actions:test passed 58 ms 9caa567 main Profile
1 month, 1 week ago CI github-actions:test passed 59 ms ec75501 main Profile
1 month, 1 week ago CI github-actions:test passed 64 ms d2c12e5 main Profile
1 month, 1 week ago CI github-actions:test passed 32 ms 0b902f6 main Profile
1 month, 1 week ago CI github-actions:test passed 57 ms 78a4357 main Profile