-
Notifications
You must be signed in to change notification settings - Fork 128
185 lines (179 loc) · 8.83 KB
/
build.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
name: cbdb pipeline
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} # from https://stackoverflow.com/a/72408109/8711684
cancel-in-progress: true
env:
BUILD_TYPE: "debug"
FTS_MODE: "internal_fts"
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
permissions:
id-token: write
contents: read
jobs:
build:
if: github.event.pull_request.draft == false
runs-on: [self-hosted, example]
steps:
- uses: actions/checkout@v3
- name: Run build script
run: |
echo $GITHUB_RUN_ID > BUILD_NUMBER
hd-ci/compile_cbdb.bash ${GEN_DOCKER_TAG}
- uses: actions/upload-artifact@v3
with:
name: cbdb-variables
path: /opt/actions-runner/_work/cloudberrydb/cloudberrydb/cbdb-artifacts.txt
- uses: actions/upload-artifact@v3
with:
name: cbdb-package
path: /tmp/server-build*
icw-test:
needs: build
runs-on: [self-hosted, example]
env:
MAKE_TEST_COMMAND: "-k PGOPTIONS='-c optimizer=off -c gp_appendonly_insert_files=0' installcheck-world"
TEST_OS: "centos"
DUMP_DB: "true"
steps:
- uses: actions/checkout@v3
with:
path: "gpdb_src"
- uses: actions/download-artifact@v3
with:
name: cbdb-variables
path: /opt/
- uses: actions/download-artifact@v3
with:
name: cbdb-package
path: /opt/
- name: Run icw-test script
run: |
mkdir /code
cp -a gpdb_src/ /code
cd /code
echo $GITHUB_RUN_ID > gpdb_src/BUILD_NUMBER
gpdb_src/hd-ci/icw_cbdb.bash $FTS_MODE
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cbdb-test-log
path: |
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/cbdb-artifacts.txt
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/regression.out
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/regression.diffs
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/results/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/expected/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/regression.out
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/regression.diffs
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/results/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/expected/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/standby/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/qddir/demoDataDir-1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast1/demoDataDir0/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast2/demoDataDir1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast3/demoDataDir2/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror1/demoDataDir0/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror2/demoDataDir1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror3/demoDataDir2/log/
icw-orca-test:
needs: build
runs-on: [self-hosted, example]
env:
MAKE_TEST_COMMAND: "-k PGOPTIONS='-c optimizer=on -c gp_appendonly_insert_files=0' installcheck-world"
TEST_OS: "centos"
DUMP_DB: "true"
steps:
- uses: actions/checkout@v3
with:
path: "gpdb_src"
- uses: actions/download-artifact@v3
with:
name: cbdb-variables
path: /opt/
- uses: actions/download-artifact@v3
with:
name: cbdb-package
path: /opt/
- name: Run icw-orca-test script
run: |
mkdir /code
cp -a gpdb_src/ /code
cd /code
echo $GITHUB_RUN_ID > gpdb_src/BUILD_NUMBER
gpdb_src/hd-ci/icw_cbdb.bash $FTS_MODE
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cbdb-test-log
path: |
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/cbdb-artifacts.txt
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/regression.out
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/regression.diffs
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/results/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/expected/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/regression.out
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/regression.diffs
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/results/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/expected/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/standby/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/qddir/demoDataDir-1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast1/demoDataDir0/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast2/demoDataDir1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast3/demoDataDir2/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror1/demoDataDir0/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror2/demoDataDir1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror3/demoDataDir2/log/
icw-parallel-test:
needs: build
runs-on: [self-hosted, example]
env:
MAKE_TEST_COMMAND: "-C src/test/regress -k PGOPTIONS='-c gp_appendonly_insert_files=0' installcheck-cbdb-parallel"
TEST_OS: "centos"
DUMP_DB: "true"
steps:
- uses: actions/checkout@v3
with:
path: "gpdb_src"
- uses: actions/download-artifact@v3
with:
name: cbdb-variables
path: /opt/
- uses: actions/download-artifact@v3
with:
name: cbdb-package
path: /opt/
- name: Run icw-parallel-test script
run: |
mkdir /code
cp -a gpdb_src/ /code
cd /code
echo $GITHUB_RUN_ID > gpdb_src/BUILD_NUMBER
gpdb_src/hd-ci/icw_cbdb.bash $FTS_MODE
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cbdb-test-log
path: |
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/cbdb-artifacts.txt
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/regression.out
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/regression.diffs
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/results/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/regress/expected/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/regression.out
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/regression.diffs
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/results/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/src/test/isolation2/expected/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/standby/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/qddir/demoDataDir-1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast1/demoDataDir0/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast2/demoDataDir1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast3/demoDataDir2/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror1/demoDataDir0/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror2/demoDataDir1/log/
/opt/actions-runner/_work/cloudberrydb/cloudberrydb/gpAux/gpdemo/datadirs/dbfast_mirror3/demoDataDir2/log/