fix(ci): bound OCM asset transfers (#108700)

This commit is contained in:
Alix-007
2026-07-16 01:44:53 -07:00
committed by GitHub
parent 5a4b48ead6
commit 00ff4e8b84
2 changed files with 7 additions and 0 deletions
@@ -273,7 +273,10 @@ jobs:
mkdir -p "$HOME/.local/bin" "$(dirname "$KOVA_SRC")" "${RUNNER_TEMP}/ocm-install"
ocm_archive="${RUNNER_TEMP}/ocm-${OCM_VERSION}-x86_64-unknown-linux-gnu.tar.gz"
# retry-max-time only gates new retries; cap an active transfer separately
# so a stalled release asset cannot consume the entire Kova job deadline.
curl -fsSL --proto '=https' --tlsv1.2 \
--max-time 180 \
--retry 8 --retry-max-time 180 --retry-all-errors --retry-connrefused \
-o "$ocm_archive" \
"https://github.com/shakkernerd/ocm/releases/download/${OCM_VERSION}/ocm-x86_64-unknown-linux-gnu.tar.gz"
@@ -116,6 +116,10 @@ describe("OpenClaw performance workflow", () => {
expect(installRun).toContain(
'"https://github.com/shakkernerd/ocm/releases/download/${OCM_VERSION}/ocm-x86_64-unknown-linux-gnu.tar.gz"',
);
expect(installRun).toContain("--max-time 180");
expect(installRun).toContain(
"--retry 8 --retry-max-time 180 --retry-all-errors --retry-connrefused",
);
expect(installRun).toContain('echo "${OCM_LINUX_X64_SHA256} ${ocm_archive}" | sha256sum -c -');
});