mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 10:16:44 +00:00
fix(ci): bound OCM asset transfers (#108700)
This commit is contained in:
@@ -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 -');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user