From patchwork Thu Feb 12 21:16:19 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1844 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770931027; bh=QXpei45D/oI6x+3tg5WyiWzGnZO16Ui8u/TkWtojetg=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=l6zvKoTLxR3J5TYuTc0ciJeFwzaGTwVD7Gd1GCVOPRJGJTJP07ekHpnJhmO/KgGXg BOt3FR6CL79MiquOa0K/TwP2oiwgKXfn1MDd+UROY0kPGc/kMquQWjRz+l1V/quOn6 PCbnk3nbcEuIE1KxQ6m1te9nFtYtqZkIdrZyfGUOVVfKtPwbqeL5J00dtTb185Dcm2 r81dwPkhfMJQWgfjX9IZSvpWOksoJd2dNfRudmSw0HBYEO+OK44EVci2trsz9QJxZH veQLd8IdIxpjGOoR8WNNDqBfYLqTqPPSzUO5/H+NPivkheTJ7yFqBIj9C+sCnzbYrM igFmB02tmFsAQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 58AF369AE9 for ; Thu, 12 Feb 2026 14:17:07 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id o1eApOIqIcbx for ; Thu, 12 Feb 2026 14:17:07 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770931027; bh=QXpei45D/oI6x+3tg5WyiWzGnZO16Ui8u/TkWtojetg=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=l6zvKoTLxR3J5TYuTc0ciJeFwzaGTwVD7Gd1GCVOPRJGJTJP07ekHpnJhmO/KgGXg BOt3FR6CL79MiquOa0K/TwP2oiwgKXfn1MDd+UROY0kPGc/kMquQWjRz+l1V/quOn6 PCbnk3nbcEuIE1KxQ6m1te9nFtYtqZkIdrZyfGUOVVfKtPwbqeL5J00dtTb185Dcm2 r81dwPkhfMJQWgfjX9IZSvpWOksoJd2dNfRudmSw0HBYEO+OK44EVci2trsz9QJxZH veQLd8IdIxpjGOoR8WNNDqBfYLqTqPPSzUO5/H+NPivkheTJ7yFqBIj9C+sCnzbYrM igFmB02tmFsAQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4759769ABF for ; Thu, 12 Feb 2026 14:17:07 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770931026; bh=h0hFa0WhfNf2y33VSmEEJsuKxAjUArCr5DWH7wfjHnM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fUCE9mZk/zmbOOCXxoAzud2xpEktJjdo1bim+XubMWZTLAkNROugu4Txew1ii99xZ hAlFtKtaSHObJxSa6/6QZStDxWWCbZnQiBuyoSwlcSOqQLU5umLdKR46qrY8p32Alj fL243+a1WQ9FltCsS9pvbP6HPgKk5noTv/bAHYinph+cyYCtIsXb2siNn5tHC3sti0 XGsBaqW/lg0Ug+qqhWeoRoKFnio7FYa7oHtsfzubXjuiv2wvTPQM0+4LlDKdjaC3Od kBsuKlDmHogab/WwY96MYRVVbPS12rYTEQOvI58uHVoLvDtMiA17U7K6r7LNbzD+Th N6dyaEph3tg5w== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4A3BC69ABB; Thu, 12 Feb 2026 14:17:06 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id iZisG3UIl0WX; Thu, 12 Feb 2026 14:17:06 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770931022; bh=Mf1SGI4y877Y45kFdUYiXlo3kjr7iICM2Qz5QN2GGEI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hcpUuuHp21s8ZbXelsFB5hjlAcyxwlv6/3fzEoCIkrsjwJSS2uUpO5oGtY2OXPwFQ gQ4YkuxPtVQnPTTr4vUfQrA9D4J/TU/X5LDEzJlaoWehhqgOJLwIfICHFWoAgfTi7z 1fqixRfc7j5Gf+tUZdMMe18mvpq+W71xBGyY++UmzLMf6qhJdyS94Bd/3bsC/i4438 WxVrmgwi6dCXqpLziMk1lR/9cn20mMNSlyyMVlHda0oDSXfBh54ErXgL8f4VJbnZvU /Mm/juN1IVH+1Kdsd1SDLT65k2UPDJMpnjJttKc23kLcDVHEMpNDYatwlehzKsm94B vOACanrrNlEYQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 1B05A6994D; Thu, 12 Feb 2026 14:17:02 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Thu, 12 Feb 2026 14:16:19 -0700 Message-ID: <20260212211626.167191-7-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260212211626.167191-1-sjg@u-boot.org> References: <20260212211626.167191-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 24B4EHOYTZG2DRYEQAXZYJLNBCD3ADKX X-Message-ID-Hash: 24B4EHOYTZG2DRYEQAXZYJLNBCD3ADKX X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 6/9] pickman: Increase agent SDK buffer size to 10MB List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass The default 1MB buffer size can be exceeded when the agent processes large responses, causing a fatal error. Increase max_buffer_size to 10MB for both the cherry-pick and review agents. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- tools/pickman/agent.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/pickman/agent.py b/tools/pickman/agent.py index 129743bb329..85f8efee1df 100644 --- a/tools/pickman/agent.py +++ b/tools/pickman/agent.py @@ -24,6 +24,9 @@ SIGNAL_SUCCESS = 'success' SIGNAL_APPLIED = 'already_applied' SIGNAL_CONFLICT = 'conflict' +# Maximum buffer size for agent responses +MAX_BUFFER_SIZE = 10 * 1024 * 1024 # 10MB + # Commits that need special handling (regenerate instead of cherry-pick) # These run savedefconfig on all boards and depend on target branch # Kconfig state @@ -219,6 +222,7 @@ this means the series was already applied via a different path. In this case: options = ClaudeAgentOptions( allowed_tools=['Bash', 'Read', 'Grep'], cwd=repo_path, + max_buffer_size=MAX_BUFFER_SIZE, ) tout.info(f'Starting Claude agent to cherry-pick {len(commits)} commits...') @@ -482,6 +486,7 @@ async def run_review_agent(mr_iid, branch_name, comments, remote, options = ClaudeAgentOptions( allowed_tools=['Bash', 'Read', 'Grep', 'Edit', 'Write'], cwd=repo_path, + max_buffer_size=MAX_BUFFER_SIZE, ) tout.info(f'Starting Claude agent to {task_desc}...')