From 8e63600c14bce64b3528f373f32d98e2f3eb821e Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 1 May 2026 21:59:48 +0100 Subject: [PATCH] test: remove stale runtime deps lock smoke --- .../runtime-smoke.mjs | 42 ------------------- 1 file changed, 42 deletions(-) diff --git a/scripts/e2e/lib/bundled-plugin-install-uninstall/runtime-smoke.mjs b/scripts/e2e/lib/bundled-plugin-install-uninstall/runtime-smoke.mjs index 4ac67793e6b..fc203bfe01e 100644 --- a/scripts/e2e/lib/bundled-plugin-install-uninstall/runtime-smoke.mjs +++ b/scripts/e2e/lib/bundled-plugin-install-uninstall/runtime-smoke.mjs @@ -551,7 +551,6 @@ async function runWatchdog(options) { } await retryRpcCall("health", {}, options); assertNoPostReadyRuntimeDepsWork(options.logPath, readyIndex); - assertNoRuntimeDepsLocks(); await assertNoPackageManagerChildren(options.child.pid); } @@ -572,47 +571,6 @@ function assertNoPostReadyRuntimeDepsWork(logPath, readyIndex) { } } -function assertNoRuntimeDepsLocks() { - const roots = [path.join(process.cwd(), "dist", "extensions")]; - for (const root of roots) { - if (!fs.existsSync(root)) { - continue; - } - const locks = findDirs(root, ".openclaw-runtime-deps.lock", 8); - if (locks.length > 0) { - throw new Error(`runtime dependency lock still exists: ${locks.join(", ")}`); - } - } -} - -function findDirs(root, basename, maxDepth) { - const results = []; - const visit = (dir, depth) => { - if (depth > maxDepth) { - return; - } - let entries; - try { - entries = fs.readdirSync(dir, { withFileTypes: true }); - } catch { - return; - } - for (const entry of entries) { - if (!entry.isDirectory()) { - continue; - } - const full = path.join(dir, entry.name); - if (entry.name === basename) { - results.push(full); - continue; - } - visit(full, depth + 1); - } - }; - visit(root, 0); - return results; -} - async function assertNoPackageManagerChildren(pid) { if (!pid || process.platform === "win32") { return;