Skip to content

Commit

Permalink
CI: Migrate mergerun (matrixorigin#13753)
Browse files Browse the repository at this point in the history
  • Loading branch information
guguducken authored Dec 23, 2023
1 parent e68cf30 commit 8b651e9
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/merge-trigger-tke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
docker_image_build:
runs-on: amd64-tke-dind
runs-on: amd64-mo-guangzhou-dind
if: ${{ github.event.pull_request.merged == true }}
timeout-minutes: 60
name: BUILD MO DOCKER IMAGE
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
setup_mo_test_env:
if: ${{ always() && !cancelled() && needs.docker_image_build.result == 'success' }}
needs: docker_image_build
runs-on: amd64-tke-mo
runs-on: amd64-mo-guangzhou-medium8
timeout-minutes: 90
name: SETUP MO TEST ENV
outputs:
Expand Down Expand Up @@ -85,9 +85,9 @@ jobs:
echo '${{ needs.docker_image_build.outputs.version }}'
cd $GITHUB_WORKSPACE/matrixone
sed -i 's/nsformocheckin/mo-checkin-regression-${{ github.event.pull_request.number }}/g' $GITHUB_WORKSPACE/matrixone/optools/mo_checkin_regression/mo_checkin_regression_tke.yaml
sed -i 's/s3pathformocheckin/mo-checkin-regression-1308875761\/${{ github.event.pull_request.number }}/g' $GITHUB_WORKSPACE/matrixone/optools/mo_checkin_regression/mo_checkin_regression_tke.yaml
sed -i 's/regionformocheckin/ap-chengdu/g' $GITHUB_WORKSPACE/matrixone/optools/mo_checkin_regression/mo_checkin_regression_tke.yaml
sed -i 's@endpointformocheckin@https://cos.ap-chengdu.myqcloud.com@g' $GITHUB_WORKSPACE/matrixone/optools/mo_checkin_regression/mo_checkin_regression_tke.yaml
sed -i 's/s3pathformocheckin/mo-checkin-gz-1308875761\/${{ github.event.pull_request.number }}/g' $GITHUB_WORKSPACE/matrixone/optools/mo_checkin_regression/mo_checkin_regression_tke.yaml
sed -i 's/regionformocheckin/ap-guangzhou/g' $GITHUB_WORKSPACE/matrixone/optools/mo_checkin_regression/mo_checkin_regression_tke.yaml
sed -i 's@endpointformocheckin@https://cos.ap-guangzhou.myqcloud.com@g' $GITHUB_WORKSPACE/matrixone/optools/mo_checkin_regression/mo_checkin_regression_tke.yaml
sed -i "s/imagetag/${{ needs.docker_image_build.outputs.version }}/g" $GITHUB_WORKSPACE/matrixone/optools/mo_checkin_regression/mo_checkin_regression_tke.yaml
cat $GITHUB_WORKSPACE/matrixone/optools/mo_checkin_regression/mo_checkin_regression_tke.yaml
Expand Down Expand Up @@ -189,7 +189,7 @@ jobs:
bvt_test:
if: ${{ always() && !cancelled() && needs.setup_mo_test_env.result == 'success' }}
name: MO CHECKIN BVT TEST
runs-on: amd64-tke-mo
runs-on: amd64-mo-guangzhou-medium8
needs: [setup_mo_test_env,docker_image_build]
steps:
- name: Clone MO-Tester
Expand Down Expand Up @@ -241,7 +241,7 @@ jobs:
ssb_and_tpch_test:
if: ${{ always() && !cancelled() && needs.setup_mo_test_env.result == 'success' }}
name: MO CHECKIN SSB AND TPCH TEST
runs-on: amd64-tke-large
runs-on: amd64-mo-guangzhou-2xlarge16
needs: [setup_mo_test_env,bvt_test]
steps:
- name: Clone mo-load-data Repo
Expand All @@ -251,7 +251,7 @@ jobs:
repository: matrixorigin/mo-load-data
token: ${{secrets.TOKEN_ACTION}}
path: ./mo-load-data
ref: main
ref: change_cos_bucket

- name: Clone mo-ssb Repo
if: ${{ always() && !cancelled() }}
Expand Down Expand Up @@ -290,7 +290,7 @@ jobs:
- name: Modify Tool's Setting And Set PATH
run: |
cd $GITHUB_WORKSPACE/mo-load-data
sed -i '/.*ENDPOINT: ""*/c\ENDPOINT: "cos.ap-chengdu.myqcloud.com"' access.yml
sed -i '/.*ENDPOINT: ""*/c\ENDPOINT: "cos.ap-guangzhou.myqcloud.com"' access.yml
sed -i '/.*ACCESS_KEY_ID: ""*/c\ACCESS_KEY_ID: "${{secrets.TENCENT_AK}}"' access.yml
sed -i '/.*SECRET_ACCESS_KEY: ""*/c\SECRET_ACCESS_KEY: "${{secrets.TENCENT_SK}}"' access.yml
echo "$JAVA_HOME/bin" >> $GITHUB_PATH
Expand Down Expand Up @@ -448,7 +448,7 @@ jobs:
sysbench_test:
if: ${{ always() && !cancelled() && needs.setup_mo_test_env.result == 'success' }}
name: SYSBENCH TEST
runs-on: amd64-tke-large
runs-on: amd64-mo-guangzhou-2xlarge16
needs: [setup_mo_test_env,bvt_test]
steps:
- name: Clone mo-load Repo
Expand Down Expand Up @@ -543,7 +543,7 @@ jobs:
tpcc_test:
if: ${{ always() && !cancelled() && needs.setup_mo_test_env.result == 'success'}}
name: TPCC TEST
runs-on: amd64-tke-large
runs-on: amd64-mo-guangzhou-2xlarge16
needs: [setup_mo_test_env,bvt_test]
steps:
- name: Clone mo-load-data Repo
Expand All @@ -553,7 +553,7 @@ jobs:
repository: matrixorigin/mo-load-data
token: ${{secrets.TOKEN_ACTION}}
path: ./mo-load-data
ref: main
ref: change_cos_bucket

- name: Clone mo-tpcc Repo
if: ${{ always() && !cancelled() }}
Expand Down Expand Up @@ -584,7 +584,7 @@ jobs:
- name: Modify Tool's Setting And Set PATH
run: |
cd $GITHUB_WORKSPACE/mo-load-data
sed -i '/.*ENDPOINT: ""*/c\ENDPOINT: "cos.ap-chengdu.myqcloud.com"' access.yml
sed -i '/.*ENDPOINT: ""*/c\ENDPOINT: "cos.ap-guangzhou.myqcloud.com"' access.yml
sed -i '/.*ACCESS_KEY_ID: ""*/c\ACCESS_KEY_ID: "${{secrets.TENCENT_AK}}"' access.yml
sed -i '/.*SECRET_ACCESS_KEY: ""*/c\SECRET_ACCESS_KEY: "${{secrets.TENCENT_SK}}"' access.yml
Expand Down Expand Up @@ -668,7 +668,7 @@ jobs:
clean_up_env:
if: ${{ always() && github.event.pull_request.merged == true }}
name: CLEAN ENV AND NOTICE
runs-on: amd64-tke-mo
runs-on: amd64-mo-guangzhou-medium8
needs: [docker_image_build,setup_mo_test_env,bvt_test,ssb_and_tpch_test,sysbench_test,tpcc_test]
steps:
- name: Check and Recreate Namespace
Expand Down

0 comments on commit 8b651e9

Please sign in to comment.