From 34ffda7040f188a997a5393cf2361e645e417cfa Mon Sep 17 00:00:00 2001 From: Dmitrii Anoshin Date: Tue, 14 Jan 2025 21:18:41 -0800 Subject: [PATCH] [chore] Upgrade CI workers for ansible tests (#5737) --- .github/workflows/ansible.yml | 10 ++++------ deployments/ansible/molecule/config/docker.yml | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ansible.yml b/.github/workflows/ansible.yml index b954673501..fc2d76aca5 100644 --- a/.github/workflows/ansible.yml +++ b/.github/workflows/ansible.yml @@ -36,8 +36,7 @@ jobs: lint: name: Lint - # Use 20.04.5 until https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/16450 is resolved - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 steps: - name: Check out the codebase. uses: actions/checkout@v4 @@ -56,8 +55,8 @@ jobs: linux-test: name: Linux Test needs: lint - # Use 20.04.5 until https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/16450 is resolved - runs-on: ubuntu-20.04 + # Use ubuntu-20.04.5 for containers with cgroups v1. Otherwise, use ubuntu-24.04 (cgroups v2). + runs-on: ${{ fromJSON('["ubuntu-24.04", "ubuntu-20.04"]')[contains(fromJSON('["amazonlinux2", "centos9", "opensuse12", "ubuntu1604"]'), matrix.distro)] }} strategy: fail-fast: false matrix: @@ -194,8 +193,7 @@ jobs: push-release-tag: name: Push Release Tag needs: lint - # Use 20.04.5 until https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/16450 is resolved - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 if: github.ref == 'refs/heads/main' steps: - name: Checkout diff --git a/deployments/ansible/molecule/config/docker.yml b/deployments/ansible/molecule/config/docker.yml index f7a8060cf0..f0bd6f090e 100644 --- a/deployments/ansible/molecule/config/docker.yml +++ b/deployments/ansible/molecule/config/docker.yml @@ -14,7 +14,7 @@ platforms: volumes: - /sys/fs/cgroup:/sys/fs/cgroup:rw privileged: true - cgroupns: host + cgroupns_mode: host pre_build_image: false provisioner: