forked from 4paradigm/OpenMLDB
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: relocate hybridse java (4paradigm#884)
- move hybridse java to java directory, close feat: move hybridse java module to OpenMLDB 4paradigm#674 - refactor coverage job, ci: include OpenMLDB cpp & java code in codecoverage report 4paradigm#677 - minor bug fix for top Makefile limit: - OpenMLDB's test is not added into ctest, so coverage task will not run it from this pr. Just checked the it is the same number of tests runs by coverage compared to previous coverage job: 65. And we will end up add more tests to coverage task
- Loading branch information
1 parent
22acf53
commit db5baac
Showing
45 changed files
with
387 additions
and
1,097 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: coverage | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
paths-ignore: | ||
- docs/ | ||
- demo/ | ||
- release/ | ||
- image/ | ||
- tools/ | ||
workflow_dispatch: | ||
|
||
jobs: | ||
coverage: | ||
runs-on: self-hosted | ||
container: | ||
image: ghcr.io/4paradigm/hybridsql:0.4.0 | ||
env: | ||
CMAKE_BUILD_TYPE: Debug | ||
SQL_PYSDK_ENABLE: OFF | ||
SQL_JAVASDK_ENABLE: ON | ||
TESTING_ENABLE: ON | ||
NPROC: 8 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- name: Cache local Maven repository | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('java/**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: setup thirdparty | ||
run: | | ||
make thirdparty | ||
- name: coverage configure | ||
run: | | ||
make coverage-configure | ||
- name: build openmldb | ||
run: | | ||
cmake --build build --target openmldb -- -j${{ env.NPROC }} | ||
- name: start service | ||
run: | | ||
sh steps/ut_zookeeper.sh start | ||
cd onebox | ||
bash start_onebox.sh | ||
- name: Build and Coverage | ||
run: | | ||
make coverage | ||
- name: Upload Coverage Report | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
files: build/coverage.info,java/**/target/site/jacoco/jacoco.xml | ||
name: coverage | ||
fail_ci_if_error: true | ||
verbose: true | ||
|
||
- name: stop service | ||
run: | | ||
./onebox/stop_all.sh | ||
sh steps/ut_zookeeper.sh stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "cmake-modules"] | ||
path = hybridse/cmake-modules | ||
path = cmake-modules | ||
url = https://github.com/bilke/cmake-modules.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.