mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-16 06:52:27 +00:00
Cirrus-CI: retry pkg installation on failure
Pkg installation failed somewhat frequently, always at:
[62/104] Fetching jpeg-turbo-2.0.6.txz: .......... done
pkg: http://pkgmir.geo.freebsd.org/FreeBSD:13:amd64/quarterly/All/jbigkit-2.1_1.txz: No route to host
Move pkg installation to a script and retry once upon failure as a
(hopefully temporary) workaround.
Reviewed by: imp
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D30613
(cherry picked from commit dd41de95a8
)
This commit is contained in:
parent
e06cbb2b7a
commit
6eea2623b5
15
.cirrus-ci/pkg-install.sh
Normal file
15
.cirrus-ci/pkg-install.sh
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
pkg install -y "$@" && exit 0
|
||||
|
||||
cat <<EOF
|
||||
pkg install failed
|
||||
|
||||
dmesg tail:
|
||||
$(dmesg | tail)
|
||||
|
||||
trying again
|
||||
EOF
|
||||
|
||||
pkg install -y "$@"
|
|
@ -17,7 +17,7 @@ task:
|
|||
name: World and kernel amd64 build and boot smoke test
|
||||
timeout_in: 120m
|
||||
install_script:
|
||||
- pkg install -y qemu uefi-edk2-qemu-x86_64 llvm11
|
||||
- sh .cirrus-ci/pkg-install.sh qemu uefi-edk2-qemu-x86_64 llvm11
|
||||
setup_script:
|
||||
- uname -a
|
||||
- df -m
|
||||
|
@ -32,4 +32,4 @@ task:
|
|||
- sh tools/boot/ci-qemu-test.sh
|
||||
post_script:
|
||||
- df -m
|
||||
- du -m -s /usr/obj
|
||||
- du -m -s /usr/obj
|
Loading…
Reference in a new issue