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

fix: resolve the upscale argv test's reference path with fileURLToPath so Windows CI can stat it (#6511)

[._.]/ Adam Eivy0d0c96447979
diff --git a/server/services/videoGen/renderArgsUpscale.test.js b/server/services/videoGen/renderArgsUpscale.test.js
index d39de6fba6..89e583e537 100644
--- a/server/services/videoGen/renderArgsUpscale.test.js
+++ b/server/services/videoGen/renderArgsUpscale.test.js
@@ -1,4 +1,5 @@
import { describe, expect, it, vi } from 'vitest';
+import { fileURLToPath } from 'url';
// The generative-upscale runtimes are BYO-venv checkouts that do not exist on
// CI (and are the capability gate that keeps #6511 off until #6512/#6513 land),
@@ -16,10 +17,11 @@ vi.mock('./runtimes.js', async (importOriginal) => ({
const { buildArgs, buildLtxUpscaleArgs } = await import('./renderArgs.js');
const runtimes = await import('./runtimes.js');
-// An existing file the builder can stat as the IC reference. `import.meta.url`
-// resolves to this test itself, so nothing about the developer's install leaks
-// into the fixture.
-const REFERENCE = new URL(import.meta.url).pathname;
+// An existing file the builder can stat as the IC reference: this test itself,
+// so nothing about the developer's install leaks into the fixture.
+// fileURLToPath, NOT `new URL(...).pathname` — the latter yields `/D:/a/...` on
+// Windows, which existsSync rejects.
+const REFERENCE = fileURLToPath(import.meta.url);
const upscale = (extra = {}) => ({
runtime: 'ltx25',