You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/09/09 09:34:23 UTC
[GitHub] [pulsar] lhotari commented on a diff in pull request #17571: [ci] Move cpp-tests job inside Pulsar CI workflow
lhotari commented on code in PR #17571:
URL: https://github.com/apache/pulsar/pull/17571#discussion_r966836525
##########
.github/workflows/pulsar-ci.yaml:
##########
@@ -498,6 +499,66 @@ jobs:
- name: Delete docker image from GitHub Actions Artifacts
run: |
gh-actions-artifact-client.js delete pulsar-java-test-image.zst
+
+
+ cpp-tests:
+ name: "Pulsar CPP client tests"
+ runs-on: ubuntu-20.04
+ timeout-minutes: 120
+ if: ${{ steps.check_changes.outputs.docs_only != 'true' }}
+ needs: 'integration-tests'
+ steps:
+ - name: checkout
+ uses: actions/checkout@v2
+
+ - name: Tune Runner VM
+ uses: ./.github/actions/tune-runner-vm
+
+ - name: Cache local Maven repository
+ uses: actions/cache@v2
+ with:
+ path: |
+ ~/.m2/repository/*/*/*
+ !~/.m2/repository/org/apache/pulsar
+ key: ${{ runner.os }}-m2-dependencies-core-modules-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-m2-dependencies-core-modules-
+
+ - name: Set up JDK 17
+ uses: actions/setup-java@v2
+ with:
+ distribution: 'temurin'
+ java-version: 17
+
+ - name: clean disk
+ run: |
+ sudo apt clean
+ docker rmi $(docker images -q) -f
+ df -h
+
+ - name: Install gh-actions-artifact-client.js
+ uses: apache/pulsar-test-infra/gh-actions-artifact-client/dist@master
+
+ - name: Restore maven build results from Github artifact cache
+ run: |
+ cd $HOME
+ $GITHUB_WORKSPACE/build/pulsar_ci_tool.sh restore_tar_from_github_actions_artifacts pulsar-maven-repository-binaries
+
+ - name: build cpp artifacts
+ run: |
+ echo "Build C++ client library"
+ pulsar-client-cpp/docker-build.sh
+
+ - name: run c++ tests
+ run: pulsar-client-cpp/docker-tests.sh
+
+ - name: Upload test-logs
+ uses: actions/upload-artifact@v3
+ if: failure()
+ continue-on-error: true
+ with:
+ name: test-logs
Review Comment:
```suggestion
name: cpp-tests-logs
```
##########
.github/workflows/pulsar-ci.yaml:
##########
@@ -498,6 +499,66 @@ jobs:
- name: Delete docker image from GitHub Actions Artifacts
run: |
gh-actions-artifact-client.js delete pulsar-java-test-image.zst
+
+
+ cpp-tests:
+ name: "Pulsar CPP client tests"
Review Comment:
```suggestion
name: "CI - CPP, Python Tests"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org