fix(ci): stabilize planner executor fallback tests

This commit is contained in:
Vincent Koc
2026-03-31 20:26:13 +09:00
parent 8c0245f57b
commit 225dfe0094
2 changed files with 6 additions and 24 deletions

View File

@@ -343,6 +343,7 @@ const partitionUnitsBySurface = (units, surface) => {
export async function executePlan(plan, options = {}) {
const env = options.env ?? process.env;
const artifacts = options.artifacts ?? createExecutionArtifacts(env);
const spawnImpl = options.spawn ?? spawn;
const pnpmInvocation = resolvePnpmCommandInvocation({
npmExecPath: env.npm_execpath,
nodeExecPath: process.execPath,
@@ -740,7 +741,7 @@ export async function executePlan(plan, options = {}) {
childEnv.OPENCLAW_VITEST_FS_MODULE_CACHE_PATH = vitestFsModuleCachePath;
laneLogStream.write(`[test-parallel] fsModuleCachePath=${vitestFsModuleCachePath}\n`);
}
child = spawn(pnpmInvocation.command, spawnArgs, {
child = spawnImpl(pnpmInvocation.command, spawnArgs, {
stdio: ["inherit", "pipe", "pipe"],
env: childEnv,
shell: false,