@agentv/core 4.15.0 → 4.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -17043,7 +17043,7 @@ async function runEvaluation(options) {
|
|
|
17043
17043
|
if (configuredMode !== "static" && configuredStaticPath) {
|
|
17044
17044
|
throw new Error("workspace.path requires workspace.mode=static");
|
|
17045
17045
|
}
|
|
17046
|
-
const hasSharedWorkspace = !!(useStaticWorkspace || workspaceTemplate || suiteWorkspace?.hooks || suiteWorkspace?.repos?.length
|
|
17046
|
+
const hasSharedWorkspace = !!(useStaticWorkspace || !isPerTestIsolation && (workspaceTemplate || suiteWorkspace?.hooks || suiteWorkspace?.repos?.length));
|
|
17047
17047
|
const poolEnabled = configuredMode === "pooled";
|
|
17048
17048
|
const usePool = poolEnabled !== false && !!suiteWorkspace?.repos?.length && !isPerTestIsolation && !useStaticWorkspace;
|
|
17049
17049
|
const resolvedRetainOnSuccess = retainOnSuccess ?? (keepWorkspaces ? "keep" : "cleanup");
|
|
@@ -17098,7 +17098,7 @@ async function runEvaluation(options) {
|
|
|
17098
17098
|
setupLog(`reusing existing static workspace: ${configuredStaticPath}`);
|
|
17099
17099
|
}
|
|
17100
17100
|
sharedWorkspacePath = configuredStaticPath;
|
|
17101
|
-
} else if (usePool && suiteWorkspace?.repos) {
|
|
17101
|
+
} else if (!isPerTestIsolation && usePool && suiteWorkspace?.repos) {
|
|
17102
17102
|
const slotsNeeded = workers;
|
|
17103
17103
|
setupLog(`acquiring ${slotsNeeded} workspace pool slot(s) (pool capacity: ${poolMaxSlots})`);
|
|
17104
17104
|
poolManager = new WorkspacePoolManager(getWorkspacePoolRoot());
|
|
@@ -17120,7 +17120,7 @@ async function runEvaluation(options) {
|
|
|
17120
17120
|
} else {
|
|
17121
17121
|
availablePoolSlots.push(...poolSlots);
|
|
17122
17122
|
}
|
|
17123
|
-
} else if (workspaceTemplate) {
|
|
17123
|
+
} else if (!isPerTestIsolation && workspaceTemplate) {
|
|
17124
17124
|
setupLog(`creating shared workspace from template: ${workspaceTemplate}`);
|
|
17125
17125
|
try {
|
|
17126
17126
|
sharedWorkspacePath = await createTempWorkspace(workspaceTemplate, evalRunId, "shared");
|
|
@@ -17129,7 +17129,7 @@ async function runEvaluation(options) {
|
|
|
17129
17129
|
const message = error instanceof Error ? error.message : String(error);
|
|
17130
17130
|
throw new Error(`Failed to create shared workspace: ${message}`);
|
|
17131
17131
|
}
|
|
17132
|
-
} else if (suiteWorkspace?.hooks || suiteWorkspace?.repos?.length
|
|
17132
|
+
} else if (!isPerTestIsolation && (suiteWorkspace?.hooks || suiteWorkspace?.repos?.length)) {
|
|
17133
17133
|
sharedWorkspacePath = getWorkspacePath(evalRunId, "shared");
|
|
17134
17134
|
await mkdir14(sharedWorkspacePath, { recursive: true });
|
|
17135
17135
|
setupLog(`created empty shared workspace at: ${sharedWorkspacePath}`);
|