Skip to content

Commit b247f52

Browse files
authored
release dynamic graph service for online sampling and predicting (#197)
- released docs are not included in this commit and will be added later.
1 parent e6e4d27 commit b247f52

File tree

283 files changed

+34484
-20
lines changed

Some content is hidden

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

283 files changed

+34484
-20
lines changed

.github/workflows/dgs_ci.yml

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: DynamicGraphService CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
paths:
7+
- '.github/workflows/dgs_ci.yml'
8+
- 'third_party/cppkafka/**'
9+
- 'third_party/glog/**'
10+
- 'third_party/googletest/**'
11+
- 'third_party/grpc/**'
12+
- 'third_party/hiactor/**'
13+
- 'third_party/rocksdb/**'
14+
- 'dynamic-graph-service/**'
15+
- '!dynamic-graph-service/dataloader/**'
16+
- '!dynamic-graph-service/gsl_client/**'
17+
- '!dynamic-graph-service/k8s/**'
18+
- '!dynamic-graph-service/**.md'
19+
pull_request:
20+
branches: [ master ]
21+
paths:
22+
- '.github/workflows/dgs_ci.yml'
23+
- 'third_party/cppkafka/**'
24+
- 'third_party/glog/**'
25+
- 'third_party/googletest/**'
26+
- 'third_party/grpc/**'
27+
- 'third_party/hiactor/**'
28+
- 'third_party/rocksdb/**'
29+
- 'dynamic-graph-service/**'
30+
- '!dynamic-graph-service/dataloader/**'
31+
- '!dynamic-graph-service/gsl_client/**'
32+
- '!dynamic-graph-service/k8s/**'
33+
- '!dynamic-graph-service/**.md'
34+
35+
jobs:
36+
build-dgs:
37+
runs-on: ubuntu-20.04
38+
if: ${{ github.repository == 'alibaba/graph-learn' }}
39+
steps:
40+
- uses: actions/checkout@v3
41+
42+
- name: Download third-party built package
43+
working-directory: ${{github.workspace}}/third_party
44+
run: |
45+
wget -q https://graphlearn.oss-cn-hangzhou.aliyuncs.com/package/dgs_third_party_built.tgz
46+
tar zxvf dgs_third_party_built.tgz
47+
48+
- name: Install Dependencies
49+
working-directory: ${{github.workspace}}/dynamic-graph-service
50+
run: |
51+
sudo apt-get -y update
52+
sudo ./install_dependencies.sh
53+
54+
- name: Build
55+
working-directory: ${{github.workspace}}/dynamic-graph-service
56+
run: |
57+
mkdir build
58+
cd build
59+
cmake -DENABLE_GCOV=ON -DDEBUG=ON -DBENCHMARKING=ON ..
60+
export BUILD_CONCURRENCY=$(cat < /proc/cpuinfo | grep -c "processor")
61+
make -j${BUILD_CONCURRENCY}
62+
63+
- name: Run unittest
64+
working-directory: ${{github.workspace}}/dynamic-graph-service
65+
run: |
66+
./run_unittests.sh
67+
68+
- name: Check code coverage
69+
uses: VeryGoodOpenSource/very_good_coverage@v1
70+
with:
71+
path: "./dynamic-graph-service/build/coverage/coverage.info"
72+
min_coverage: 90
73+
74+
- name: Upload code coverage reports
75+
uses: actions/upload-artifact@v3
76+
with:
77+
name: code-coverage-reports
78+
path: "./dynamic-graph-service/build/coverage/reports/"

.github/workflows/gl_cd.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
jobs:
99
build:
1010
runs-on: ${{ matrix.os }}
11+
if: ${{ github.repository == 'alibaba/graph-learn' }}
1112
strategy:
1213
fail-fast: false
1314
matrix:
@@ -18,10 +19,10 @@ jobs:
1819
- { os: ubuntu-20.04, python-version: 3.7, python-abis: "cp37-cp37m" }
1920
- { os: ubuntu-20.04, python-version: 3.8, python-abis: "cp38-cp38" }
2021
- { os: ubuntu-20.04, python-version: 3.9, python-abis: "cp39-cp39" }
21-
2222
steps:
2323
- name: Checkout code
2424
uses: actions/checkout@v3
25+
2526
- name: Deploy python packages
2627
if: startsWith(github.ref, 'refs/tags/') && matrix.no-deploy != '1'
2728
shell: bash

.github/workflows/gl_ci.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
- 'graphlearn/**'
1414
- '!graphlearn/docs/**'
1515
- '!graphlearn/examples/**'
16+
- '!graphlearn/**.md'
1617
pull_request:
1718
branches: [ master ]
1819
paths:
@@ -25,18 +26,19 @@ on:
2526
- 'graphlearn/**'
2627
- '!graphlearn/docs/**'
2728
- '!graphlearn/examples/**'
29+
- '!graphlearn/**.md'
2830

2931

3032
jobs:
3133
build-gl:
3234
runs-on: ${{ matrix.os }}
35+
if: ${{ github.repository == 'alibaba/graph-learn' }}
3336
strategy:
3437
matrix:
3538
include:
3639
# - { os: ubuntu-18.04, python-version: 2.7, python-abis: "cp27-cp27mu" }
3740
# - { os: ubuntu-18.04, python-version: 3.7, python-abis: "cp37-cp37m" }
3841
- { os: ubuntu-20.04, python-version: 3.7, python-abis: "cp37-cp37m" }
39-
4042
steps:
4143
- uses: actions/checkout@v3
4244

.gitmodules

+12
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,15 @@
1010
[submodule "third_party/grpc/grpc"]
1111
path = third_party/grpc/grpc
1212
url = https://github.com/grpc/grpc.git
13+
[submodule "third_party/flatbuffers/flatbuffers"]
14+
path = third_party/flatbuffers/flatbuffers
15+
url = https://github.com/google/flatbuffers.git
16+
[submodule "third_party/rocksdb/rocksdb"]
17+
path = third_party/rocksdb/rocksdb
18+
url = https://github.com/facebook/rocksdb.git
19+
[submodule "third_party/hiactor/hiactor"]
20+
path = third_party/hiactor/hiactor
21+
url = https://github.com/alibaba/hiactor.git
22+
[submodule "third_party/cppkafka/cppkafka"]
23+
path = third_party/cppkafka/cppkafka
24+
url = https://github.com/mfontanini/cppkafka.git

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![GL](docs/images/graph-learn.png)
1+
![GL](graphlearn/docs/images/graph-learn.png)
22
[![pypi](https://img.shields.io/pypi/v/graph-learn.svg)](https://pypi.org/project/graph-learn/)
33
[![docs](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://graph-learn.readthedocs.io/en/latest/)
44
[![graph-learn CI](https://github.com/alibaba/graph-learn/workflows/graph-learn%20CI/badge.svg)](https://github.com/alibaba/graph-learn/actions)
@@ -33,7 +33,7 @@ cd examples/tf/ego_sage/
3333
python train_unsupervised.py
3434
```
3535

36-
[Distributed training example](graphlearn/docs/en/algo/tf/k8s)
36+
[Distributed training example](graphlearn/docs/en/algo/tf/k8s.md)
3737

3838

3939

README_cn.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![GL](docs/images/graph-learn.png)
1+
![GL](graphlearn/docs/images/graph-learn.png)
22
[![pypi](https://img.shields.io/pypi/v/graph-learn.svg)](https://pypi.org/project/graph-learn/)
33
[![docs](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://graph-learn.readthedocs.io/zh_CN/latest/)
44
[![graph-learn CI](https://github.com/alibaba/graph-learn/workflows/graph-learn%20CI/badge.svg)](https://github.com/alibaba/graph-learn/actions)
@@ -30,7 +30,7 @@ GraphSAGE示例
3030
cd examples/tf/ego_sage/
3131
python train_unsupervised.py
3232
```
33-
[分布式训练示例](graphlearn/docs/zh_CN/algo/tf/k8s)
33+
[分布式训练示例](graphlearn/docs/zh_CN/algo/tf/k8s.md)
3434

3535
## 论文
3636

0 commit comments

Comments
 (0)