Skip to content

Commit d0d4455

Browse files
committed
Revert "rm s3 key in ci"
This reverts commit 15229ec.
1 parent e873160 commit d0d4455

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,42 @@ name: MatrixOne CI
44
on:
55
workflow_call:
66
secrets:
7+
SYNC_APP_ID:
8+
description: "GitHub App ID for private checkout"
9+
required: false
710
SYNC_APP_KEY:
811
description: "Token for checkout (optional; falls back to GITHUB_TOKEN)"
912
required: false
13+
S3ENDPOINT:
14+
description: "S3ENDPOINT For Test"
15+
required: true
16+
S3REGION:
17+
description: "S3REGION For Test"
18+
required: true
19+
S3APIKEY:
20+
description: "S3APIKEY For Test"
21+
required: true
22+
S3APISECRET:
23+
description: "S3APISECRET For Test"
24+
required: true
25+
S3BUCKET:
26+
description: "S3BUCKET For Test"
27+
required: true
28+
EE_DB_ADDR:
29+
description: "matrixone cloud host"
30+
required: true
31+
EE_DB_PORT:
32+
description: "matrixone cloud port"
33+
required: true
34+
EE_DB_USER:
35+
description: "matrixone cloud user"
36+
required: true
37+
EE_DB_PASSWORD:
38+
description: "matrixone cloud password"
39+
required: true
40+
EE_DB_DB:
41+
description: "matrixone cloud db"
42+
required: true
1043

1144
jobs:
1245
ut-linux-x86:
@@ -63,6 +96,11 @@ jobs:
6396
hdfs-download-url: "https://github.com/matrixorigin/CI/releases/download/hadoop-binary-3.4.1/hadoop-3.4.1.tar.gz"
6497
- name: Set env
6598
run: |
99+
echo "endpoint=${{ secrets.S3ENDPOINT }}" >> $GITHUB_ENV
100+
echo "region=${{ secrets.S3REGION }}" >> $GITHUB_ENV
101+
echo "apikey=${{ secrets.S3APIKEY }}" >> $GITHUB_ENV
102+
echo "apisecret=${{ secrets.S3APISECRET }}" >> $GITHUB_ENV
103+
echo "bucket=${{ secrets.S3BUCKET }}" >> $GITHUB_ENV
66104
# set ut workdir
67105
echo "UT_WORKDIR=${{ github.workspace }}" >> $GITHUB_ENV
68106
- name: Unit Testing
@@ -112,6 +150,20 @@ jobs:
112150
echo "steps.ut.conclusion: ${{ steps.ut.conclusion }}"
113151
echo "FAIL_UT_CASES=${fail_ut_cases}"
114152
echo "FAIL_UT_CASES=${fail_ut_cases}" >> $GITHUB_OUTPUT
153+
- name: Insert Failed UT Cases to MOC
154+
if: ${{ failure() }}
155+
uses: matrixorigin/CI/actions/fail-ut-case@main
156+
with:
157+
action_time: ${{ steps.time.outputs.ACTION_TIME }}
158+
ut_cases: ${{ steps.failed.outputs.FAIL_UT_CASES }}
159+
pr_link: ${{ github.event.pull_request.html_url }}
160+
action_link: ${{ steps.time.outputs.ACTION_LINK }}
161+
job_time: ${{ steps.time.outputs.START_TIME }}
162+
mo_host: ${{ secrets.EE_DB_ADDR }}
163+
mo_port: ${{ secrets.EE_DB_PORT }}
164+
mo_user: ${{ secrets.EE_DB_USER }}
165+
mo_password: ${{ secrets.EE_DB_PASSWORD }}
166+
mo_database: ${{ secrets.EE_DB_DB }}
115167
- name: Print the Top 10 Time-Consuming Tests
116168
if: ${{ always() }}
117169
continue-on-error: true

0 commit comments

Comments
 (0)