forked from IGinX-THU/IGinX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
79 lines (68 loc) · 2.48 KB
/
action.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
name: "tpch-single-test"
description: "test tpc-h once in main branch and new branch"
inputs:
status:
description: "status of last test"
default: "unfinished"
outputs:
status:
description: "status of this test"
value: ${{ steps.get.outputs.status }}
runs:
using: "composite"
steps:
- name: Start New IGinX
if: inputs.status != 'ok'
uses: ./.github/actions/iginxRunner
- name: Run SQL Warmup on New IGinX
if: inputs.status != 'ok'
shell: bash -el {0}
run: mvn test -q -Dtest=SQLWarmupIT -DfailIfNoTests=false -P-format
- name: Run TPCH Test on New IGinX
if: inputs.status != 'ok'
shell: bash -el {0}
run: mvn test -q -Dtest=TPCHNewIT -DfailIfNoTests=false -P-format
- name: Show New IGinX log
if: always() && inputs.status != 'ok'
shell: bash
run: cat iginx-*.log
- name: Stop New IGinX
if: inputs.status != 'ok'
uses: ./.github/actions/iginxRunner
with:
if-stop: "true"
- name: Start Old IGinX
if: inputs.status != 'ok'
shell: bash -el {0}
working-directory: IGinX
run: |
chmod +x core/target/iginx-core-*/sbin/start_iginx.sh
nohup core/target/iginx-core-*/sbin/start_iginx.sh > iginx-$1.log 2>&1 &
sleep 30
- name: Run SQL Warmup on Old IGinX
if: inputs.status != 'ok'
shell: bash -el {0}
run: mvn test -q -Dtest=SQLWarmupIT -DfailIfNoTests=false -P-format
- name: Run TPCH Test on Old IGinX
if: inputs.status != 'ok'
shell: bash -el {0}
run: mvn test -q -Dtest=TPCHOldIT -DfailIfNoTests=false -P-format
- name: Show Old IGinX log
if: always() && inputs.status != 'ok'
shell: bash
run: cat IGinX/iginx-*.log
- name: Stop Old IGinX
if: inputs.status != 'ok'
uses: ./.github/actions/iginxRunner
with:
if-stop: "true"
- name: Get Test Result
id: get
shell: bash
run: |
if [ -f test/src/test/resources/tpch/runtimeInfo/status.txt ]; then
STATUS=$(cat test/src/test/resources/tpch/runtimeInfo/status.txt)
echo "status=$STATUS" >> $GITHUB_OUTPUT
else
echo "status=unfinished" >> $GITHUB_OUTPUT
fi