From 305fa6cb1f818d35311bc2ebb296cccc87c15cb1 Mon Sep 17 00:00:00 2001 From: repo-worker-tmp-code-b Date: Sat, 14 Nov 2026 08:00:25 -0600 Subject: [PATCH] fix(pm-stack): ignore bun .bun cache dir in claimant install no-write assertion (#9532) --- pm-stack/opencode-claimant/test/install.test.mjs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pm-stack/opencode-claimant/test/install.test.mjs b/pm-stack/opencode-claimant/test/install.test.mjs index 2eb742bf6b..9e6df17724 100644 --- a/pm-stack/opencode-claimant/test/install.test.mjs +++ b/pm-stack/opencode-claimant/test/install.test.mjs @@ -55,7 +55,14 @@ function runInstaller(home, args) { async function expectNoWrites(stores) { expect(await readFile(stores.defaultStore, "utf8")).toBe(stores.original); expect(await readFile(stores.explicitStore, "utf8")).toBe(stores.original); - expect(await readdir(stores.home)).toEqual([ + // Bun itself may drop a `.bun` cache/state directory into HOME when it + // runs the installer (observed on CI runners where bun is installed under + // ~/.bun); that is a runtime artifact, not an installer write, so it is + // excluded from the no-write assertion. See developing-today/code#9532. + const homeEntries = (await readdir(stores.home)).filter( + (name) => name !== ".bun", + ); + expect(homeEntries).toEqual([ ".config", "explicit-store.json", ]); expect(await readdir(stores.defaultDir)).toEqual([