You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2023/07/11 03:11:40 UTC
[iotdb] branch parallel_coveralls created (now fd1b100235f)
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a change to branch parallel_coveralls
in repository https://gitbox.apache.org/repos/asf/iotdb.git
at fd1b100235f parallel coverallls
This branch includes the following new commits:
new fd1b100235f parallel coverallls
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[iotdb] 01/01: parallel coverallls
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch parallel_coveralls
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit fd1b100235f8e209dc81990137e1fa050e10ff30
Author: HTHou <hh...@outlook.com>
AuthorDate: Tue Jul 11 11:11:27 2023 +0800
parallel coverallls
---
.github/workflows/sonar-coveralls.yml | 46 ++++++++++++++++++++++++-----------
1 file changed, 32 insertions(+), 14 deletions(-)
diff --git a/.github/workflows/sonar-coveralls.yml b/.github/workflows/sonar-coveralls.yml
index 22a56157900..c3c89bffb47 100644
--- a/.github/workflows/sonar-coveralls.yml
+++ b/.github/workflows/sonar-coveralls.yml
@@ -8,7 +8,6 @@ on:
branches:
- master
- "rel/*"
- - "new_*"
paths-ignore:
- "docs/**"
- 'site/**'
@@ -16,7 +15,6 @@ on:
branches:
- master
- "rel/*"
- - "new_*"
paths-ignore:
- "docs/**"
- 'site/**'
@@ -32,9 +30,14 @@ env:
PR_NUMBER: ${{ github.event.number }}
jobs:
- coveralls:
+ coveralls-test:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'apache/iotdb' || github.event_name == 'push'
+ strategy:
+ matrix:
+ task:
+ - datanode
+ - others
steps:
- uses: actions/checkout@v3
@@ -44,17 +47,32 @@ jobs:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-
- - name: Test
- run: mvn -B clean compile test -pl distribution,iotdb-client/cli,iotdb-client/session,iotdb-client/jdbc -am -Dtest.port.closed=true -Pcode-coverage
- - name: Coveralls
- run: |
- mvn -B post-integration-test -Pcode-coverage -pl code-coverage
- mvn -B coveralls:report \
- -DserviceName=travis_ci \
- -Dbranch=$BRANCH_NAME \
- -DpullRequest=$PR_NUMBER \
- -DrepoToken=${{ secrets.COVERALL_TOKEN }} \
- -Pcode-coverage
+ - name: Test datanode
+ if: ${{ matrix.task == 'datanode'}}
+ run: mvn -B clean compile test -pl iotdb-core/datanode -am -DskipTests=true -Diotdb.test.only=true -Dtest.port.closed=true -Pcode-coverage
+ - name: Test other
+ if: ${{ matrix.task == 'others'}}
+ run: mvn -B clean compile test -pl distribution,iotdb-client/cli,iotdb-client/session,iotdb-client/jdbc -am -Diotdb.test.skip=true -Dtest.port.closed=true -Pcode-coverage
+ - name: Merge report
+ run: mvn -B post-integration-test -Pcode-coverage -pl code-coverage
+ - name: Coveralls Parallel
+ uses: coverallsapp/github-action@v2
+ with:
+ github-token: ${{ secrets.COVERALL_TOKEN }}
+ flag-name: run-${{ matrix.task }}
+ parallel: true
+
+ coveralls-report:
+ needs: coveralls-test
+ if: ${{ always() }}
+ runs-on: ubuntu-latest
+ steps:
+ - name: Coveralls Finished
+ uses: coverallsapp/github-action@v2
+ with:
+ github-token: ${{ secrets.COVERALL_TOKEN }}
+ parallel-finished: true
+ carryforward: "run-datanode,run-others"
sonar:
runs-on: ubuntu-latest