Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test(#6573): keep the persistence run-dir socket inside the afunix budget on the GitHub runner

garrytan786f97b448b9
diff --git a/package.json b/package.json
index 2db7409ae5..d03b813410 100644
--- a/package.json
+++ b/package.json
@@ -156,6 +156,7 @@
"check:layering": "bun scripts/check-layering.ts",
"check:ai-sdk-importers": "bun scripts/check-ai-sdk-importers.ts",
"check:durable-flush": "bun scripts/check-durable-flush.ts",
+ "check:schema-error-predicates": "bun scripts/check-schema-error-predicates.ts",
"check:windows-hide": "bun scripts/check-windows-hide.ts",
"check:engine-sql-ratchet": "bun scripts/check-engine-sql-ratchet.ts",
"check:chunk-visibility": "bun scripts/check-chunk-visibility.ts",
diff --git a/test/windows-ipc-long-path-6573.serial.test.ts b/test/windows-ipc-long-path-6573.serial.test.ts
index 247b0cd6cf..42f13e986a 100644
--- a/test/windows-ipc-long-path-6573.serial.test.ts
+++ b/test/windows-ipc-long-path-6573.serial.test.ts
@@ -69,7 +69,7 @@ describe.skipIf(!NATIVE)('Windows long PGLite IPC paths use the per-user run dir
beforeAll(() => {
root = mkdtempSync(join(realpathSync.native(tmpdir()), 'gb-6573-'));
priorProfile = process.env.USERPROFILE;
- const profile = join(root, 'prøfile-é');
+ const profile = join(root, 'pø-é');
mkdirSync(profile, { recursive: true });
process.env.USERPROFILE = profile;
const dataDir = join(root, 'b'.repeat(80), 'brain.pglite');
@@ -111,6 +111,7 @@ describe.skipIf(!NATIVE)('Windows long PGLite IPC paths use the per-user run dir
test('the persistence listener binds at its run-dir path and answers capabilities', async () => {
const path = persistenceSocketPathForConfig(cfg)!;
expect(path.startsWith(join(process.env.USERPROFILE!, '.gbrain', 'run', 'persistence-'))).toBe(true);
+ expect(Buffer.byteLength(path, 'utf8')).toBeLessThanOrEqual(WINDOWS_UNIX_SOCKET_PATH_MAX_BYTES);
const binding = await startPersistenceIpcServer(path, { brainId: BRAIN, dispatch: async () => ({}) });
expect(binding).not.toBeNull();
try {