@velum-labs/routekit-eval-service 1.0.17 → 1.0.18
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.
|
@@ -48,6 +48,7 @@ const makeProductionExecutionPort = (options) => Effect.gen(function* () {
|
|
|
48
48
|
const bearerCredential = options.bearerCredential?.trim();
|
|
49
49
|
if (bearerCredential === undefined || bearerCredential.length === 0) {
|
|
50
50
|
return EvalExecutionPort.of({
|
|
51
|
+
nodeTestExecPath: options.execPath ?? globalThis.process.execPath,
|
|
51
52
|
execute: () => Stream.fail(new EvalEngineExecutionError({
|
|
52
53
|
cause: new EvalServiceCredentialError({
|
|
53
54
|
detail: "RouteKit Eval comparison execution requires an injected bearer credential."
|
|
@@ -69,6 +70,7 @@ const makeProductionExecutionPort = (options) => Effect.gen(function* () {
|
|
|
69
70
|
...(options.execPath === undefined ? {} : { execPath: options.execPath })
|
|
70
71
|
}, httpClient);
|
|
71
72
|
return EvalExecutionPort.of({
|
|
73
|
+
nodeTestExecPath: execution.nodeTestExecPath,
|
|
72
74
|
execute: (input) => {
|
|
73
75
|
const deadlineInput = options.timeoutMs === undefined
|
|
74
76
|
? input
|
|
@@ -313,7 +313,7 @@ test("production runner applies the host timeout at node:test instead of a stale
|
|
|
313
313
|
await new Promise((resolve, reject) => gateway.close((error) => (error === undefined ? resolve() : reject(error))));
|
|
314
314
|
}
|
|
315
315
|
});
|
|
316
|
-
test("production runner
|
|
316
|
+
test("production runner uses its selected Node runtime for validation before observation", async () => {
|
|
317
317
|
const root = await mkdtemp(path.join(os.tmpdir(), "routekit-eval-runner-spawn-failure-"));
|
|
318
318
|
roots.push(root);
|
|
319
319
|
const suite = path.join(root, "support.eval.ts");
|
|
@@ -340,7 +340,9 @@ test("production runner fails before observation when the comparison child canno
|
|
|
340
340
|
assert.equal(Exit.isFailure(exit), true);
|
|
341
341
|
assert.deepEqual(observed, []);
|
|
342
342
|
if (Exit.isFailure(exit)) {
|
|
343
|
-
assert.match(String(exit.cause), /
|
|
343
|
+
assert.match(String(exit.cause), /validation failed/iu);
|
|
344
|
+
assert.match(String(exit.cause), /could not be loaded safely through node:test/iu);
|
|
345
|
+
assert.match(String(exit.cause), /missing-node/iu);
|
|
344
346
|
}
|
|
345
347
|
});
|
|
346
348
|
test("production runner isolates qualification from a project SDK with a shorter hidden abort", async () => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velum-labs/routekit-eval-service",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.18",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/velum-labs/routekit.git",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@effect/platform-node": "4.0.0-rc.108",
|
|
34
34
|
"effect": "4.0.0-rc.108",
|
|
35
|
-
"@velum-labs/routekit-eval-contracts": "1.0.
|
|
36
|
-
"@velum-labs/routekit-eval-engine": "1.0.
|
|
37
|
-
"@velum-labs/routekit-eval-store": "1.0.
|
|
38
|
-
"@velum-labs/routekit-registry": "1.0.
|
|
35
|
+
"@velum-labs/routekit-eval-contracts": "1.0.18",
|
|
36
|
+
"@velum-labs/routekit-eval-engine": "1.0.18",
|
|
37
|
+
"@velum-labs/routekit-eval-store": "1.0.18",
|
|
38
|
+
"@velum-labs/routekit-registry": "1.0.18"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"typescript": "7.0.2"
|