diff --git a/.github/workflows/extended-ci-longevity-large-partition-asymmetric-cluster-3h-test.yml b/.github/workflows/extended-ci-longevity-large-partition-asymmetric-cluster-3h-test.yml new file mode 100644 index 000000000..235dd4c5e --- /dev/null +++ b/.github/workflows/extended-ci-longevity-large-partition-asymmetric-cluster-3h-test.yml @@ -0,0 +1,48 @@ +name: Build scylla-bench docker image with gocql PR + +on: + pull_request_target: + types: [opened, synchronize, reopened, labeled] + +jobs: + trigger-longevity-large-partition-asymmetric-cluster-3h-test: + if: contains(github.event.pull_request.labels.*.name, 'extended-ci') + runs-on: ubuntu-latest + steps: + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Check out the scylla-bench repository + uses: actions/checkout@v2 + with: + repository: scylladb/scylla-bench + path: scylla-bench + + - name: Checkout GoCQL PR Repository + uses: actions/checkout@v2 + with: + repository: ${{ github.event.pull_request.head.repo.full_name }} + ref: ${{ github.event.pull_request.head.ref }} + path: gocql + + - name: Build and push Scylla-bench Docker Image with gocql from PR + run: | + cd scylla-bench + GOCQL_REPO="github.com/${{ github.event.pull_request.head.repo.full_name }}" GOCQL_VERSION="${{ github.event.pull_request.head.ref }}" make build-with-custom-gocql-version + DOCKER_IMAGE_TAG="scylladb/gocql-extended-ci:scylla-bench-${{ github.event.pull_request.head.sha }}" DOCKER_IMAGE_LABELS="com.scylladb.gocql-version=${{ github.event.pull_request.head.sha }}" make build-sct-docker-image + docker push "scylladb/gocql-extended-ci:scylla-bench-${{ github.event.pull_request.head.sha }}" + + - name: Start Jenkins job + uses: sylwiaszunejko/jenkins_client@main + with: + jenkins_job_name: 'scylla-staging/sylwia.szunejko/longevity-large-partition-asymmetric-cluster-3h-test' + jenkins_job_parameters: '{"email_recipients": "sylwia.szunejko@scylladb.com", "scylla_version": "6.1.1", "extra_environment_variables": "SCT_STRESS_IMAGE.scylla-bench=scylladb/gocql-extended-ci:scylla-bench-${{ github.event.pull_request.head.sha }}"}' + jenkins_base_url: 'https://jenkins.scylladb.com/' + jenkins_user: sylwiaszunejko + jenkins_password: ${{ secrets.JENKINS_TOKEN }} + wait_for_result: 'True' + polling_interval: '120' + polling_timeout: '12600'