From a6edcface503215308bfb1b5947256d733480735 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Fri, 11 Apr 2025 13:40:42 +0530 Subject: [PATCH] test: update constant for bundle and memory usage Over time code size has grown without any major regressions, so just accomodating them here. --- frappe/commands/test_commands.py | 2 +- frappe/core/doctype/rq_job/test_rq_job.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/commands/test_commands.py b/frappe/commands/test_commands.py index 5993754e64..b1fbd65d2d 100644 --- a/frappe/commands/test_commands.py +++ b/frappe/commands/test_commands.py @@ -901,7 +901,7 @@ class TestAddNewUser(BaseTestCommands): class TestBenchBuild(IntegrationTestCase): def test_build_assets_size_check(self): - CURRENT_SIZE = 3.3 # MB + CURRENT_SIZE = 3.4 # MB JS_ASSET_THRESHOLD = 0.01 hooks = frappe.get_hooks() diff --git a/frappe/core/doctype/rq_job/test_rq_job.py b/frappe/core/doctype/rq_job/test_rq_job.py index 91a349596d..d9090c0853 100644 --- a/frappe/core/doctype/rq_job/test_rq_job.py +++ b/frappe/core/doctype/rq_job/test_rq_job.py @@ -175,7 +175,7 @@ class TestRQJob(IntegrationTestCase): # If this starts failing analyze memory usage using memray or some equivalent tool to find # offending imports/function calls. # Refer this PR: https://github.com/frappe/frappe/pull/21467 - LAST_MEASURED_USAGE = 41 + LAST_MEASURED_USAGE = 42 if frappe.conf.use_mysqlclient: # TEMP: Add extra allowance for running two connectors, this should be rolled back before v16 LAST_MEASURED_USAGE += 2