From babe46d6613b00884e1a649f08f08971955d1047 Mon Sep 17 00:00:00 2001 From: yhaliaw <43424755+yhaliaw@users.noreply.github.com> Date: Thu, 18 Jan 2024 10:42:58 +0800 Subject: [PATCH 1/3] Remove previous kernel and clean cache during image build (#190) --- scripts/build-image.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/build-image.sh b/scripts/build-image.sh index 315bcd09c..5fb616feb 100644 --- a/scripts/build-image.sh +++ b/scripts/build-image.sh @@ -87,6 +87,8 @@ retry '/snap/bin/lxc exec builder -- /usr/bin/nslookup github.com' 'Wait for net /snap/bin/lxc exec builder -- /usr/bin/apt-get update /snap/bin/lxc exec builder --env DEBIAN_FRONTEND=noninteractive -- /usr/bin/apt-get upgrade -yq /snap/bin/lxc exec builder --env DEBIAN_FRONTEND=noninteractive -- /usr/bin/apt-get install linux-generic-hwe-22.04 -yq +# This will remove older version of kernel as HWE is installed now. +/snap/bin/lxc exec builder -- /usr/bin/apt-get autoremove --purge /snap/bin/lxc restart builder retry '/snap/bin/lxc exec builder -- /usr/bin/who' 'Wait for lxd agent to be ready' 30 @@ -107,6 +109,10 @@ fi /snap/bin/lxc exec builder -- /usr/sbin/usermod -aG docker ubuntu /snap/bin/lxc exec builder -- /usr/sbin/iptables -I DOCKER-USER -j ACCEPT +# Reduce image size +/snap/bin/lxc exec builder -- /usr/bin/npm cache clean --force +/snap/bin/lxc exec builder -- /usr/bin/apt-get clean + # Download and verify checksum of yq if [[ $(uname -m) == 'aarch64' ]]; then YQ_ARCH="arm64" From 0ba6cfebefbf59c3cd5e23f43febe5b3d00cff60 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 18 Jan 2024 13:13:09 +0800 Subject: [PATCH 2/3] chore(deps): update actions/cache action to v4 (#197) --- .github/workflows/e2e_test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e_test.yaml b/.github/workflows/e2e_test.yaml index 3f549c8ae..a52b62ca9 100644 --- a/.github/workflows/e2e_test.yaml +++ b/.github/workflows/e2e_test.yaml @@ -34,7 +34,7 @@ jobs: EOF - name: Cache github-runner Charm - uses: actions/cache@v3 + uses: actions/cache@v4 id: cache-charm with: path: github-runner_ubuntu-22.04-amd64.charm From 1f11e2e7adc283ca2b7c7d6463fc024994881313 Mon Sep 17 00:00:00 2001 From: Yanks Yoon <37652070+yanksyoon@users.noreply.github.com> Date: Thu, 18 Jan 2024 14:36:50 +0800 Subject: [PATCH 3/3] test: increase debug ssh workflow timeout (#198) * test: add testing workflow yaml * test: allow longer test workflow timeout --- .github/workflows/workflow_dispatch_ssh_debug.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/workflow_dispatch_ssh_debug.yaml b/.github/workflows/workflow_dispatch_ssh_debug.yaml index a44458bc4..e4f388c14 100644 --- a/.github/workflows/workflow_dispatch_ssh_debug.yaml +++ b/.github/workflows/workflow_dispatch_ssh_debug.yaml @@ -14,4 +14,4 @@ jobs: steps: - name: Setup tmate session uses: canonical/action-tmate@chore/env_var_change - timeout-minutes: 1 + timeout-minutes: 5