-
Notifications
You must be signed in to change notification settings - Fork 443
121 lines (103 loc) · 3.86 KB
/
gaia.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name: GraphScope GAIA CI
on:
# Trigger the workflow on push or pull request, but only for the main branch
workflow_dispatch:
push:
branches:
- main
paths:
- 'interactive_engine/**'
- '.github/workflows/gaia.yml'
pull_request:
branches:
- main
paths:
- 'interactive_engine/**'
- '.github/workflows/gaia.yml'
concurrency:
group: ${{ github.repository }}-${{ github.event.number || github.head_ref || github.sha }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
gaia-test:
runs-on: [self-hosted, manylinux2014]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Detect the tmate session
run: |
if grep -v "grep" .github/workflows/gaia.yml | grep "action-tmate"; then
echo 'WARNING!!!the self-hosted machine cannot run tmate session, please debug it manually'
exit 1
fi
- uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
~/.cache/sccache
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Rust Format Check
run: |
cd ${GITHUB_WORKSPACE}/interactive_engine/executor && ./check_format.sh
- name: Build Pegasus and Test
run: |
echo $(pwd)
cd ${GITHUB_WORKSPACE}/interactive_engine/executor/engine/pegasus
cargo build --verbose
cargo test --verbose
- name: Build Ir on Experimental Store and Csr Store
run: |
cd ${GITHUB_WORKSPACE}/interactive_engine/compiler
make build
make build rpc.target=start_rpc_server_csr
- name: Ir Unit Test
run: |
cd ${GITHUB_WORKSPACE}/interactive_engine/compiler && make test
- name: CommonType Unit Test
run: |
cd ${GITHUB_WORKSPACE}/interactive_engine/executor/common/dyn_type && cargo test
- name: Store Unit Test
run: |
cd ${GITHUB_WORKSPACE}/interactive_engine/executor/store/exp_store && cargo test
cd ${GITHUB_WORKSPACE}/interactive_engine/executor/store/groot && cargo test
# TODO: add ut in global_query
# cd ${GITHUB_WORKSPACE}/interactive_engine/executor/store/global_query && cargo test
- name: Ir With Features Test
run: |
cd ${GITHUB_WORKSPACE}/interactive_engine/executor/ir/integrated
cargo test --features=mimalloc
# TODO: With mimalloc, it may occur buffer overflow in groot store test sometimes. Currently, we do not use mimalloc (as default) in groot store.
# cd ${GITHUB_WORKSPACE}/interactive_engine/executor/store/groot
# cargo test --features=mimalloc
- name: Ir Integration Test on Experimental Store
run: |
. ${HOME}/.graphscope_env
git clone -b master --single-branch --depth=1 https://github.com/7br/gstest.git /tmp/gstest || true
cd ${GITHUB_WORKSPACE}/interactive_engine/compiler && ./ir_experimental_ci.sh
- name: Ir Integration Pattern Test on Experimental Store
run: |
cd ${GITHUB_WORKSPACE}
cd ${GITHUB_WORKSPACE}/interactive_engine/compiler && ./ir_experimental_advanced_ci.sh
- name: Ir Integration Test on Csr Store
run: |
cd ${GITHUB_WORKSPACE}/interactive_engine/compiler && ./ir_csr_ci.sh
- name: Ir Integration Pattern Test on Csr Store
run: |
cd ${GITHUB_WORKSPACE}
cd ${GITHUB_WORKSPACE}/interactive_engine/compiler && ./ir_csr_pattern_ci.sh
- name: Upload GIE log
if: failure()
uses: actions/upload-artifact@v4
continue-on-error: true
with:
name: gie-log
path: /var/log/graphscope