mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
fix(ci): tolerate platform-specific coverage and curl retries
This commit is contained in:
@@ -105,6 +105,8 @@ async function tightenModes(dir: string): Promise<void> {
|
|||||||
if (entry.isDirectory()) {
|
if (entry.isDirectory()) {
|
||||||
await tightenModes(target)
|
await tightenModes(target)
|
||||||
} else {
|
} else {
|
||||||
|
/* v8 ignore next -- Windows mode bits cannot represent POSIX owner-execute state;
|
||||||
|
* the Windows native gate preserves the DACL while the POSIX suite covers this branch. */
|
||||||
await chmod(target, ((await stat(target)).mode & 0o100) === 0 ? 0o600 : 0o700)
|
await chmod(target, ((await stat(target)).mode & 0o100) === 0 ? 0o600 : 0o700)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ fi
|
|||||||
archive="${RUNNER_TEMP}/bubblewrap_${BUBBLEWRAP_VERSION}_amd64.deb"
|
archive="${RUNNER_TEMP}/bubblewrap_${BUBBLEWRAP_VERSION}_amd64.deb"
|
||||||
root="${RUNNER_TEMP}/dsh-bubblewrap"
|
root="${RUNNER_TEMP}/dsh-bubblewrap"
|
||||||
|
|
||||||
curl --fail --silent --show-error --location --retry 3 --output "$archive" "$BUBBLEWRAP_URL"
|
curl --fail --silent --show-error --location --retry 3 --retry-all-errors --output "$archive" "$BUBBLEWRAP_URL"
|
||||||
printf '%s %s\n' "$BUBBLEWRAP_SHA256" "$archive" | sha256sum --check --status
|
printf '%s %s\n' "$BUBBLEWRAP_SHA256" "$archive" | sha256sum --check --status
|
||||||
mkdir -p "$root"
|
mkdir -p "$root"
|
||||||
dpkg-deb --extract "$archive" "$root"
|
dpkg-deb --extract "$archive" "$root"
|
||||||
|
|||||||
Reference in New Issue
Block a user