Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test: recognize Chrome updater scratch directories (#10494)

Adam Eivye6dade6242dc
diff --git a/scripts/vitestTempRootSetup.js b/scripts/vitestTempRootSetup.js
index 3b7e53908a..269fd758ff 100644
--- a/scripts/vitestTempRootSetup.js
+++ b/scripts/vitestTempRootSetup.js
@@ -25,6 +25,8 @@ const TOOLCHAIN_CACHE_PREFIXES = new Set([
// are browser-owned, not fixture data, and surface once a real-Chrome suite runs
// under this guard on Linux (#10312). Exact browser prefixes only.
'com.google.Chrome.',
+ // Chrome's component updater stages unpacked downloads in this exact prefix.
+ 'com.google.Chrome.chrome_chrome_Unpacker_BeginUnzipping.',
'.com.google.Chrome.',
'org.chromium.Chromium.',
'.org.chromium.Chromium.',
diff --git a/scripts/vitestTempRootSetup.test.js b/scripts/vitestTempRootSetup.test.js
index 820a220e98..d907024faa 100644
--- a/scripts/vitestTempRootSetup.test.js
+++ b/scripts/vitestTempRootSetup.test.js
@@ -28,13 +28,14 @@ describe('vitestTempRootSetup teardown', () => {
it('ignores browser-owned Chrome scratch directories but still fails on a leaked fixture beside them', () => {
const browserOnly = runTeardown((root) => {
- for (const name of ['com.google.Chrome.aB3dE9', '.com.google.Chrome.xY7zQ2', '.org.chromium.Chromium.k9L2mN']) {
+ for (const name of ['com.google.Chrome.aB3dE9', '.com.google.Chrome.xY7zQ2', '.org.chromium.Chromium.k9L2mN', 'com.google.Chrome.chrome_chrome_Unpacker_BeginUnzipping.AbC123']) {
mkdirSync(join(root, name));
writeFileSync(join(root, name, 'sock'), 'x');
}
});
expect(browserOnly.warnings).toEqual([]);
expect(browserOnly.exitCode).toBeUndefined();
+ expect(browserOnly.removed).toBe(true);
const withFixture = runTeardown((root) => {
mkdirSync(join(root, 'com.google.Chrome.aB3dE9'));