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: derive the rigging interpreter path so the suite passes on Windows

Adam Eivyfdd12ada3e37
diff --git a/server/services/rigging/readiness.test.js b/server/services/rigging/readiness.test.js
index 47b7f564ac..f0947e26fe 100644
--- a/server/services/rigging/readiness.test.js
+++ b/server/services/rigging/readiness.test.js
@@ -3,6 +3,7 @@ import {
RIGGING_INSTALL_COMMAND,
RIGGING_MODULE_REQUIREMENT,
RIGGING_RUNTIME,
+ resolveRiggingPython,
} from './runtime.js';
import {
__resetRiggingReadinessCache,
@@ -12,9 +13,9 @@ import {
riggingUnavailableReason,
} from './readiness.js';
-const FAKE_ROOT = '/opt/conda';
-const FAKE_PYTHON = `${FAKE_ROOT}/envs/${RIGGING_RUNTIME.condaEnv}/bin/python`;
-const ENV = { CONDA_ROOT: FAKE_ROOT };
+// Derived, not a forward-slash literal — `join()` emits backslashes on Windows.
+const ENV = { CONDA_ROOT: '/opt/conda' };
+const FAKE_PYTHON = resolveRiggingPython({ exists: () => true, env: ENV });
const READY_HOST = { supportedPlatform: true, platform: 'linux', python: FAKE_PYTHON, probe: { status: 'ok', version: '4.2.0' } };
describe('riggingUnavailableReason', () => {
diff --git a/server/services/rigging/runtime.test.js b/server/services/rigging/runtime.test.js
index 3d556cb3bf..6e2a4f3c13 100644
--- a/server/services/rigging/runtime.test.js
+++ b/server/services/rigging/runtime.test.js
@@ -1,4 +1,5 @@
import { describe, expect, it } from 'vitest';
+import { posixPath } from '../../lib/testHelper.js';
import {
BLENDER_MODULE_PROBE_SOURCE,
RIGGING_INSTALL_COMMAND,
@@ -11,9 +12,11 @@ import {
// A conda root that exists only in this test's `exists` predicate — no real install is
// consulted, so the resolver's behavior is the same on any developer's machine and CI.
-const FAKE_ROOT = '/opt/conda';
-const FAKE_PYTHON = `${FAKE_ROOT}/envs/${RIGGING_RUNTIME.condaEnv}/bin/python`;
-const ENV = { CONDA_ROOT: FAKE_ROOT };
+// The interpreter path is DERIVED rather than written as a forward-slash literal: the
+// resolver composes it with `join()`, which emits backslashes on Windows (the same trap
+// `condaEnv.test.js` documents).
+const ENV = { CONDA_ROOT: '/opt/conda' };
+const FAKE_PYTHON = resolveRiggingPython({ exists: () => true, env: ENV });
describe('rigging runtime — install descriptor', () => {
it('pins the Blender module to an exact version in the install command', () => {
@@ -51,7 +54,7 @@ describe('resolveRiggingPython', () => {
it('uses its own env name, not another heavy lane’s', () => {
const seen = [];
resolveRiggingPython({ exists: (p) => { seen.push(p); return false; }, env: ENV });
- expect(seen.every((p) => p.includes(`/envs/${RIGGING_RUNTIME.condaEnv}/`))).toBe(true);
+ expect(seen.every((p) => posixPath(p).includes(`/envs/${RIGGING_RUNTIME.condaEnv}/`))).toBe(true);
});
});