From 721bfd52a531b6223dfbdcd0e88d1fc79c31077d Mon Sep 17 00:00:00 2001 From: Michael Burman Date: Wed, 15 May 2024 18:33:43 +0300 Subject: [PATCH] =?UTF-8?q?Mass=20change=20of=20github=20action=20versions?= =?UTF-8?q?=20to=20get=20rid=20of=20the=20deprecation=20n=E2=80=A6=20(#644?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Mass change of github action versions to get rid of the deprecation notices * Update missing ones --- .github/actions/run-integ-test/action.yml | 6 +- .github/workflows/kindIntegTest.yml | 66 +++++++------- .github/workflows/operatorBuildAndDeploy.yml | 24 ++--- .github/workflows/release.yml | 22 ++--- .../workflows/workflow-integration-tests.yaml | 90 +++++++++---------- 5 files changed, 104 insertions(+), 104 deletions(-) diff --git a/.github/actions/run-integ-test/action.yml b/.github/actions/run-integ-test/action.yml index d9cae28a..0e4cb8b2 100644 --- a/.github/actions/run-integ-test/action.yml +++ b/.github/actions/run-integ-test/action.yml @@ -23,7 +23,7 @@ runs: sudo rm -rf /usr/share/dotnet sudo rm -rf /opt/ghc - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version-file: 'go.mod' cache: true @@ -38,12 +38,12 @@ runs: run: | hack/cluster.sh - name: Download cass-operator image - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: cass-operator path: /tmp - name: Download system-logger image - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: system-logger path: /tmp diff --git a/.github/workflows/kindIntegTest.yml b/.github/workflows/kindIntegTest.yml index 9c173a2d..fe79dd35 100644 --- a/.github/workflows/kindIntegTest.yml +++ b/.github/workflows/kindIntegTest.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} - name: Set version value @@ -20,10 +20,10 @@ jobs: run: | echo "version=$(make version)" >> $GITHUB_OUTPUT - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Build and push id: docker_build - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: file: Dockerfile context: . @@ -34,7 +34,7 @@ jobs: cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache - name: Build and push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: file: logger.Dockerfile push: false @@ -44,12 +44,12 @@ jobs: cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache - name: Upload cass-operator image - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cass-operator path: /tmp/k8ssandra-cass-operator.tar - name: Upload system-logger image - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: system-logger path: /tmp/k8ssandra-system-logger.tar @@ -65,21 +65,21 @@ jobs: env: CGO_ENABLED: 0 M_INTEG_DIR: ${{ matrix.integration_test }} - M_SERVER_VERSION: 3.11.15 + M_SERVER_VERSION: 3.11.17 M_SERVER_TYPE: cassandra steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'pull_request' with: ref: ${{ github.event.pull_request.head.sha }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name != 'pull_request' - uses: ./.github/actions/run-integ-test with: integration_test: ${{ matrix.integration_test }} - name: Archive k8s logs if: ${{ failure() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: k8s-logs-${{ matrix.integration_test }} path: ./build/kubectl_dump @@ -89,7 +89,7 @@ jobs: strategy: matrix: version: - - "4.0.10" + - "4.0.12" integration_test: - cdc_successful # OSS only - config_fql @@ -98,18 +98,18 @@ jobs: CGO_ENABLED: 0 M_INTEG_DIR: ${{ matrix.integration_test }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'pull_request' with: ref: ${{ github.event.pull_request.head.sha }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name != 'pull_request' - uses: ./.github/actions/run-integ-test with: integration_test: ${{ matrix.integration_test }} - name: Archive k8s logs if: ${{ failure() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: k8s-logs-${{ matrix.integration_test }} path: ./build/kubectl_dump @@ -118,12 +118,12 @@ jobs: strategy: matrix: version: - - "6.8.39" + - "6.8.46" integration_test: - cdc_successful include: - - version: 6.8.39 - serverImage: datastax/dse-mgmtapi-6_8:6.8.39-ubi8 # DSE 6.8.39 + - version: 6.8.46 + serverImage: datastax/dse-mgmtapi-6_8:6.8.46-ubi8 # DSE 6.8.46 serverType: dse integration_test: "cdc_successful" fail-fast: true @@ -135,18 +135,18 @@ jobs: M_SERVER_IMAGE: ${{ matrix.serverImage }} M_SERVER_TYPE: ${{ matrix.serverType }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'pull_request' with: ref: ${{ github.event.pull_request.head.sha }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name != 'pull_request' - uses: ./.github/actions/run-integ-test with: integration_test: ${{ matrix.integration_test }} - name: Archive k8s logs if: ${{ failure() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: k8s-logs-smoke_test-${{ matrix.version }} path: ./build/kubectl_dump @@ -156,7 +156,7 @@ jobs: strategy: matrix: version: - - "4.1.2" + - "4.1.4" integration_test: # Single worker tests: - additional_serviceoptions @@ -213,18 +213,18 @@ jobs: M_INTEG_DIR: ${{ matrix.integration_test }} M_SERVER_VERSION: ${{ matrix.version }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'pull_request' with: ref: ${{ github.event.pull_request.head.sha }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name != 'pull_request' - uses: ./.github/actions/run-integ-test with: integration_test: ${{ matrix.integration_test }} - name: Archive k8s logs if: ${{ failure() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: k8s-logs-${{ matrix.integration_test }}-${{ matrix.version }} path: ./build/kubectl_dump @@ -233,15 +233,15 @@ jobs: strategy: matrix: version: - - "3.11.15" - - "4.0.10" - - "4.1.2" - - "6.8.39" + - "3.11.17" + - "4.0.12" + - "4.1.4" + - "6.8.46" integration_test: - test_all_the_things include: - - version: 6.8.39 - serverImage: datastax/dse-mgmtapi-6_8:6.8.39-ubi8 # DSE 6.8.39 + - version: 6.8.46 + serverImage: datastax/dse-mgmtapi-6_8:6.8.46-ubi8 # DSE 6.8.46 serverType: dse integration_test: "test_all_the_things" fail-fast: true @@ -253,18 +253,18 @@ jobs: M_SERVER_IMAGE: ${{ matrix.serverImage }} M_SERVER_TYPE: ${{ matrix.serverType }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'pull_request' with: ref: ${{ github.event.pull_request.head.sha }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name != 'pull_request' - uses: ./.github/actions/run-integ-test with: integration_test: ${{ matrix.integration_test }} - name: Archive k8s logs if: ${{ failure() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: k8s-logs-smoke_test-${{ matrix.version }} path: ./build/kubectl_dump diff --git a/.github/workflows/operatorBuildAndDeploy.yml b/.github/workflows/operatorBuildAndDeploy.yml index 3a05f8fa..c67422c0 100644 --- a/.github/workflows/operatorBuildAndDeploy.yml +++ b/.github/workflows/operatorBuildAndDeploy.yml @@ -13,21 +13,21 @@ jobs: env: CGO_ENABLED: 0 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'pull_request' with: ref: ${{ github.event.pull_request.head.sha }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name != 'pull_request' - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version-file: 'go.mod' cache: true - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v4 with: version: latest # GHA requires longer timeout @@ -51,16 +51,16 @@ jobs: if: github.ref == 'refs/heads/master' steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version-file: 'go.mod' cache: true - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_PASSWORD }} @@ -72,7 +72,7 @@ jobs: echo "version=$(make version)" >> $GITHUB_OUTPUT - name: Build and push id: docker_build_cass_operator - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: file: Dockerfile context: . @@ -83,7 +83,7 @@ jobs: cache-to: type=local,dest=/tmp/.buildx-cache - name: Build and push id: docker_build_system_logger - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: file: logger.Dockerfile push: ${{ github.event_name != 'pull_request' }} @@ -99,7 +99,7 @@ jobs: bin/operator-sdk bundle validate ./bundle --select-optional name=good-practices - name: Build and push cass-operator-bundle id: docker_build_cass-operator_bundle - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: file: bundle.Dockerfile build-args: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 156add43..f6a516cc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,25 +13,25 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: go-version-file: 'go.mod' cache: true - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to DockerHub if: ${{ !env.ACT }} - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_PASSWORD }} - name: Login to GitHub Container Registry if: ${{ !env.ACT }} - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} @@ -45,7 +45,7 @@ jobs: echo "TARGET_VERSION=$(echo ${GITHUB_REF#refs/tags/} | awk '{print substr($0,2)}')" >> $GITHUB_ENV - name: Build system-logger id: docker_build_system-logger - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: file: logger.Dockerfile build-args: | @@ -58,7 +58,7 @@ jobs: cache-to: type=local,dest=/tmp/.buildx-cache - name: Build cass-operator id: docker_build_cass-operator - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: file: Dockerfile build-args: | @@ -71,7 +71,7 @@ jobs: cache-to: type=local,dest=/tmp/.buildx-cache - name: Push system-logger id: docker_push_system-logger - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: file: logger.Dockerfile build-args: | @@ -84,7 +84,7 @@ jobs: cache-to: type=local,dest=/tmp/.buildx-cache - name: Push cass-operator id: docker_push_cass-operator - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: file: Dockerfile build-args: | @@ -134,7 +134,7 @@ jobs: - name: Build and push cass-operator-bundle id: docker_build_cass-operator_bundle if: ${{ !env.ACT }} - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: file: bundle.Dockerfile build-args: | diff --git a/.github/workflows/workflow-integration-tests.yaml b/.github/workflows/workflow-integration-tests.yaml index 2cd7e693..999d5b41 100644 --- a/.github/workflows/workflow-integration-tests.yaml +++ b/.github/workflows/workflow-integration-tests.yaml @@ -20,12 +20,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code into the Go module directory - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Build and push id: docker_build - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: file: Dockerfile context: . @@ -36,7 +36,7 @@ jobs: cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache - name: Build and push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: file: logger.Dockerfile push: false @@ -46,12 +46,12 @@ jobs: cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache - name: Upload cass-operator image - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cass-operator path: /tmp/k8ssandra-cass-operator.tar - name: Upload system-logger image - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: system-logger path: /tmp/k8ssandra-system-logger.tar @@ -74,18 +74,18 @@ jobs: M_INTEG_DIR: ${{ matrix.integration_test }} M_SERVER_VERSION: ${{ matrix.version }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'pull_request' with: ref: ${{ github.event.pull_request.head.sha }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name != 'pull_request' - uses: ./.github/actions/run-integ-test with: integration_test: ${{ matrix.integration_test }} - name: Archive k8s logs if: ${{ failure() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: k8s-logs-${{ matrix.integration_test }} path: ./build/kubectl_dump @@ -96,7 +96,7 @@ jobs: strategy: matrix: version: - - "4.0.7" + - "4.0.12" integration_test: - canary_upgrade - config_fql @@ -109,18 +109,18 @@ jobs: M_INTEG_DIR: ${{ matrix.integration_test }} M_SERVER_VERSION: ${{ matrix.version }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'pull_request' with: ref: ${{ github.event.pull_request.head.sha }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name != 'pull_request' - uses: ./.github/actions/run-integ-test with: integration_test: ${{ matrix.integration_test }} - name: Archive k8s logs if: ${{ failure() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: k8s-logs-${{ matrix.integration_test }}-${{ matrix.version }} path: ./build/kubectl_dump @@ -131,13 +131,13 @@ jobs: strategy: matrix: version: - - "6.8.29" + - "6.8.46" integration_test: #- delete_node_lost_readiness #TODO: fix in https://github.com/k8ssandra/cass-operator/issues/459 - additional_seeds include: - - version: "6.8.29" - serverImage: datastax/dse-mgmtapi-6_8:6.8.29-jdk8 # DSE 6.8.29 + - version: "6.8.46" + serverImage: datastax/dse-mgmtapi-6_8:6.8.46-ubi8 # DSE 6.8.46 serverType: dse runs-on: ubuntu-latest env: @@ -146,18 +146,18 @@ jobs: M_SERVER_VERSION: ${{ matrix.version }} M_SERVER_TYPE: dse steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'pull_request' with: ref: ${{ github.event.pull_request.head.sha }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name != 'pull_request' - uses: ./.github/actions/run-integ-test with: integration_test: ${{ matrix.integration_test }} - name: Archive k8s logs if: ${{ failure() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: k8s-logs-${{ matrix.integration_test }}-dse-${{ matrix.version }} path: ./build/kubectl_dump @@ -167,9 +167,9 @@ jobs: strategy: matrix: version: - - "3.11.14" - - "4.0.7" - - "6.8.29" + - "3.11.17" + - "4.0.12" + - "6.8.46" integration_test: # Single worker tests: - additional_serviceoptions @@ -219,17 +219,17 @@ jobs: workflowVersion: - ${{ inputs.version }} exclude: - - version: "3.11.14" + - version: "3.11.17" workflowVersion: "4.0" - - version: "3.11.14" + - version: "3.11.17" workflowVersion: "6.8" - - version: "4.0.7" + - version: "4.0.12" workflowVersion: "3.11" - - version: "4.0.7" + - version: "4.0.12" workflowVersion: "6.8" - - version: "6.8.29" + - version: "6.8.46" workflowVersion: "3.11" - - version: "6.8.29" + - version: "6.8.46" workflowVersion: "4.0" # let other tests continue to run # even if one fails @@ -240,23 +240,23 @@ jobs: M_INTEG_DIR: ${{ matrix.integration_test }} M_SERVER_VERSION: ${{ matrix.version }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'pull_request' with: ref: ${{ github.event.pull_request.head.sha }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name != 'pull_request' - name: set environment for DSE if: ${{ startsWith( matrix.version, '6.8' ) }} run: | - echo "M_SERVER_IMAGE=datastax/dse-mgmtapi-6_8:6.8.29-jdk8" >> $GITHUB_ENV + echo "M_SERVER_IMAGE=datastax/dse-mgmtapi-6_8:6.8.46-ubi8" >> $GITHUB_ENV echo "M_SERVER_TYPE=dse" >> $GITHUB_ENV - uses: ./.github/actions/run-integ-test with: integration_test: ${{ matrix.integration_test }} - name: Archive k8s logs if: ${{ failure() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: k8s-logs-${{ matrix.integration_test }}-${{ matrix.version }} path: ./build/kubectl_dump @@ -265,23 +265,23 @@ jobs: strategy: matrix: version: - - "3.11.14" - - "4.0.7" - - "6.8.29" + - "3.11.17" + - "4.0.12" + - "6.8.46" workflowVersion: - ${{ inputs.version }} exclude: - - version: "3.11.14" + - version: "3.11.17" workflowVersion: "4.0" - - version: "3.11.14" + - version: "3.11.17" workflowVersion: "6.8" - - version: "4.0.7" + - version: "4.0.12" workflowVersion: "3.11" - - version: "4.0.7" + - version: "4.0.12" workflowVersion: "6.8" - - version: "6.8.29" + - version: "6.8.46" workflowVersion: "3.11" - - version: "6.8.29" + - version: "6.8.46" workflowVersion: "4.0" fail-fast: true runs-on: ubuntu-latest @@ -290,23 +290,23 @@ jobs: M_INTEG_DIR: test_all_the_things M_SERVER_VERSION: ${{ matrix.version }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'pull_request' with: ref: ${{ github.event.pull_request.head.sha }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name != 'pull_request' - name: set environment for DSE if: ${{ startsWith( matrix.version, '6.8' ) }} run: | - echo "M_SERVER_IMAGE=datastax/dse-mgmtapi-6_8:6.8.29-jdk8" >> $GITHUB_ENV + echo "M_SERVER_IMAGE=datastax/dse-mgmtapi-6_8:6.8.46-ubi8" >> $GITHUB_ENV echo "M_SERVER_TYPE=dse" >> $GITHUB_ENV - uses: ./.github/actions/run-integ-test with: integration_test: test_all_the_things - name: Archive k8s logs if: ${{ failure() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: k8s-logs-smoke_test-${{ matrix.version }} path: ./build/kubectl_dump