From cfb92154d14dad12cf4d95edc9564adb4c262f97 Mon Sep 17 00:00:00 2001 From: Francois Ferrand Date: Thu, 11 Apr 2024 01:16:18 +0200 Subject: [PATCH] debug --- .github/workflows/actions.yaml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/actions.yaml b/.github/workflows/actions.yaml index baa3c19..d09f576 100644 --- a/.github/workflows/actions.yaml +++ b/.github/workflows/actions.yaml @@ -49,14 +49,14 @@ jobs: test: needs: build - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - name: Install dependencies run: | OS=xUbuntu_20.04 - CRIO_VERSION=1.21 + CRIO_VERSION=1.23 KUBIC_REPO=https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable sudo tee /etc/apt/sources.list.d/kubic-libcontainers.list <<< "deb $KUBIC_REPO/$OS/ /" sudo tee -a /etc/apt/sources.list.d/kubic-libcontainers.list <<< "deb $KUBIC_REPO:/cri-o:/$CRIO_VERSION/$OS/ /" @@ -66,7 +66,7 @@ jobs: sudo apt-get -y install cri-o cri-o-runc cri-tools hardlink # Fix libpcre2-posix2 package version, use the - sudo apt-get -y install --reinstall --allow-downgrades libpcre2-posix2/$(lsb_release -cs) + #sudo apt-get -y install --reinstall --allow-downgrades libpcre2-posix2/$(lsb_release -cs) # Also need skopeo ; but it is already installed @@ -74,6 +74,9 @@ jobs: # Start cri-o service sudo systemctl start crio + + containerd config default > /etc/containerd/config.toml + systemctl restart containerd # TODO: cache the installed image? - name: Downgrade Oras to 0.12.0 @@ -86,6 +89,14 @@ jobs: - name: Unit testing with bash_unit run: | + containerd --version || true + ctr --version || true + sudo ctr plugin ls + sudo cat /etc/containerd/config.toml + + sleep 5 + sudo ctr plugin ls + export IMAGE="${{ env.DOCKER_IMAGE }}:${{ github.sha }}" sudo FORCE_COLOR=true ./bash_unit test.sh # TODO: parse individual tests results (in TAP format)