From 8dce87f7558cbeaede4bebfe2dcbc053a41746df Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 26 Feb 2026 16:06:20 +1030 Subject: [PATCH] CI: Remove setup useradd line, use eatmydata I noticed this line causing a delay; ChatGPT thinks NSS name lookup. I've removed the useradd line altogether. I also install eatmydata first, to try to speed the other installs. This drops the install step from 1m45 to about 30 seconds. Signed-off-by: Rusty Russell --- .github/scripts/setup.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/scripts/setup.sh b/.github/scripts/setup.sh index 1f5d7ce9e..291c4c074 100755 --- a/.github/scripts/setup.sh +++ b/.github/scripts/setup.sh @@ -3,14 +3,18 @@ set -e export DEBIAN_FRONTEND=noninteractive export RUST_VERSION=stable -sudo useradd -ms /bin/bash tester sudo mkdir -p /var/cache/apt/archives mkdir -p ~/ci-cache/apt/ sudo cp -a ~/ci-cache/apt/. /var/cache/apt/archives/ 2>/dev/null || true sudo apt-get update +# Install eatmydata, then use it for the rest. sudo apt-get install --no-install-recommends --allow-unauthenticated -yy \ + -o APT::Keep-Downloaded-Packages=true \ + eatmydata + +sudo eatmydata apt-get install --no-install-recommends --allow-unauthenticated -yy \ -o APT::Keep-Downloaded-Packages=true \ autoconf \ automake \ @@ -19,7 +23,6 @@ sudo apt-get install --no-install-recommends --allow-unauthenticated -yy \ clang \ cppcheck \ docbook-xml \ - eatmydata \ gcc-aarch64-linux-gnu \ gcc-arm-linux-gnueabihf \ gcc-arm-none-eabi \