@impz/testing 6.11.3 → 6.11.4
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.js +12 -9
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -21756,7 +21756,7 @@ var EnvSchema = z53.object({
|
|
|
21756
21756
|
IMP_KSM_HEADROOM_PERCENT: z53.string().default("100"),
|
|
21757
21757
|
IMP_HUGE_PAGES: z53.enum(["off", "2M"]).default("off"),
|
|
21758
21758
|
IMP_UFFD_HANDLER: z53.string().default("uffd-handler"),
|
|
21759
|
-
IMP_WARM_CAP_MIB: CountSchema3.default(
|
|
21759
|
+
IMP_WARM_CAP_MIB: CountSchema3.default(2048),
|
|
21760
21760
|
IMP_DNS: z53.string().default("1.1.1.1,8.8.8.8").transform(splitList).pipe(DnsServersSchema),
|
|
21761
21761
|
IMP_SUBNET: z53.cidrv4().default("10.66.0.0/16"),
|
|
21762
21762
|
IMP_SUBNET6: z53.string().default("auto"),
|
|
@@ -22009,7 +22009,7 @@ import { join as join48 } from "path";
|
|
|
22009
22009
|
// packages/daemon/package.json
|
|
22010
22010
|
var package_default = {
|
|
22011
22011
|
name: "@impz/daemon",
|
|
22012
|
-
version: "6.11.
|
|
22012
|
+
version: "6.11.4",
|
|
22013
22013
|
private: true,
|
|
22014
22014
|
description: "impd: the imp host daemon",
|
|
22015
22015
|
type: "module",
|
|
@@ -39393,6 +39393,9 @@ function createPrioritySemaphore(limit) {
|
|
|
39393
39393
|
};
|
|
39394
39394
|
}
|
|
39395
39395
|
|
|
39396
|
+
// packages/daemon/src/platform/process/vm-deadlines.ts
|
|
39397
|
+
var VM_DEADLINES = { agentMs: 15000, killMs: 3000 };
|
|
39398
|
+
|
|
39396
39399
|
// packages/daemon/src/imp-ops/governor/build-budgets.ts
|
|
39397
39400
|
function buildBudgets(budgetMib, pool) {
|
|
39398
39401
|
return {
|
|
@@ -39590,7 +39593,7 @@ function createPriorityAdmissions(priority) {
|
|
|
39590
39593
|
}
|
|
39591
39594
|
|
|
39592
39595
|
// packages/daemon/src/imp-ops/governor/ram-governor.ts
|
|
39593
|
-
var RESERVATION_TTL_MS =
|
|
39596
|
+
var RESERVATION_TTL_MS = VM_DEADLINES.agentMs + 1e4;
|
|
39594
39597
|
var ENFORCE_INTERVAL_MS = 5000;
|
|
39595
39598
|
var ENFORCE_TRIGGER = "RAM over budget";
|
|
39596
39599
|
var ORDINARY_TRIGGER = "RAM outside the huge page pool";
|
|
@@ -44649,9 +44652,6 @@ import { resolve as resolve3 } from "path";
|
|
|
44649
44652
|
// packages/daemon/src/vm/vmm/template-vm.ts
|
|
44650
44653
|
import { mkdirSync as mkdirSync15, rmSync as rmSync21 } from "fs";
|
|
44651
44654
|
|
|
44652
|
-
// packages/daemon/src/platform/process/vm-deadlines.ts
|
|
44653
|
-
var VM_DEADLINES = { agentMs: 15000, killMs: 3000 };
|
|
44654
|
-
|
|
44655
44655
|
// packages/daemon/src/vm/agent-client/wait-for-agent.ts
|
|
44656
44656
|
async function waitForAgent(vsockPath, options) {
|
|
44657
44657
|
const clock = options.clock ?? REAL_CLOCK;
|
|
@@ -47079,7 +47079,7 @@ async function copyBase(base, memFile) {
|
|
|
47079
47079
|
// packages/daemon/src/vm/vmm/vm-runner.ts
|
|
47080
47080
|
var SHUTDOWN_TIMEOUT_MS = 1e4;
|
|
47081
47081
|
var UFFD_WATCH_INTERVAL_MS = 100;
|
|
47082
|
-
var WAKE_AGENT_DEADLINE_MS =
|
|
47082
|
+
var WAKE_AGENT_DEADLINE_MS = VM_DEADLINES.agentMs;
|
|
47083
47083
|
var GUEST_MEMORY_TIMEOUTS = { requestMs: 1000, snapshotMs: 1000 };
|
|
47084
47084
|
var UPTIME_PING_TIMEOUT_MS = 250;
|
|
47085
47085
|
function createVmRunner(jails, options) {
|
|
@@ -47089,6 +47089,7 @@ function createVmRunner(jails, options) {
|
|
|
47089
47089
|
const createClient = options.createClient ?? createFirecrackerClient;
|
|
47090
47090
|
const readFile = options.readFile;
|
|
47091
47091
|
const uffdHandlerBin = options.uffdHandlerBin ?? null;
|
|
47092
|
+
const clock = options.clock ?? REAL_CLOCK;
|
|
47092
47093
|
const uffdWatch = createUffdWatch({
|
|
47093
47094
|
probeVmAlive: (pid, paths) => probeProcessAlive(pid, paths.apiSocket, procRoot),
|
|
47094
47095
|
readHandlerState: (paths) => readHandlerState(paths, procRoot),
|
|
@@ -47306,7 +47307,8 @@ ${readLogTail(plan.paths.logFile)}`, {
|
|
|
47306
47307
|
setMark("load");
|
|
47307
47308
|
const ping = await waitForAgent(plan.paths.vsockSocket, {
|
|
47308
47309
|
deadlineMs: WAKE_AGENT_DEADLINE_MS,
|
|
47309
|
-
attemptMs: 200
|
|
47310
|
+
attemptMs: 200,
|
|
47311
|
+
clock
|
|
47310
47312
|
});
|
|
47311
47313
|
setMark("agent");
|
|
47312
47314
|
await sendResumed(plan.paths.vsockSocket, Date.now());
|
|
@@ -47388,7 +47390,8 @@ ${readLogTail(plan.paths.logFile, 5)}`, {
|
|
|
47388
47390
|
finishWake: async (paths) => {
|
|
47389
47391
|
const ping = await waitForAgent(paths.vsockSocket, {
|
|
47390
47392
|
deadlineMs: WAKE_AGENT_DEADLINE_MS,
|
|
47391
|
-
attemptMs: 200
|
|
47393
|
+
attemptMs: 200,
|
|
47394
|
+
clock
|
|
47392
47395
|
});
|
|
47393
47396
|
await sendResumed(paths.vsockSocket, Date.now());
|
|
47394
47397
|
const firecrackerVersion = await createClient(paths.apiSocket).readVersion();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@impz/testing",
|
|
3
|
-
"version": "6.11.
|
|
3
|
+
"version": "6.11.4",
|
|
4
4
|
"description": "A real impd on stand-ins, for Bun tests of code that drives impd through @impz/client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"ts-pattern": "^5.9.2",
|
|
44
44
|
"xstate": "^5.33.3",
|
|
45
45
|
"zod": "^4.6.7",
|
|
46
|
-
"@impz/client": "6.11.
|
|
46
|
+
"@impz/client": "6.11.4"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
49
|
"bun": ">=1.4.3"
|