From 6ebe71c8a25dc180c4815e504dfb4aee61182170 Mon Sep 17 00:00:00 2001 From: Mark Sinclair Date: Wed, 20 Mar 2024 18:52:48 +0000 Subject: [PATCH] GitHub Actions: nym-hash-release: terminate get build info shell after 3 secs --- .github/actions/nym-hash-releases/dist/index.js | 4 ++-- .github/actions/nym-hash-releases/src/create-hashes.mjs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/actions/nym-hash-releases/dist/index.js b/.github/actions/nym-hash-releases/dist/index.js index 170849c6ed..bd9ba671a3 100644 --- a/.github/actions/nym-hash-releases/dist/index.js +++ b/.github/actions/nym-hash-releases/dist/index.js @@ -23974,8 +23974,8 @@ function getBinInfo(path) { external_fs_.chmodSync(path, mode | 0o111) const cmd = `${path} build-info --output=json`; - console.log(`🚚 Running ${cmd}...`); - const raw = (0,external_child_process_namespaceObject.execSync)(cmd, { stdio: 'pipe', encoding: "utf8" }); + console.log(`🚚 Running ${cmd}... (for max of 3 seconds, then SIGTERM)`); + const raw = (0,external_child_process_namespaceObject.execSync)(cmd, { stdio: 'pipe', encoding: "utf8", timeout: 3000 }); const parsed = JSON.parse(raw) console.log(` ✅ ok`); return parsed diff --git a/.github/actions/nym-hash-releases/src/create-hashes.mjs b/.github/actions/nym-hash-releases/src/create-hashes.mjs index a0c34602d5..6cf4d137cc 100644 --- a/.github/actions/nym-hash-releases/src/create-hashes.mjs +++ b/.github/actions/nym-hash-releases/src/create-hashes.mjs @@ -12,8 +12,8 @@ function getBinInfo(path) { fs.chmodSync(path, mode | 0o111) const cmd = `${path} build-info --output=json`; - console.log(`🚚 Running ${cmd}...`); - const raw = execSync(cmd, { stdio: 'pipe', encoding: "utf8" }); + console.log(`🚚 Running ${cmd}... (for max of 3 seconds, then SIGTERM)`); + const raw = execSync(cmd, { stdio: 'pipe', encoding: "utf8", timeout: 3000 }); const parsed = JSON.parse(raw) console.log(` ✅ ok`); return parsed