Skip to content

Commit

Permalink
[chef] [chore] Upgrade CI workers for chef tests (#5811)
Browse files Browse the repository at this point in the history
The tests for old systems (amazonlinux-2, opensuse-12, oraclelinux-7) was removed. Newer versions of Chef v18.x+ come with ruby 3.1 which requires glibc 2.28. The removed systems go with glibc 2.26. We could've test them with an old Chef version 17.x, but it has reached EOL.
  • Loading branch information
dmitryax authored Jan 20, 2025
1 parent 1f306bf commit 9f579df
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 36 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/chef-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ env:
jobs:
chef-lint-spec-test:
name: chef-lint-spec-test
# 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
Expand All @@ -46,7 +45,7 @@ jobs:
make rake-spec
chef-kitchen-matrix:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Check out code
uses: actions/checkout@v4
Expand Down Expand Up @@ -80,8 +79,7 @@ jobs:
win-matrix: ${{ steps.get-win-matrix.outputs.matrix }}

chef-kitchen-linux:
# 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
needs: [chef-lint-spec-test, chef-kitchen-matrix]
strategy:
matrix: ${{ fromJSON(needs.chef-kitchen-matrix.outputs.linux-matrix) }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/chef.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ permissions:
jobs:
push-release-tag:
name: Push Release Tag
# 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
Expand Down
29 changes: 0 additions & 29 deletions deployments/chef/kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ verifier:
name: inspec

platforms:
- name: amazonlinux-2
driver:
image: dokken/amazonlinux-2
pid_one_command: /usr/lib/systemd/systemd

- name: centos-9
driver:
image: dokken/centos-stream-9
Expand All @@ -51,35 +46,11 @@ platforms:
image: dokken/debian-12
pid_one_command: /bin/systemd

- name: opensuse-12
driver:
image: opensuse/leap:42
intermediate_instructions: |
ENV container docker
RUN sed -i 's|download.opensuse.org|ftp5.gwdg.de/pub/opensuse/discontinued|' /etc/zypp/repos.d/*.repo
RUN zypper -n clean && zypper -n refresh
RUN zypper -n install -l curl procps dbus-1 systemd-sysvinit tar wget hostname sudo
RUN (cd /usr/lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i = \
"systemd-tmpfiles-setup.service" ] || rm -f $i; done); \
rm -f /usr/lib/systemd/system/multi-user.target.wants/*;\
rm -f /usr/lib/systemd/system/local-fs.target.wants/*; \
rm -f /usr/lib/systemd/system/sockets.target.wants/*udev*; \
rm -f /usr/lib/systemd/system/sockets.target.wants/*initctl*; \
rm -f /usr/lib/systemd/system/basic.target.wants/*;\
rm -f /usr/lib/systemd/system/anaconda.target.wants/*;
ENV init /sbin/init
pid_one_command: /sbin/init

- name: opensuse-15
driver:
image: dokken/opensuse-leap-15
pid_one_command: /usr/lib/systemd/systemd

- name: oraclelinux-7
driver:
image: dokken/oraclelinux-7
pid_one_command: /usr/lib/systemd/systemd

- name: oraclelinux-8
driver:
image: dokken/oraclelinux-8
Expand Down

0 comments on commit 9f579df

Please sign in to comment.