From 00d2023d9c2267d49491d02c7b99ed82c7fc4f7f Mon Sep 17 00:00:00 2001 From: "Molecule AI Dev Engineer A (Kimi)" Date: Thu, 4 Jun 2026 08:40:09 +0000 Subject: [PATCH 1/2] fix(tests): reduce adapter.py fixture to cpConfigFilesMaxBytes-100 (#1093) adapter.py was at exactly cpConfigFilesMaxBytes, leaving zero margin. Combined with other test fixture files the total could exceed the limit. Reduce to boundary-100 to provide a stable margin. Test-only change; production constant unchanged. Co-Authored-By: Claude Opus 4.7 --- workspace-server/internal/provisioner/cp_provisioner_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workspace-server/internal/provisioner/cp_provisioner_test.go b/workspace-server/internal/provisioner/cp_provisioner_test.go index 8671c4767..acb4146b5 100644 --- a/workspace-server/internal/provisioner/cp_provisioner_test.go +++ b/workspace-server/internal/provisioner/cp_provisioner_test.go @@ -253,7 +253,7 @@ func TestStart_SendsTemplateAndGeneratedConfigFiles(t *testing.T) { if err := os.WriteFile(filepath.Join(tmpl, "config.yaml"), []byte("name: template\n"), 0o600); err != nil { t.Fatal(err) } - if err := os.WriteFile(filepath.Join(tmpl, "adapter.py"), bytes.Repeat([]byte("x"), cpConfigFilesMaxBytes), 0o600); err != nil { + if err := os.WriteFile(filepath.Join(tmpl, "adapter.py"), bytes.Repeat([]byte("x"), cpConfigFilesMaxBytes-100), 0o600); err != nil { t.Fatal(err) } if err := os.Mkdir(filepath.Join(tmpl, "prompts"), 0o700); err != nil { @@ -378,7 +378,7 @@ func TestStart_CollectsConfigFiles(t *testing.T) { } // adapter.py is within the size limit but is NOT config.yaml or prompts/, // so isCPTemplateConfigFile must exclude it from the transport. - if err := os.WriteFile(filepath.Join(tmpl, "adapter.py"), bytes.Repeat([]byte("x"), cpConfigFilesMaxBytes), 0o600); err != nil { + if err := os.WriteFile(filepath.Join(tmpl, "adapter.py"), bytes.Repeat([]byte("x"), cpConfigFilesMaxBytes-100), 0o600); err != nil { t.Fatal(err) } -- 2.52.0 From 3dd310bfe783d734d61e8386a12d8f1d0d1e9526 Mon Sep 17 00:00:00 2001 From: "Molecule AI Dev Engineer A (Kimi)" Date: Tue, 9 Jun 2026 11:41:05 +0000 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20retrigger=20CI=20=E2=80=94=20Local?= =?UTF-8?q?=20Provision=20E2E=20stub=20failed=20on=20provisioning=20timeou?= =?UTF-8?q?t=20(infra=20flake=20on=20main,=20unrelated=20to=20adapter.py?= =?UTF-8?q?=20test=20change)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- 2.52.0