Skip to content

Commit d74608e

Browse files
authored
ci: disable AmazonLinux:2 systemd test cases (#844)
In current situation, there is no better solution to keep systemd test cases on AmazonLinux:2 sustainable. (In other words, keeping AL2 priority is not so high) Before: * Build package for AL2 and test with container and systemd CI After: * Build package for AL2 and test with container Signed-off-by: Kentaro Hayashi <[email protected]>
1 parent 66e93f5 commit d74608e

File tree

1 file changed

+76
-71
lines changed

1 file changed

+76
-71
lines changed

.github/workflows/yum.yml

Lines changed: 76 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -182,77 +182,82 @@ jobs:
182182
--env CENTOS_STREAM=${{ matrix.centos-stream }} \
183183
${{ matrix.test-docker-image }} \
184184
/fluentd/fluent-package/yum/binstubs-test.sh
185-
v1test:
186-
name: Test ${{ matrix.label }} ${{ matrix.test }} (CGroup V1)
187-
needs: [check_package_size, installation_test, serverspec_test, confluent_test, binstubs_test]
188-
# Ubuntu 20.04 is not available anymore, so can't use container based
189-
# approach. Instead, use vagrant on Ubuntu 24.04.
190-
# (NOTE: nested VM is executable on macos-13, but it is too slow)
191-
runs-on: ubuntu-24.04
192-
timeout-minutes: 15
193-
strategy:
194-
fail-fast: false
195-
matrix:
196-
label:
197-
- AmazonLinux 2 x86_64
198-
test:
199-
- "update-from-v4.sh"
200-
- "update-from-v5-lts.sh"
201-
- "downgrade-to-v4.sh"
202-
- "downgrade-to-v5-lts.sh"
203-
- "install-newly.sh local"
204-
- "install-newly.sh v5"
205-
- "install-newly.sh lts"
206-
- "update-to-next-version.sh"
207-
- "update-to-next-version-with-backward-compat-for-v4.sh"
208-
- "update-to-next-version-service-status.sh enabled active"
209-
- "update-to-next-version-service-status.sh enabled inactive"
210-
- "update-to-next-version-service-status.sh disabled active"
211-
- "update-to-next-version-service-status.sh disabled inactive"
212-
- "update-to-next-version-with-auto-and-manual.sh"
213-
- "update-to-next-major-version.sh auto active"
214-
- "update-to-next-major-version.sh auto inactive"
215-
- "update-to-next-major-version.sh manual active"
216-
- "update-to-next-major-version.sh manual inactive"
217-
- "update-to-next-major-version.sh etc active"
218-
- "update-to-next-major-version.sh etc inactive"
219-
- "update-without-data-lost.sh v5 v6"
220-
- "update-without-data-lost.sh v6 v5"
221-
include:
222-
- label: AmazonLinux 2 x86_64
223-
rake-job: amazonlinux-2
224-
steps:
225-
- uses: actions/checkout@v4
226-
- uses: actions/download-artifact@v4
227-
with:
228-
name: packages-${{ matrix.rake-job }}
229-
- uses: actions/download-artifact@v4
230-
with:
231-
name: v6-packages-${{ matrix.rake-job }}
232-
path: v6-test
233-
- name: Show host runner information
234-
run: |
235-
cat /proc/cpuinfo | grep -E "vmx|svm"
236-
lsmod | grep kvm
237-
- name: Set up virtualbox
238-
run: |
239-
sudo apt-get update
240-
sudo apt-get install -y virtualbox
241-
- name: Set up vagrant
242-
run: |
243-
sudo apt-get update
244-
wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
245-
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
246-
sudo apt-get update && sudo apt install -y vagrant
247-
vagrant --version
248-
vagrant status
249-
- name: Spin up vagrant
250-
run: |
251-
vagrant up --provider virtualbox ${{ matrix.rake-job }}
252-
# Run tests based on AlmaLinux 8 (CGroup v1)
253-
- name: Run Test ${{ matrix.test }} on ${{ matrix.rake-job }}
254-
run: |
255-
BOX_MOUNT_DIR=fluent-package/yum/repositories vagrant ssh ${{ matrix.rake-job }} -- /host/fluent-package/yum/systemd-test/${{ matrix.test }}
185+
#
186+
# NOTE: It is hard to keep testing environment for AmazonLinux:2 properly and it is not sustainable enough at this time.
187+
# Thus disable v1test job for a while. (Running AmazonLinux:2 (CGroup v1) on CGroup v2 host with VirtualBox is fragile and not stable enough.)
188+
# If we found a better solution for it, replace with it.
189+
#
190+
# v1test:
191+
# name: Test ${{ matrix.label }} ${{ matrix.test }} (CGroup V1)
192+
# needs: [check_package_size, installation_test, serverspec_test, confluent_test, binstubs_test]
193+
# # Ubuntu 20.04 is not available anymore, so can't use container based
194+
# # approach. Instead, use vagrant on Ubuntu 24.04.
195+
# # (NOTE: nested VM is executable on macos-13, but it is too slow)
196+
# runs-on: ubuntu-24.04
197+
# timeout-minutes: 15
198+
# strategy:
199+
# fail-fast: false
200+
# matrix:
201+
# label:
202+
# - AmazonLinux 2 x86_64
203+
# test:
204+
# - "update-from-v4.sh"
205+
# - "update-from-v5-lts.sh"
206+
# - "downgrade-to-v4.sh"
207+
# - "downgrade-to-v5-lts.sh"
208+
# - "install-newly.sh local"
209+
# - "install-newly.sh v5"
210+
# - "install-newly.sh lts"
211+
# - "update-to-next-version.sh"
212+
# - "update-to-next-version-with-backward-compat-for-v4.sh"
213+
# - "update-to-next-version-service-status.sh enabled active"
214+
# - "update-to-next-version-service-status.sh enabled inactive"
215+
# - "update-to-next-version-service-status.sh disabled active"
216+
# - "update-to-next-version-service-status.sh disabled inactive"
217+
# - "update-to-next-version-with-auto-and-manual.sh"
218+
# - "update-to-next-major-version.sh auto active"
219+
# - "update-to-next-major-version.sh auto inactive"
220+
# - "update-to-next-major-version.sh manual active"
221+
# - "update-to-next-major-version.sh manual inactive"
222+
# - "update-to-next-major-version.sh etc active"
223+
# - "update-to-next-major-version.sh etc inactive"
224+
# - "update-without-data-lost.sh v5 v6"
225+
# - "update-without-data-lost.sh v6 v5"
226+
# include:
227+
# - label: AmazonLinux 2 x86_64
228+
# rake-job: amazonlinux-2
229+
# steps:
230+
# - uses: actions/checkout@v4
231+
# - uses: actions/download-artifact@v4
232+
# with:
233+
# name: packages-${{ matrix.rake-job }}
234+
# - uses: actions/download-artifact@v4
235+
# with:
236+
# name: v6-packages-${{ matrix.rake-job }}
237+
# path: v6-test
238+
# - name: Show host runner information
239+
# run: |
240+
# cat /proc/cpuinfo | grep -E "vmx|svm"
241+
# lsmod | grep kvm
242+
# - name: Set up virtualbox
243+
# run: |
244+
# sudo apt-get update
245+
# sudo apt-get install -y virtualbox
246+
# - name: Set up vagrant
247+
# run: |
248+
# sudo apt-get update
249+
# wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
250+
# echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
251+
# sudo apt-get update && sudo apt install -y vagrant
252+
# vagrant --version
253+
# vagrant status
254+
# - name: Spin up vagrant
255+
# run: |
256+
# vagrant up --provider virtualbox ${{ matrix.rake-job }}
257+
# # Run tests based on AlmaLinux 8 (CGroup v1)
258+
# - name: Run Test ${{ matrix.test }} on ${{ matrix.rake-job }}
259+
# run: |
260+
# BOX_MOUNT_DIR=fluent-package/yum/repositories vagrant ssh ${{ matrix.rake-job }} -- /host/fluent-package/yum/systemd-test/${{ matrix.test }}
256261

257262
v2test:
258263
name: Test ${{ matrix.label }} ${{ matrix.test }} (CGroup V2)

0 commit comments

Comments
 (0)