diff --git a/.github/workflows/yum.yml b/.github/workflows/yum.yml index 0bf1a6513..bb1e14860 100644 --- a/.github/workflows/yum.yml +++ b/.github/workflows/yum.yml @@ -182,77 +182,82 @@ jobs: --env CENTOS_STREAM=${{ matrix.centos-stream }} \ ${{ matrix.test-docker-image }} \ /fluentd/fluent-package/yum/binstubs-test.sh - v1test: - name: Test ${{ matrix.label }} ${{ matrix.test }} (CGroup V1) - needs: [check_package_size, installation_test, serverspec_test, confluent_test, binstubs_test] - # Ubuntu 20.04 is not available anymore, so can't use container based - # approach. Instead, use vagrant on Ubuntu 24.04. - # (NOTE: nested VM is executable on macos-13, but it is too slow) - runs-on: ubuntu-24.04 - timeout-minutes: 15 - strategy: - fail-fast: false - matrix: - label: - - AmazonLinux 2 x86_64 - test: - - "update-from-v4.sh" - - "update-from-v5-lts.sh" - - "downgrade-to-v4.sh" - - "downgrade-to-v5-lts.sh" - - "install-newly.sh local" - - "install-newly.sh v5" - - "install-newly.sh lts" - - "update-to-next-version.sh" - - "update-to-next-version-with-backward-compat-for-v4.sh" - - "update-to-next-version-service-status.sh enabled active" - - "update-to-next-version-service-status.sh enabled inactive" - - "update-to-next-version-service-status.sh disabled active" - - "update-to-next-version-service-status.sh disabled inactive" - - "update-to-next-version-with-auto-and-manual.sh" - - "update-to-next-major-version.sh auto active" - - "update-to-next-major-version.sh auto inactive" - - "update-to-next-major-version.sh manual active" - - "update-to-next-major-version.sh manual inactive" - - "update-to-next-major-version.sh etc active" - - "update-to-next-major-version.sh etc inactive" - - "update-without-data-lost.sh v5 v6" - - "update-without-data-lost.sh v6 v5" - include: - - label: AmazonLinux 2 x86_64 - rake-job: amazonlinux-2 - steps: - - uses: actions/checkout@v4 - - uses: actions/download-artifact@v4 - with: - name: packages-${{ matrix.rake-job }} - - uses: actions/download-artifact@v4 - with: - name: v6-packages-${{ matrix.rake-job }} - path: v6-test - - name: Show host runner information - run: | - cat /proc/cpuinfo | grep -E "vmx|svm" - lsmod | grep kvm - - name: Set up virtualbox - run: | - sudo apt-get update - sudo apt-get install -y virtualbox - - name: Set up vagrant - run: | - sudo apt-get update - wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg - 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 - sudo apt-get update && sudo apt install -y vagrant - vagrant --version - vagrant status - - name: Spin up vagrant - run: | - vagrant up --provider virtualbox ${{ matrix.rake-job }} - # Run tests based on AlmaLinux 8 (CGroup v1) - - name: Run Test ${{ matrix.test }} on ${{ matrix.rake-job }} - run: | - BOX_MOUNT_DIR=fluent-package/yum/repositories vagrant ssh ${{ matrix.rake-job }} -- /host/fluent-package/yum/systemd-test/${{ matrix.test }} + # + # NOTE: It is hard to keep testing environment for AmazonLinux:2 properly and it is not sustainable enough at this time. + # Thus disable v1test job for a while. (Running AmazonLinux:2 (CGroup v1) on CGroup v2 host with VirtualBox is fragile and not stable enough.) + # If we found a better solution for it, replace with it. + # + # v1test: + # name: Test ${{ matrix.label }} ${{ matrix.test }} (CGroup V1) + # needs: [check_package_size, installation_test, serverspec_test, confluent_test, binstubs_test] + # # Ubuntu 20.04 is not available anymore, so can't use container based + # # approach. Instead, use vagrant on Ubuntu 24.04. + # # (NOTE: nested VM is executable on macos-13, but it is too slow) + # runs-on: ubuntu-24.04 + # timeout-minutes: 15 + # strategy: + # fail-fast: false + # matrix: + # label: + # - AmazonLinux 2 x86_64 + # test: + # - "update-from-v4.sh" + # - "update-from-v5-lts.sh" + # - "downgrade-to-v4.sh" + # - "downgrade-to-v5-lts.sh" + # - "install-newly.sh local" + # - "install-newly.sh v5" + # - "install-newly.sh lts" + # - "update-to-next-version.sh" + # - "update-to-next-version-with-backward-compat-for-v4.sh" + # - "update-to-next-version-service-status.sh enabled active" + # - "update-to-next-version-service-status.sh enabled inactive" + # - "update-to-next-version-service-status.sh disabled active" + # - "update-to-next-version-service-status.sh disabled inactive" + # - "update-to-next-version-with-auto-and-manual.sh" + # - "update-to-next-major-version.sh auto active" + # - "update-to-next-major-version.sh auto inactive" + # - "update-to-next-major-version.sh manual active" + # - "update-to-next-major-version.sh manual inactive" + # - "update-to-next-major-version.sh etc active" + # - "update-to-next-major-version.sh etc inactive" + # - "update-without-data-lost.sh v5 v6" + # - "update-without-data-lost.sh v6 v5" + # include: + # - label: AmazonLinux 2 x86_64 + # rake-job: amazonlinux-2 + # steps: + # - uses: actions/checkout@v4 + # - uses: actions/download-artifact@v4 + # with: + # name: packages-${{ matrix.rake-job }} + # - uses: actions/download-artifact@v4 + # with: + # name: v6-packages-${{ matrix.rake-job }} + # path: v6-test + # - name: Show host runner information + # run: | + # cat /proc/cpuinfo | grep -E "vmx|svm" + # lsmod | grep kvm + # - name: Set up virtualbox + # run: | + # sudo apt-get update + # sudo apt-get install -y virtualbox + # - name: Set up vagrant + # run: | + # sudo apt-get update + # wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg + # 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 + # sudo apt-get update && sudo apt install -y vagrant + # vagrant --version + # vagrant status + # - name: Spin up vagrant + # run: | + # vagrant up --provider virtualbox ${{ matrix.rake-job }} + # # Run tests based on AlmaLinux 8 (CGroup v1) + # - name: Run Test ${{ matrix.test }} on ${{ matrix.rake-job }} + # run: | + # BOX_MOUNT_DIR=fluent-package/yum/repositories vagrant ssh ${{ matrix.rake-job }} -- /host/fluent-package/yum/systemd-test/${{ matrix.test }} v2test: name: Test ${{ matrix.label }} ${{ matrix.test }} (CGroup V2)