From 24f5198caf06ce489596c60184c590dad48cdd7f Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Thu, 23 Apr 2026 03:09:40 +0100 Subject: [PATCH] ci: trust restored gateway watch artifacts --- scripts/check-gateway-watch-regression.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/check-gateway-watch-regression.mjs b/scripts/check-gateway-watch-regression.mjs index 04856fb6777..925ea5f9b16 100644 --- a/scripts/check-gateway-watch-regression.mjs +++ b/scripts/check-gateway-watch-regression.mjs @@ -588,6 +588,10 @@ async function main() { // Refresh the build stamp after the gateway build finishes so run-node // does not spuriously rebuild inside the bounded watch window. writeBuildStamp({ cwd: process.cwd() }); + } else { + // Restored CI artifacts can be older than the fresh checkout mtimes. + // Refresh only the stamp so run-node trusts the already-built dist. + writeBuildStamp({ cwd: process.cwd() }); } const preflightBuildRequirement = resolveBuildRequirement(buildRunNodeDeps(process.env));