[openssh-commits] [openssh] 02/03: Add a single retry to VM package install steps.
git+noreply at mindrot.org
git+noreply at mindrot.org
Tue Jun 2 19:00:30 AEST 2026
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit 41bb8c1823a337dca1b027a1e5c560f6a5fc4acc
Author: Darren Tucker <dtucker at dtucker.net>
AuthorDate: Tue Jun 2 18:10:25 2026 +1000
Add a single retry to VM package install steps.
These are potentially flaky due to network issues, so hopefully this
will reduce the number of manual retries needed.
---
.github/workflows/vm.yml | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/vm.yml b/.github/workflows/vm.yml
index 667593a52..2aaab0980 100644
--- a/.github/workflows/vm.yml
+++ b/.github/workflows/vm.yml
@@ -33,7 +33,7 @@ jobs:
release: ${{ matrix.target }}
usesh: true
prepare: |
- pkg install -y sudo
+ timeout 600 pkg install -y sudo || pkg install -y sudo
pw useradd builder -m
echo "builder ALL=(ALL:ALL) NOPASSWD: ALL" >>/usr/local/etc/sudoers
mkdir -p /var/empty /usr/local/etc
@@ -98,12 +98,13 @@ jobs:
prepare: |
case $(uname -r) in
12.*)
- ftp ftp://ftp.sudo.ws/pub/sudo/sudo-1.8.32.tar.gz
+ timeout 600 ftp ftp://ftp.sudo.ws/pub/sudo/sudo-1.8.32.tar.gz || \
+ ftp ftp://ftp.sudo.ws/pub/sudo/sudo-1.8.32.tar.gz
tar xfz sudo-1.8.32.tar.gz
(cd sudo-1.8.32 && ./configure --sysconfdir=/usr/local/etc && make && make install)
;;
*)
- pkg install -y sudo
+ timeout 600 pkg install -y sudo || pkg install -y sudo
;;
esac
openssl rand -base64 9 >$GITHUB_WORKSPACE/regress/password
@@ -182,7 +183,7 @@ jobs:
case "$(uname -r)" in
9.*) export PKG_PATH="ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/9.0_2026Q1/All" ;;
esac
- /usr/sbin/pkg_add sudo
+ timeout 600 /usr/sbin/pkg_add sudo || /usr/sbin/pkg_add sudo
openssl rand -base64 9 >$GITHUB_WORKSPACE/regress/password
pw=$(tr -d '\n' <$GITHUB_WORKSPACE/regress/password | pwhash)
/usr/sbin/useradd -m -p "${pw}" builder
@@ -254,8 +255,8 @@ jobs:
prepare: |
set -x
if [ ! -x $(which gcc 2>/dev/null) ]; then
- pfexec pkg refresh
- pfexec pkg install build-essential
+ timeout 900 pfexec pkg refresh || pfexec pkg refresh
+ timeout 900 pfexec pkg install build-essential || pfexec pkg install build-essential
fi
useradd -m builder
sed -e "s/^root.*ALL$/root ALL=(ALL) NOPASSWD: ALL/" /etc/sudoers >>/tmp/sudoers
@@ -355,6 +356,7 @@ jobs:
"20022": "22"
usesh: true
prepare: |
+ timeout 600 pkg_add git || pkg_add git
useradd -g wobj -m builder
echo "permit nopass keepenv root" >/etc/doas.conf
echo "permit nopass keepenv builder" >>/etc/doas.conf
@@ -362,7 +364,6 @@ jobs:
chown root:wheel /etc/doas.conf
chmod 644 /etc/doas.conf
touch /etc/ssh/ssh_known_hosts
- pkg_add git
- name: fetch sysupgrade version
run: |
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list