From a9e24cffc4ef6c00fe5b7bb8dead2b0966a5dc1a Mon Sep 17 00:00:00 2001 From: udo Date: Sun, 19 Jul 2026 05:38:31 +0000 Subject: [PATCH] Stabilize foreign artifact timeout coverage --- scripts/test_wasm_compile_timeout.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/test_wasm_compile_timeout.sh b/scripts/test_wasm_compile_timeout.sh index 42fa066..9361c9a 100755 --- a/scripts/test_wasm_compile_timeout.sh +++ b/scripts/test_wasm_compile_timeout.sh @@ -75,7 +75,7 @@ fi if [[ -r '$root/copy-delay' ]] && grep -Fxq "\$source_file" '$root/copy-delay'; then cp "\$2/\$(basename "\$source_file").wasm" "\$2/\$5" cp "\$2/\$(basename "\$source_file").wasm.source-map" "\$2/\$5.source-map" - sleep 1.5 + sleep 1.7 touch '$root/copy-delay-complete' exit 0 fi @@ -156,7 +156,7 @@ worker_pid=${driver%%|*} ! grep -q 'Could not write.*source-generation.txt' "$log" before=$(sha256sum "$cache/slow.uce.wasm" "$cache/slow.uce.wasm.source-map" "$cache/slow.uce.cpp" "$cache/slow.uce.exports.txt" "$cache/slow.uce.meta.txt") -truncate -s 1073741824 "$cache/slow.uce.cwasm" +truncate -s 68719476736 "$cache/slow.uce.cwasm" printf '%s\n' "$site/slow.uce" >"$root/copy-delay" rm -f "$root/copy-delay-complete" started=$(date +%s%N) @@ -168,7 +168,7 @@ rm -f "$root/copy-delay" [[ "$copy_timeout" == *UCE_INVOCATION_TIMEOUT:* ]] || { echo "foreign rollback copy lacked timeout: $copy_timeout" >&2; exit 1; } (( elapsed >= 1700 && elapsed <= 3500 )) || { echo "foreign rollback copy took ${elapsed}ms" >&2; exit 1; } [[ -e "$root/copy-delay-complete" ]] || { echo "foreign rollback compiler did not finish before timeout" >&2; exit 1; } -[[ $(stat -c '%u:%s' "$cache/slow.uce.cwasm") == '0:1073741824' ]] +[[ $(stat -c '%u:%s' "$cache/slow.uce.cwasm") == '0:68719476736' ]] [[ "$before" == "$(sha256sum "$cache/slow.uce.wasm" "$cache/slow.uce.wasm.source-map" "$cache/slow.uce.cpp" "$cache/slow.uce.exports.txt" "$cache/slow.uce.meta.txt")" ]] ! find "$cache" -name '*.invocation-*' -print -quit | grep -q . rm -f "$cache/slow.uce.cwasm"