@wix/evalforge-evaluator 0.191.0 → 0.192.0
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/build/index.js +79 -37
- package/build/index.js.map +3 -3
- package/build/index.mjs +82 -40
- package/build/index.mjs.map +3 -3
- package/build/types/run-scenario/install-dependencies.d.ts +14 -2
- package/package.json +2 -2
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Run an install command. Async (not `execFileSync`) on purpose: a synchronous
|
|
3
|
+
* install blocks the Node event loop for its entire duration, which (a) starves
|
|
4
|
+
* the fire-and-forget trace pushes queued just before it — so a long/stuck
|
|
5
|
+
* install looks like a silent hang — and (b) produces no stdout while it runs,
|
|
6
|
+
* which trips the remote machine's idle timeout and gets the session reaped.
|
|
7
|
+
* Spawning keeps the loop free so heartbeats keep flowing.
|
|
8
|
+
*/
|
|
9
|
+
export type InstallExec = (cmd: string, args: string[], opts: {
|
|
10
|
+
cwd: string;
|
|
11
|
+
timeoutMs: number;
|
|
12
|
+
env: NodeJS.ProcessEnv;
|
|
13
|
+
}) => Promise<void>;
|
|
2
14
|
export interface InstallDependenciesOptions {
|
|
3
|
-
exec?:
|
|
15
|
+
exec?: InstallExec;
|
|
4
16
|
cacheBase?: string;
|
|
5
17
|
}
|
|
6
18
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/evalforge-evaluator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.192.0",
|
|
4
4
|
"description": "EvalForge Evaluator",
|
|
5
5
|
"bin": "./build/index.js",
|
|
6
6
|
"files": [
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"artifactId": "evalforge-evaluator"
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
"falconPackageHash": "
|
|
75
|
+
"falconPackageHash": "e03845957344afc7b0c59fb9fd587205b4fcf63ced11899cf26265f4"
|
|
76
76
|
}
|