From f2dc377ece74bd019865f0fea362bb8dd42743a6 Mon Sep 17 00:00:00 2001 From: Curtis Doty Date: Mon, 4 Sep 2023 18:29:35 +0000 Subject: [PATCH 1/6] Scrut uses Ubuntu 14 by default which doesn't support jq -e - is this the right way to use different container? --- .scrutinizer.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 998ca881c4c..9f1d8f02ef2 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -14,11 +14,10 @@ # build: + image: ubuntu:16.04 nodes: auto: commands: - # not working - #- checkout-code ~/build - repo="${SCRUTINIZER_PROJECT#*/}"; git clone "https://github.com/$repo" build - cd ~/build - pwd From cb44f48949f40a615b69e22fed56909c9006666d Mon Sep 17 00:00:00 2001 From: Curtis Doty Date: Mon, 4 Sep 2023 18:35:22 +0000 Subject: [PATCH 2/6] No, this is the right way --- .scrutinizer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 9f1d8f02ef2..1d2c1f8572b 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -14,7 +14,7 @@ # build: - image: ubuntu:16.04 + image: default-bionic nodes: auto: commands: From 2d3e7c126281dfab26f0f6278bcbe2e7c3cc3567 Mon Sep 17 00:00:00 2001 From: Curtis Doty Date: Mon, 4 Sep 2023 18:46:43 +0000 Subject: [PATCH 3/6] Skip apt interactive prompts --- packages/apt_install_packages.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/apt_install_packages.sh b/packages/apt_install_packages.sh index f54162cb239..d591b3a6d3a 100755 --- a/packages/apt_install_packages.sh +++ b/packages/apt_install_packages.sh @@ -112,6 +112,8 @@ fi # uniq packages="$(echo "$packages" | tr ' ' ' \n' | sort -u | tr '\n' ' ')" +export DEBIAN_FRONTEND=noninteractive + # requires fuser which might not already be installed, catch-22 situation if wanting to use this for everything including bootstraps #"$srcdir/apt_wait.sh" From b7905ae10b8d1510437cd69ee4ef2cc5f147c940 Mon Sep 17 00:00:00 2001 From: Curtis Doty Date: Mon, 4 Sep 2023 18:53:14 +0000 Subject: [PATCH 4/6] Still trying to skip apt prompts --- packages/apt_install_packages.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/apt_install_packages.sh b/packages/apt_install_packages.sh index d591b3a6d3a..b84525debd4 100755 --- a/packages/apt_install_packages.sh +++ b/packages/apt_install_packages.sh @@ -112,6 +112,7 @@ fi # uniq packages="$(echo "$packages" | tr ' ' ' \n' | sort -u | tr '\n' ' ')" +export NEEDRESTART_MODE=a export DEBIAN_FRONTEND=noninteractive # requires fuser which might not already be installed, catch-22 situation if wanting to use this for everything including bootstraps From 87d955886f59632bc863abec812bb251967da77d Mon Sep 17 00:00:00 2001 From: Curtis Doty Date: Mon, 4 Sep 2023 19:04:05 +0000 Subject: [PATCH 5/6] More blind debugging --- packages/apt_install_packages.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/apt_install_packages.sh b/packages/apt_install_packages.sh index b84525debd4..a41ae739d6f 100755 --- a/packages/apt_install_packages.sh +++ b/packages/apt_install_packages.sh @@ -23,6 +23,7 @@ set -eu [ -n "${DEBUG:-}" ] && set -x srcdir="$(cd "$(dirname "$0")" && pwd)" +set -x # shellcheck disable=SC1090,SC1091 . "$srcdir/lib/utils-bourne.sh" @@ -114,6 +115,7 @@ packages="$(echo "$packages" | tr ' ' ' \n' | sort -u | tr '\n' ' ')" export NEEDRESTART_MODE=a export DEBIAN_FRONTEND=noninteractive +export DEBIAN_PRIORITY=critical # requires fuser which might not already be installed, catch-22 situation if wanting to use this for everything including bootstraps #"$srcdir/apt_wait.sh" From 5a9e9ac5a28177bb96ef3a43d27051c1c1937cbb Mon Sep 17 00:00:00 2001 From: Curtis Doty Date: Mon, 4 Sep 2023 19:14:41 +0000 Subject: [PATCH 6/6] I give up. This Scrutinizer CI apears to have never worked --- packages/apt_install_packages.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/apt_install_packages.sh b/packages/apt_install_packages.sh index a41ae739d6f..06592a5fcdd 100755 --- a/packages/apt_install_packages.sh +++ b/packages/apt_install_packages.sh @@ -23,7 +23,6 @@ set -eu [ -n "${DEBUG:-}" ] && set -x srcdir="$(cd "$(dirname "$0")" && pwd)" -set -x # shellcheck disable=SC1090,SC1091 . "$srcdir/lib/utils-bourne.sh" @@ -50,6 +49,7 @@ done echo "Installing Deb Packages" +export NEEDRESTART_MODE=a export DEBIAN_FRONTEND=noninteractive #apt="apt" @@ -113,10 +113,6 @@ fi # uniq packages="$(echo "$packages" | tr ' ' ' \n' | sort -u | tr '\n' ' ')" -export NEEDRESTART_MODE=a -export DEBIAN_FRONTEND=noninteractive -export DEBIAN_PRIORITY=critical - # requires fuser which might not already be installed, catch-22 situation if wanting to use this for everything including bootstraps #"$srcdir/apt_wait.sh"