Skip to content

Commit 6658030

Browse files
Ray-Eldathavamingli
authored andcommitted
Add CI for singlenode mode
This PR adds a new GitHub Actions job, ic-singlenode-test, to build workflow. It has been verified that the build procedure and log uploading both work as expected.
1 parent c867979 commit 6658030

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/build.yml

+46
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,52 @@ jobs:
9393
limit-access-to-actor: true
9494
limit-access-to-users: hashdata-build
9595
wait-timeout-minutes: 60
96+
ic-singlenode-test:
97+
needs: build
98+
runs-on: [ self-hosted, example ]
99+
env:
100+
MAKE_TEST_COMMAND: "-C src/test installcheck-singlenode"
101+
NUM_PRIMARY_MIRROR_PAIRS: "0"
102+
TEST_OS: "centos"
103+
DUMP_DB: "true"
104+
steps:
105+
- uses: actions/checkout@v3
106+
with:
107+
path: "gpdb_src"
108+
- uses: actions/download-artifact@v3
109+
with:
110+
name: cbdb-variables
111+
path: /opt/
112+
- uses: actions/download-artifact@v3
113+
with:
114+
name: cbdb-package
115+
path: /opt/
116+
- name: Run icw-test script
117+
run: |
118+
mkdir /code
119+
cp -a gpdb_src/ /code
120+
cd /code
121+
echo $GITHUB_RUN_ID > gpdb_src/BUILD_NUMBER
122+
gpdb_src/hd-ci/icw_cbdb.bash $FTS_MODE
123+
- uses: actions/upload-artifact@v3
124+
if: failure()
125+
with:
126+
name: cbdb-ic-singlenode-test-log
127+
path: |
128+
/code/gpdb_src/src/test/singlenode_regress/regression.out
129+
/code/gpdb_src/src/test/singlenode_regress/regression.diffs
130+
/code/gpdb_src/src/test/singlenode_regress/results/
131+
/code/gpdb_src/src/test/singlenode_regress/expected/
132+
/code/gpdb_src/src/test/singlenode_isolation2/regression.out
133+
/code/gpdb_src/src/test/singlenode_isolation2/regression.diffs
134+
/code/gpdb_src/src/test/singlenode_isolation2/results/
135+
/code/gpdb_src/src/test/singlenode_isolation2/expected/
136+
/code/gpdb_src/src/test/isolation/regression.out
137+
/code/gpdb_src/src/test/isolation/regression.diffs
138+
/code/gpdb_src/src/test/isolation/output_iso/results/
139+
/code/gpdb_src/src/test/isolation/expected/
140+
/code/gpdb_src/gpAux/gpdemo/datadirs/standby/log/
141+
/code/gpdb_src/gpAux/gpdemo/datadirs/singlenodedir/demoDataDir-1/log/
96142
icw-orca-test:
97143
needs: build
98144
runs-on: [self-hosted, example]

0 commit comments

Comments
 (0)