From f951f21535eeb5ba6b046f1cd985473746c02b54 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 17 Aug 2026 02:22:05 -0500 Subject: [PATCH] Retry the nsyte download It has failed here with "SSL_read: decryption failed or bad record mac", which curl does not treat as retryable. Also -f, so an HTTP error page is never saved as the binary, and a version check to catch a truncated one. --- .ngit/act/workflows/deploy-nsite.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.ngit/act/workflows/deploy-nsite.yml b/.ngit/act/workflows/deploy-nsite.yml index b38c911c..90e8c24b 100644 --- a/.ngit/act/workflows/deploy-nsite.yml +++ b/.ngit/act/workflows/deploy-nsite.yml @@ -51,9 +51,17 @@ jobs: # Pin the binary. An unversioned install has been observed pulling # 0.10.1, which emits legacy kind-34128 events that every current # gateway ignores while still reporting a successful deploy. - curl -sSL -o /usr/local/bin/nsyte \ + # --retry-all-errors covers the transport faults this download has + # actually hit here ("SSL_read: decryption failed or bad record + # mac"), which curl does not consider retryable on its own. -f keeps + # an HTTP error page from being saved as the binary, and the version + # check fails the step rather than letting a truncated download + # surface later as a confusing nsyte error. + curl -fsSL --retry 5 --retry-delay 3 --retry-all-errors --max-time 300 \ + -o /usr/local/bin/nsyte \ https://github.com/sandwichfarm/nsyte/releases/download/v0.27.2/nsyte-linux-0.27.2 chmod +x /usr/local/bin/nsyte + nsyte --version nsyte validate