-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry pick v3.2.0 (0627-0630) (#4370)
* enhance nightly tck test job (#4355) * add lock when multithread access shared variable (#4360) * Implement inner parallel procesing by using Scatter/Gather model. (#4361) * Multi job traverse. Some debug infos. Multi job AppendVertices handle resp. Multi job Project. Enhance AppendVertices. Multi job filter. Fix row cnt and delete debug info. Fix AppendV. Add debug info. Rm debug info. Fix copy in traverse. Set max_job_size to default 20. Add runMultiJobs template. Impl Project/Filter/AppendV. Impl Join. Fix double free for join. Fix filter on GetNeighborsIter. Fix prop iter. Fix filter on prop iter. Fix left join by clearing hash tabls manually. Report error in filter. Fix tests: the order is not guarentted in scatter gather model. Iterates to begin out of job. Modify the default config. Fix appendv. Support run multi job mode test. Test multi job. Rebase and compatible with single job. * Update the logs and flags. * Add comment. * Fix nightly. * Fix test. * Fix compile. * Fix test. * Address comment and fix test. Co-authored-by: Sophie <[email protected]> * Async gc. (#4362) * Add GC. * Impl gc. * Fix linking. * Using thread pool. * Using try_dequeue. * Stop workers when destruct. * Set default worker size to 8. * Add repeat task for all. * Update flags. * Add comments. * Fix nightly. Co-authored-by: Harris.Chu <[email protected]> Co-authored-by: jimingquan <[email protected]> Co-authored-by: cpw <[email protected]>
- Loading branch information
1 parent
dfe737c
commit 518c7d7
Showing
44 changed files
with
1,029 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: nightly | |
|
||
on: | ||
schedule: | ||
- cron: '0 18 * * *' | ||
- cron: "0 18 * * *" | ||
|
||
concurrency: | ||
group: nightly | ||
|
@@ -35,7 +35,7 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: '^1.16.7' | ||
go-version: "^1.16.7" | ||
- name: package | ||
run: ./package/package.sh -t Release -r ON -p OFF -s FALSE -k OFF | ||
- name: output some vars | ||
|
@@ -199,4 +199,99 @@ jobs: | |
if: ${{ failure() }} | ||
with: | ||
name: ${{ matrix.os }}-${{ matrix.compiler }}-nebula-test-logs | ||
path: ./build/server_*/logs/ | ||
path: ./build/server_*/logs/ | ||
|
||
test: | ||
name: Tck test | ||
needs: package | ||
runs-on: [self-hosted, nebula] | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu1804 | ||
- ubuntu2004 | ||
- centos7 | ||
- centos8 | ||
extra_config: | ||
- "ENABLE_SSL=true CA_SIGNED=true QUERY_CONCURRENTLY=false" | ||
- "ENABLE_SSL=false CA_SIGNED=false QUERY_CONCURRENTLY=true" | ||
env: | ||
OSS_DIR: nebula-graph/package/nightly | ||
container: | ||
image: vesoft/nebula-dev:${{ matrix.os }} | ||
steps: | ||
- uses: webiny/[email protected] | ||
with: | ||
run: sh -c "find . -mindepth 1 -delete" | ||
- uses: actions/checkout@v2 | ||
- name: output some vars | ||
id: vars | ||
env: | ||
SHA_EXT: sha256sum.txt | ||
run: | | ||
subdir=$(date -u +%Y.%m.%d -d "1 days ago") | ||
echo "::set-output name=subdir::$subdir" | ||
- id: oss_package | ||
run: | | ||
case ${{ matrix.os }} in | ||
ubuntu1804) | ||
echo "::set-output name=p::nebula-graph-${{ steps.vars.outputs.subdir }}-nightly.ubuntu1804.amd64.tar.gz" | ||
;; | ||
ubuntu2004) | ||
echo "::set-output name=p::nebula-graph-${{ steps.vars.outputs.subdir }}-nightly.ubuntu2004.amd64.tar.gz" | ||
;; | ||
centos7) | ||
echo "::set-output name=p::nebula-graph-${{ steps.vars.outputs.subdir }}-nightly.el7.x86_64.tar.gz" | ||
;; | ||
centos8) | ||
echo "::set-output name=p::nebula-graph-${{ steps.vars.outputs.subdir }}-nightly.el8.x86_64.tar.gz" | ||
;; | ||
esac | ||
- name: Prepare environment | ||
id: prepare | ||
run: | | ||
[ -d build/ ] && rm -rf build/* || mkdir -p build | ||
make init -C tests | ||
- name: CMake | ||
id: cmake | ||
run: | | ||
echo "::set-output name=j::8" | ||
- name: download from oss | ||
run: | | ||
ossutil64 -e ${{ secrets.OSS_ENDPOINT }} \ | ||
-i ${{ secrets.OSS_ID }} \ | ||
-k ${{ secrets.OSS_SECRET }} \ | ||
-f cp oss://${{ env.OSS_DIR }}/${{ steps.vars.outputs.subdir }}/${{ steps.oss_package.outputs.p }} \ | ||
build/. | ||
tar zxvf build/${{ steps.oss_package.outputs.p }} -C build | ||
d=`echo ${{ steps.oss_package.outputs.p }} | sed 's/.tar.gz//'` | ||
mv build/${d}/* build/. | ||
- name: Setup cluster | ||
run: | | ||
make CONTAINERIZED=true ${{ matrix.extra_config }} up | ||
working-directory: tests/ | ||
timeout-minutes: 2 | ||
- name: Pytest | ||
run: | | ||
make RM_DIR=false DEBUG=false J=${{ steps.cmake.outputs.j }} test | ||
working-directory: tests/ | ||
timeout-minutes: 15 | ||
- name: TCK | ||
run: | | ||
make RM_DIR=false DEBUG=false J=${{ steps.cmake.outputs.j }} tck | ||
working-directory: tests/ | ||
timeout-minutes: 60 | ||
- name: Down cluster | ||
run: | | ||
make RM_DIR=false down | ||
working-directory: tests/ | ||
timeout-minutes: 2 | ||
- name: Upload logs | ||
uses: actions/upload-artifact@v2 | ||
if: ${{ failure() }} | ||
with: | ||
name: ${{ matrix.os }}-${{ matrix.compiler }}-nebula-test-logs | ||
path: ./build/server_*/logs*/ |
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
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
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
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
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.