Skip to content

Commit 7477484

Browse files
committed
fix(ci): use HTTPS apt sources for Bonsai
Rewrite ARM64 package sources before installing GCC and check gallery fixture cleanup errors so the optimized tests satisfy errcheck. Assisted-by: Codex:gpt-5 Signed-off-by: Richard Palethorpe <io@richiejp.com>
1 parent e48b04c commit 7477484

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.docker/bonsai-compile.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ if [ -z "${BUILD_TYPE:-}" ]; then
2525
# Pure CPU image: one ggml CPU_ALL_VARIANTS build replaces the per-microarch binaries.
2626
# arm64: the armv9.2 SME variants need gcc-14 (gcc-13 rejects +sme).
2727
if [ "${TARGETARCH}" = "arm64" ]; then
28-
apt-get update -qq && apt-get install -y -qq gcc-14 g++-14
28+
APT_MIRROR="${APT_MIRROR:-https://azure.archive.ubuntu.com}" \
29+
APT_PORTS_MIRROR="${APT_PORTS_MIRROR:-https://azure.ports.ubuntu.com}" \
30+
sh /LocalAI/.docker/apt-mirror.sh
31+
apt-get update -qq
32+
apt-get install -y -qq gcc-14 g++-14
2933
export CC=gcc-14 CXX=g++-14
3034
fi
3135
make bonsai-cpu-all

core/gallery/backends_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ var _ = Describe("Gallery Backends", func() {
186186
})
187187

188188
AfterEach(func() {
189-
os.RemoveAll(tempDir)
190-
os.RemoveAll(fixtureDir)
189+
Expect(os.RemoveAll(tempDir)).To(Succeed())
190+
Expect(os.RemoveAll(fixtureDir)).To(Succeed())
191191
})
192192

193193
Describe("InstallBackendFromGallery", func() {

0 commit comments

Comments
 (0)