Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(minikube): measure the reap window on a monotonic clock
Alfredo Lopeza2583cc1e8d8
diff --git a/scripts/minikube/run-with-deadline.mjs b/scripts/minikube/run-with-deadline.mjsindex 96d57d272..f10e8d6b7 100755--- a/scripts/minikube/run-with-deadline.mjs+++ b/scripts/minikube/run-with-deadline.mjs@@ -148,10 +148,12 @@ function processGroupExists() {}}+// The window is measured on the monotonic clock: a wall-clock step (NTP) must+// not shorten or stretch it.async function waitForProcessGroupExit(milliseconds) {- const deadline = Date.now() + milliseconds;- while (processGroupExists() && Date.now() < deadline) {- await wait(Math.min(25, Math.max(1, deadline - Date.now())));+ const deadline = performance.now() + milliseconds;+ while (processGroupExists() && performance.now() < deadline) {+ await wait(Math.min(25, Math.max(1, deadline - performance.now())));}return !processGroupExists();}