@@ -138,67 +138,72 @@ jobs:
138138 --env CENTOS_STREAM=${{ matrix.centos-stream }} \
139139 ${{ matrix.test-docker-image }} \
140140 /fluentd/fluent-package/yum/binstubs-test.sh
141- v1test :
142- name : Test ${{ matrix.label }} ${{ matrix.test-file }} (CGroup V1)
143- needs : [check_package_size, installation_test, serverspec_test, binstubs_test]
144- # Ubuntu 20.04 is not available anymore, so can't use container based
145- # approach. Instead, use vagrant on Ubuntu 24.04.
146- # (NOTE: nested VM is executable on macos-13, but it is too slow)
147- runs-on : ubuntu-24.04
148- timeout-minutes : 15
149- strategy :
150- fail-fast : false
151- matrix :
152- label :
153- - AmazonLinux 2 x86_64
154- - AmazonLinux 2023 x86_64
155- test-file :
156- - " update-from-v4.sh"
157- - " update-to-next-version-with-backward-compat-for-v4.sh"
158- - " downgrade-to-v4.sh"
159- - " install-newly.sh local"
160- - " install-newly.sh v5"
161- - " install-newly.sh lts"
162- include :
163- - label : AmazonLinux 2 x86_64
164- rake-job : amazonlinux-2
165- - label : AmazonLinux 2023 x86_64
166- rake-job : amazonlinux-2023
167- exclude :
168- - label : AmazonLinux 2023 x86_64
169- test-file : update-from-v4.sh
170- - label : AmazonLinux 2023 x86_64
171- test-file : update-to-next-version-with-backward-compat-for-v4.sh
172- - label : AmazonLinux 2023 x86_64
173- test-file : downgrade-to-v4.sh
174- steps :
175- - uses : actions/checkout@v4
176- - uses : actions/download-artifact@v4
177- with :
178- name : packages-${{ matrix.rake-job }}
179- - name : Show host runner information
180- run : |
181- cat /proc/cpuinfo | grep -E "vmx|svm"
182- lsmod | grep kvm
183- - name : Set up virtualbox
184- run : |
185- sudo apt-get update
186- sudo apt-get install -y virtualbox
187- - name : Set up vagrant
188- run : |
189- sudo apt-get update
190- wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
191- 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
192- sudo apt-get update && sudo apt install -y vagrant
193- vagrant --version
194- vagrant status
195- - name : Spin up vagrant
196- run : |
197- vagrant up --provider virtualbox ${{ matrix.rake-job }}
198- # Run tests based on AlmaLinux 8 (CGroup v1)
199- - name : Run Test ${{ matrix.test-file }} on ${{ matrix.rake-job }}
200- run : |
201- BOX_MOUNT_DIR=fluent-package/yum/repositories vagrant ssh ${{ matrix.rake-job }} -- /host/fluent-package/yum/systemd-test/${{ matrix.test-file }}
141+ #
142+ # NOTE: It is hard to keep testing environment for AmazonLinux:2 properly and it is not sustainable enough at this time.
143+ # Thus disable v1test job for a while. (Running AmazonLinux:2 (CGroup v1) on CGroup v2 host with VirtualBox is fragile and not stable enough.)
144+ # If we found a better solution for it, replace with it.
145+ #
146+ # v1test:
147+ # name: Test ${{ matrix.label }} ${{ matrix.test-file }} (CGroup V1)
148+ # needs: [check_package_size, installation_test, serverspec_test, binstubs_test]
149+ # # Ubuntu 20.04 is not available anymore, so can't use container based
150+ # # approach. Instead, use vagrant on Ubuntu 24.04.
151+ # # (NOTE: nested VM is executable on macos-13, but it is too slow)
152+ # runs-on: ubuntu-24.04
153+ # timeout-minutes: 15
154+ # strategy:
155+ # fail-fast: false
156+ # matrix:
157+ # label:
158+ # - AmazonLinux 2 x86_64
159+ # - AmazonLinux 2023 x86_64
160+ # test-file:
161+ # - "update-from-v4.sh"
162+ # - "update-to-next-version-with-backward-compat-for-v4.sh"
163+ # - "downgrade-to-v4.sh"
164+ # - "install-newly.sh local"
165+ # - "install-newly.sh v5"
166+ # - "install-newly.sh lts"
167+ # include:
168+ # - label: AmazonLinux 2 x86_64
169+ # rake-job: amazonlinux-2
170+ # - label: AmazonLinux 2023 x86_64
171+ # rake-job: amazonlinux-2023
172+ # exclude:
173+ # - label: AmazonLinux 2023 x86_64
174+ # test-file: update-from-v4.sh
175+ # - label: AmazonLinux 2023 x86_64
176+ # test-file: update-to-next-version-with-backward-compat-for-v4.sh
177+ # - label: AmazonLinux 2023 x86_64
178+ # test-file: downgrade-to-v4.sh
179+ # steps:
180+ # - uses: actions/checkout@v4
181+ # - uses: actions/download-artifact@v4
182+ # with:
183+ # name: packages-${{ matrix.rake-job }}
184+ # - name: Show host runner information
185+ # run: |
186+ # cat /proc/cpuinfo | grep -E "vmx|svm"
187+ # lsmod | grep kvm
188+ # - name: Set up virtualbox
189+ # run: |
190+ # sudo apt-get update
191+ # sudo apt-get install -y virtualbox
192+ # - name: Set up vagrant
193+ # run: |
194+ # sudo apt-get update
195+ # wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
196+ # 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
197+ # sudo apt-get update && sudo apt install -y vagrant
198+ # vagrant --version
199+ # vagrant status
200+ # - name: Spin up vagrant
201+ # run: |
202+ # vagrant up --provider virtualbox ${{ matrix.rake-job }}
203+ # # Run tests based on AlmaLinux 8 (CGroup v1)
204+ # - name: Run Test ${{ matrix.test-file }} on ${{ matrix.rake-job }}
205+ # run: |
206+ # BOX_MOUNT_DIR=fluent-package/yum/repositories vagrant ssh ${{ matrix.rake-job }} -- /host/fluent-package/yum/systemd-test/${{ matrix.test-file }}
202207
203208 v2test :
204209 name : Test ${{ matrix.label }} ${{ matrix.test-file }} (CGroup V2)
0 commit comments