diff --git a/.github/workflows/run_nightly_tests.yaml b/.github/workflows/run_nightly_tests.yaml new file mode 100644 index 0000000..a3a02b5 --- /dev/null +++ b/.github/workflows/run_nightly_tests.yaml @@ -0,0 +1,22 @@ +name: Run Nightly Zookeeper Pipeline + +permissions: + actions: write + contents: read + +on: + schedule: + - cron: '0 2 * * *' + +jobs: + Nightly-Zookeeper-Pipeline: + uses: Netcracker/qubership-test-pipelines/.github/workflows/zookeeper.yaml@905b88900dc8c14291eaeff4eddcf4d4f734aee1 #v1.9.0 + with: + service_branch: '${{ github.head_ref || github.ref_name }}' + pipeline_branch: '905b88900dc8c14291eaeff4eddcf4d4f734aee1' #this value must match the value after '@' in 'uses' + runner_type: 'ubuntu-latest' + scope: 'nightly' + secrets: + AWS_S3_ACCESS_KEY_ID: ${{secrets.AWS_S3_ACCESS_KEY_ID}} + AWS_S3_ACCESS_KEY_SECRET: ${{secrets.AWS_S3_ACCESS_KEY_SECRET}} + diff --git a/.github/workflows/run_tests.yaml b/.github/workflows/run_tests.yaml index 72a4644..e0d20c1 100644 --- a/.github/workflows/run_tests.yaml +++ b/.github/workflows/run_tests.yaml @@ -9,42 +9,53 @@ on: pull_request: types: [opened, synchronize, reopened] branches: [main] - paths-ignore: - - "docs/**" - - "CODE-OF-CONDUCT.md" - - "CONTRIBUTING.md" - - "LICENSE" - - "README.md" - - "SECURITY.md" push: branches: [main] - paths-ignore: - - "docs/**" - - "CODE-OF-CONDUCT.md" - - "CONTRIBUTING.md" - - "LICENSE" - - "README.md" - - "SECURITY.md" jobs: Wait-for-images: runs-on: ubuntu-latest outputs: - conclusion: ${{ steps.wait.outputs.conclusion }} + skip_tests: ${{ steps.check.outputs.skip_tests }} steps: + - name: Check if dev_build.yml was triggered for this commit + id: check + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + if [[ "${{ github.event_name }}" == "pull_request" ]]; then + SHA="${{ github.event.pull_request.head.sha }}" + else + SHA="${{ github.sha }}" + fi + RUNS=$(gh run list --workflow dev_build.yml --repo ${{ github.repository }} --commit $SHA) + SKIP_TESTS="false" + if [ -z "$RUNS" ]; then + SKIP_TESTS="true" + fi + echo SKIP_TESTS: $SKIP_TESTS + echo "skip_tests=$SKIP_TESTS" >> $GITHUB_OUTPUT - name: Wait for dev_build.yml to complete - uses: netcracker/qubership-workflow-hub/actions/wait-for-workflow@396774180000abdb825cbf150b56cc59c6913db8 #v2.0.5 + if: steps.check.outputs.skip_tests == 'false' + uses: netcracker/qubership-workflow-hub/actions/wait-for-workflow@3e428f45132119ce49d90f3770a45d4fe1d1078d # v2.0.4 id: wait with: workflow: dev_build.yml token: ${{ secrets.GITHUB_TOKEN }} poll-interval: 20 + Zookeeper-Pipeline: needs: Wait-for-images - uses: Netcracker/qubership-test-pipelines/.github/workflows/zookeeper.yaml@0317a7311f0fdd1e6d492fb3a75d722835851b15 #v1.6.1 + uses: Netcracker/qubership-test-pipelines/.github/workflows/zookeeper.yaml@905b88900dc8c14291eaeff4eddcf4d4f734aee1 #v1.9.0 + permissions: + contents: read + actions: write + packages: read with: + repository_name: ${{ github.repository }} service_branch: '${{ github.head_ref || github.ref_name }}' - pipeline_branch: '0317a7311f0fdd1e6d492fb3a75d722835851b15' #this value must match the value after '@' in 'uses' + pipeline_branch: '905b88900dc8c14291eaeff4eddcf4d4f734aee1' #this value must match the value after '@' in 'uses' + skip_tests: ${{ fromJSON(needs.Wait-for-images.outputs.skip_tests) }} secrets: AWS_S3_ACCESS_KEY_ID: ${{secrets.AWS_S3_ACCESS_KEY_ID}} AWS_S3_ACCESS_KEY_SECRET: ${{secrets.AWS_S3_ACCESS_KEY_SECRET}} diff --git a/backup-daemon/docker/Dockerfile b/backup-daemon/docker/Dockerfile index e8be861..97aa897 100644 --- a/backup-daemon/docker/Dockerfile +++ b/backup-daemon/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/netcracker/qubership-backup-daemon:main_alpine +FROM ghcr.io/netcracker/qubership-backup-daemon:1.30.6_alpine ENV ZOOKEEPER_HOME=/opt/zookeeper \ ZOOKEEPER_BACKUP=/opt/zookeeper/backup-storage diff --git a/integration-tests/docker/Dockerfile b/integration-tests/docker/Dockerfile index f116030..33798f3 100644 --- a/integration-tests/docker/Dockerfile +++ b/integration-tests/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/netcracker/qubership-docker-integration-tests:main +FROM ghcr.io/netcracker/qubership-docker-integration-tests:0.4.4 # Switch to root for installation USER root diff --git a/operator/charts/helm/zookeeper-service/values.yaml b/operator/charts/helm/zookeeper-service/values.yaml index 510a25d..784afd6 100644 --- a/operator/charts/helm/zookeeper-service/values.yaml +++ b/operator/charts/helm/zookeeper-service/values.yaml @@ -403,7 +403,7 @@ groupMigration: limits: memory: 256Mi cpu: 100m - image: "ghcr.io/netcracker/qubership-docker-kubectl:main" + image: "ghcr.io/netcracker/qubership-docker-kubectl:0.0.8" imagePullPolicy: Always runAsNonRoot: true