Skip to content

Commit 6188861

Browse files
committed
Merge remote-tracking branch '4paradigm/main'
1 parent cafba7a commit 6188861

File tree

1,035 files changed

+96191
-11251
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,035 files changed

+96191
-11251
lines changed

.github/labeler.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,10 @@ build:
4141

4242
workflow:
4343
- '.github/**/*.yml'
44+
- '.github/**/*.yaml'
45+
46+
go-sdk:
47+
- 'go/**/*'
48+
49+
extensions:
50+
- 'extensions/**/*'

.github/workflows/cicd.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,17 @@ jobs:
213213
uses: actions/download-artifact@v2
214214
with:
215215
name: release-artifacts
216+
217+
- name: generate signature
218+
run: |
219+
sha256sum openmldb-*.tar.gz > SHA256SUM
220+
216221
- name: Release
217222
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
218223
uses: softprops/action-gh-release@v1
219224
with:
220225
files: |
221226
openmldb-*.tar.gz
227+
SHA256SUM
222228
env:
223229
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
TESTING_ENABLE: ON
3838
SQL_PYSDK_ENABLE: OFF
3939
SQL_JAVASDK_ENABLE: OFF
40-
NPROC: 8
40+
NPROC: 2
4141
BUILD_SHARED_LIBS: ON
4242
steps:
4343
- uses: actions/checkout@v3
@@ -72,7 +72,7 @@ jobs:
7272
uses: codecov/codecov-action@v3
7373
with:
7474
files: build/coverage.info
75-
name: coverage
75+
name: coverage-cpp
7676
fail_ci_if_error: true
7777
verbose: true
7878

.github/workflows/devops-test.yml

Lines changed: 196 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
name: DEVOPS-TEST
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
PRE_UPGRADE_VERSION:
7+
description: 'version before upgrade'
8+
required: false
9+
default: ''
10+
EXEC_TEST_TYPE:
11+
description: 'Which tests need to be executed? The options are all, upgrade, node_failure, node_expansion'
12+
required: true
13+
default: 'all'
14+
15+
env:
16+
GIT_SUBMODULE_STRATEGY: recursive
17+
HYBRIDSE_SOURCE: local
18+
19+
jobs:
20+
node-failure-test-cluster:
21+
if: ${{ github.event.inputs.EXEC_TEST_TYPE == 'all' || github.event.inputs.EXEC_TEST_TYPE == 'node_failure' }}
22+
runs-on: ubuntu-latest
23+
container:
24+
image: ghcr.io/4paradigm/hybridsql:latest
25+
env:
26+
OS: linux
27+
steps:
28+
- uses: actions/checkout@v2
29+
- name: build jsdk and package
30+
run: |
31+
make configure CMAKE_INSTALL_PREFIX=openmldb-linux
32+
make SQL_JAVASDK_ENABLE=ON && make SQL_JAVASDK_ENABLE=ON install
33+
tar -zcvf openmldb-linux.tar.gz openmldb-linux
34+
echo "openmldb-pkg:"
35+
ls -al
36+
- name: test
37+
run: source /root/.bashrc && bash test/steps/openmldb-devops-test.sh -c test_cluster.xml -t node_failure
38+
- name: TEST Results
39+
if: always()
40+
uses: EnricoMi/publish-unit-test-result-action@v1
41+
with:
42+
files: test/integration-test/openmldb-test-java/openmldb-devops-test/target/surefire-reports/TEST-*.xml
43+
check_name: "node-failure-test-cluster Report"
44+
comment_title: "node-failure-test-cluster Report"
45+
46+
node-failure-test-single:
47+
if: ${{ github.event.inputs.EXEC_TEST_TYPE == 'all' || github.event.inputs.EXEC_TEST_TYPE == 'node_failure' }}
48+
runs-on: ubuntu-latest
49+
container:
50+
image: ghcr.io/4paradigm/hybridsql:latest
51+
env:
52+
OS: linux
53+
steps:
54+
- uses: actions/checkout@v2
55+
- name: build jsdk and package
56+
run: |
57+
make configure CMAKE_INSTALL_PREFIX=openmldb-linux
58+
make SQL_JAVASDK_ENABLE=ON && make SQL_JAVASDK_ENABLE=ON install
59+
tar -zcvf openmldb-linux.tar.gz openmldb-linux
60+
echo "openmldb-pkg:"
61+
ls -al
62+
- name: test
63+
run: source /root/.bashrc && bash test/steps/openmldb-devops-test.sh -c test_single.xml -t node_failure
64+
- name: TEST Results
65+
if: always()
66+
uses: EnricoMi/publish-unit-test-result-action@v1
67+
with:
68+
files: test/integration-test/openmldb-test-java/openmldb-devops-test/target/surefire-reports/TEST-*.xml
69+
check_name: "node-failure-test-single Report"
70+
comment_title: "node-failure-test-single Report"
71+
72+
node-expansion-test-cluster:
73+
if: ${{ github.event.inputs.EXEC_TEST_TYPE == 'all' || github.event.inputs.EXEC_TEST_TYPE == 'node_expansion' }}
74+
runs-on: ubuntu-latest
75+
container:
76+
image: ghcr.io/4paradigm/hybridsql:latest
77+
env:
78+
OS: linux
79+
steps:
80+
- uses: actions/checkout@v2
81+
- name: build jsdk and package
82+
run: |
83+
make configure CMAKE_INSTALL_PREFIX=openmldb-linux
84+
make SQL_JAVASDK_ENABLE=ON && make SQL_JAVASDK_ENABLE=ON install
85+
tar -zcvf openmldb-linux.tar.gz openmldb-linux
86+
echo "openmldb-pkg:"
87+
ls -al
88+
- name: test
89+
run: source /root/.bashrc && bash test/steps/openmldb-devops-test.sh -c test_node_expansion.xml -t node_expansion
90+
- name: TEST Results
91+
if: always()
92+
uses: EnricoMi/publish-unit-test-result-action@v1
93+
with:
94+
files: test/integration-test/openmldb-test-java/openmldb-devops-test/target/surefire-reports/TEST-*.xml
95+
check_name: "node-expansion-test-cluster Report"
96+
comment_title: "node-expansion-test-cluster Report"
97+
98+
upgrade-test-cluster:
99+
if: ${{ github.event.inputs.EXEC_TEST_TYPE == 'all' || github.event.inputs.EXEC_TEST_TYPE == 'upgrade' }}
100+
runs-on: ubuntu-latest
101+
container:
102+
image: ghcr.io/4paradigm/hybridsql:latest
103+
env:
104+
OS: linux
105+
steps:
106+
- uses: actions/checkout@v2
107+
- name: build jsdk and package
108+
run: |
109+
make configure CMAKE_INSTALL_PREFIX=openmldb-linux
110+
make SQL_JAVASDK_ENABLE=ON && make SQL_JAVASDK_ENABLE=ON install
111+
tar -zcvf openmldb-linux.tar.gz openmldb-linux
112+
echo "openmldb-pkg:"
113+
ls -al
114+
- name: test-memory
115+
run: source /root/.bashrc && bash test/steps/openmldb-devops-test.sh -v ${{ github.event.inputs.PRE_UPGRADE_VERSION }} -c test_upgrade.xml -t upgrade -s "memory"
116+
- name: upgrade results
117+
if: always()
118+
uses: EnricoMi/publish-unit-test-result-action@v1
119+
with:
120+
files: test/integration-test/openmldb-test-java/openmldb-devops-test/target/surefire-reports/TEST-*.xml
121+
check_name: "upgrade-test-cluster Report"
122+
comment_title: "upgrade-test-cluster Report"
123+
- name: sdk results
124+
if: always()
125+
uses: EnricoMi/publish-unit-test-result-action@v1
126+
with:
127+
files: test/integration-test/openmldb-test-java/openmldb-sdk-test/target/surefire-reports/TEST-*.xml
128+
check_name: "java-sdk-cluster-memory-0 Report"
129+
comment_title: "java-sdk-cluster-memory-0 Report"
130+
upgrade-test-single:
131+
if: ${{ github.event.inputs.EXEC_TEST_TYPE == 'all' || github.event.inputs.EXEC_TEST_TYPE == 'upgrade' }}
132+
runs-on: ubuntu-latest
133+
container:
134+
image: ghcr.io/4paradigm/hybridsql:latest
135+
env:
136+
OS: linux
137+
steps:
138+
- uses: actions/checkout@v2
139+
- name: build jsdk and package
140+
run: |
141+
make configure CMAKE_INSTALL_PREFIX=openmldb-linux
142+
make SQL_JAVASDK_ENABLE=ON && make SQL_JAVASDK_ENABLE=ON install
143+
tar -zcvf openmldb-linux.tar.gz openmldb-linux
144+
echo "openmldb-pkg:"
145+
ls -al
146+
- name: test-memory
147+
run: source /root/.bashrc && bash test/steps/openmldb-devops-test.sh -v ${{ github.event.inputs.PRE_UPGRADE_VERSION }} -c test_upgrade_single.xml -t upgrade -s "memory"
148+
- name: upgrade results
149+
if: always()
150+
uses: EnricoMi/publish-unit-test-result-action@v1
151+
with:
152+
files: test/integration-test/openmldb-test-java/openmldb-devops-test/target/surefire-reports/TEST-*.xml
153+
check_name: "upgrade-test-single Report"
154+
comment_title: "upgrade-test-single Report"
155+
- name: sdk results
156+
if: always()
157+
uses: EnricoMi/publish-unit-test-result-action@v1
158+
with:
159+
files: test/integration-test/openmldb-test-java/openmldb-sdk-test/target/surefire-reports/TEST-*.xml
160+
check_name: "single-java-sdk-cluster-memory-0 Report"
161+
comment_title: "single-java-sdk-cluster-memory-0 Report"
162+
upgrade-test-cluster-SSD:
163+
if: ${{ github.event.inputs.EXEC_TEST_TYPE == 'all' || github.event.inputs.EXEC_TEST_TYPE == 'upgrade' }}
164+
runs-on: ubuntu-latest
165+
container:
166+
image: ghcr.io/4paradigm/hybridsql:latest
167+
env:
168+
OS: linux
169+
steps:
170+
- uses: actions/checkout@v2
171+
- name: build jsdk and package
172+
run: |
173+
make configure CMAKE_INSTALL_PREFIX=openmldb-linux
174+
make SQL_JAVASDK_ENABLE=ON && make SQL_JAVASDK_ENABLE=ON install
175+
tar -zcvf openmldb-linux.tar.gz openmldb-linux
176+
echo "openmldb-pkg:"
177+
ls -al
178+
- name: test-memory
179+
run: source /root/.bashrc && bash test/steps/openmldb-devops-test.sh -v ${{ github.event.inputs.PRE_UPGRADE_VERSION }} -c test_upgrade.xml -t upgrade -s "ssd"
180+
- name: upgrade results
181+
if: always()
182+
uses: EnricoMi/publish-unit-test-result-action@v1
183+
with:
184+
files: test/integration-test/openmldb-test-java/openmldb-devops-test/target/surefire-reports/TEST-*.xml
185+
check_name: "upgrade-test-cluster ssd Report"
186+
comment_title: "upgrade-test-cluster ssd Report"
187+
- name: sdk results
188+
if: always()
189+
uses: EnricoMi/publish-unit-test-result-action@v1
190+
with:
191+
files: test/integration-test/openmldb-test-java/openmldb-sdk-test/target/surefire-reports/TEST-*.xml
192+
check_name: "java-sdk-cluster-ssd-0 Report"
193+
comment_title: "java-sdk-cluster-ssd-0 Report"
194+
195+
196+

.github/workflows/doc.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: documents
2+
3+
# Doc workflow deploy to https://4paradigm.github.io/OpenMLDB/
4+
#
5+
# Deployment requires main(default) branch and all vX.Y branches exists.
6+
# Workflow triggers only on main branch, based on the model that all patches
7+
# to vX.Y branches will first goes to main.
8+
on:
9+
push:
10+
branches:
11+
- main
12+
paths:
13+
- .github/workflows/doc.yml
14+
- 'docs/**'
15+
pull_request:
16+
paths:
17+
- .github/workflows/doc.yml
18+
- 'docs/**'
19+
20+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
21+
permissions:
22+
contents: read
23+
pages: write
24+
id-token: write
25+
26+
# Allow one concurrent deployment
27+
concurrency:
28+
group: pages-${{ github.ref }}
29+
cancel-in-progress: true
30+
31+
jobs:
32+
build:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v3
36+
with:
37+
fetch-depth: 0
38+
39+
- uses: actions/setup-python@v4
40+
with:
41+
python-version: '3.10'
42+
43+
- name: setup poetry
44+
run: |
45+
pipx install poetry
46+
47+
- name: doc build (pr)
48+
working-directory: docs
49+
if: github.event_name == 'pull_request'
50+
run: |
51+
make all-local
52+
53+
- name: doc build (branch)
54+
working-directory: docs
55+
if: github.event_name == 'push'
56+
run: |
57+
make
58+
59+
- name: upload artifact
60+
if: github.event_name == 'push'
61+
uses: actions/upload-pages-artifact@v1
62+
with:
63+
path: docs/build/
64+
65+
# Deployment job
66+
deploy:
67+
environment:
68+
name: github-pages
69+
url: ${{ steps.deployment.outputs.page_url }}
70+
runs-on: ubuntu-latest
71+
needs: build
72+
if: github.event_name == 'push'
73+
steps:
74+
# This action expects an artifact named github-pages to have been created prior to execution.
75+
- name: Deploy to GitHub Pages
76+
id: deployment
77+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)