Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 6 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ name: MatrixOne CI
on:
workflow_call:
secrets:
TOKEN_ACTION:
description: "Token for checkout (e.g. pull from fork/private)"
required: false
S3ENDPOINT:
description: "S3ENDPOINT For Test"
required: true
Expand Down Expand Up @@ -76,6 +79,7 @@ jobs:

- uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
fetch-depth: "3"
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
Expand Down Expand Up @@ -143,20 +147,6 @@ jobs:
echo "steps.ut.conclusion: ${{ steps.ut.conclusion }}"
echo "FAIL_UT_CASES=${fail_ut_cases}"
echo "FAIL_UT_CASES=${fail_ut_cases}" >> $GITHUB_OUTPUT
- name: Insert Failed UT Cases to MOC
if: ${{ failure() }}
uses: matrixorigin/CI/actions/fail-ut-case@main
with:
action_time: ${{ steps.time.outputs.ACTION_TIME }}
ut_cases: ${{ steps.failed.outputs.FAIL_UT_CASES }}
pr_link: ${{ github.event.pull_request.html_url }}
action_link: ${{ steps.time.outputs.ACTION_LINK }}
job_time: ${{ steps.time.outputs.START_TIME }}
mo_host: ${{ secrets.EE_DB_ADDR }}
mo_port: ${{ secrets.EE_DB_PORT }}
mo_user: ${{ secrets.EE_DB_USER }}
mo_password: ${{ secrets.EE_DB_PASSWORD }}
mo_database: ${{ secrets.EE_DB_DB }}
- name: Print the Top 10 Time-Consuming Tests
if: ${{ always() }}
continue-on-error: true
Expand All @@ -173,6 +163,7 @@ jobs:
steps:
- uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
fetch-depth: "3"
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
Expand Down Expand Up @@ -211,6 +202,7 @@ jobs:
steps:
- uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
fetch-depth: "3"
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/e2e-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: MatrixOne Compose Test

on:
workflow_call:
secrets:
TOKEN_ACTION:
description: "Token for checkout (e.g. pull from fork/private)"
required: false

jobs:
bvt-docker-compose-push:
Expand All @@ -24,6 +28,7 @@ jobs:
- name: checkout
uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
fetch-depth: "3"
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
Expand Down Expand Up @@ -194,6 +199,7 @@ jobs:
- name: checkout
uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
fetch-depth: "3"
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/e2e-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: MatrixOne e2e CI(Standalone)

on:
workflow_call:
secrets:
TOKEN_ACTION:
description: "Token for checkout (e.g. pull from fork/private)"
required: false

jobs:
bvt-linux-x86:
Expand All @@ -14,6 +18,7 @@ jobs:
- name: checkout head
uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
fetch-depth: "3"
path: ./head
repository: ${{ github.event.pull_request.head.repo.full_name }}
Expand Down Expand Up @@ -149,6 +154,7 @@ jobs:
- name: checkout head
uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
path: ./head
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
Expand Down Expand Up @@ -237,6 +243,7 @@ jobs:
- name: checkout head
uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
fetch-depth: "3"
path: ./head
repository: ${{ github.event.pull_request.head.repo.full_name }}
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/e2e-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: MatrixOne e2e upgrade CI

on:
workflow_call:
secrets:
TOKEN_ACTION:
description: "Token for checkout (e.g. pull from fork/private)"
required: false
inputs:
release-repo:
description: "release version"
Expand All @@ -23,13 +27,15 @@ jobs:
- name: checkout head
uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
path: ./head
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}

- name: checkout upstream
uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
path: ./upstream
repository: ${{ github.event.pull_request.base.repo.full_name }}
ref: ${{ github.event.pull_request.base.ref }}
Expand Down Expand Up @@ -229,6 +235,7 @@ jobs:
- name: Checkout Head
uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
path: ./head
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
Expand All @@ -243,6 +250,7 @@ jobs:
- name: Checkout Upstream Release
uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
path: ./upstream
repository: ${{ inputs.release-repo }}
# ref: ${{ steps.get-latest-release.outputs.tag }} // restore to this line after new release includes d4051aebd6 - update bvt cases (#23317)
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/image-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ on:
default: "p4n7f8j9"
type: string
secrets:
TOKEN_ACTION:
description: "Token for checkout (e.g. pull from fork/private)"
required: false
DOCKERHUB_USERNAME:
description: 'DOCKERHUB_USERNAME'
required: true
Expand Down Expand Up @@ -48,6 +51,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
fetch-depth: 1

# # github OIDC https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services
Expand Down Expand Up @@ -106,13 +110,13 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to Alicloud Container Registry
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
registry: registry.cn-shanghai.aliyuncs.com
username: ${{ secrets.ACR_USERNAME }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/merge-trigger-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: MO Checkin Regression(Standalone BVT)
on:
workflow_call:
secrets:
TOKEN_ACTION:
description: "Token for checkout (e.g. pull from fork/private)"
required: false
WECHAT_MO_CHECKIN_BOT_WEBHOOK:
description: "WECHAT_MO_CHECKIN_BOT_WEBHOOK"
required: true
Expand All @@ -20,6 +23,7 @@ jobs:
- name: checkout matrixorigin/matrixone
uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
path: ./matrixone
- name: Set up Go
uses: matrixorigin/CI/actions/setup-env@main
Expand Down Expand Up @@ -133,6 +137,7 @@ jobs:
- name: checkout head
uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
path: ./head
- name: Set up Go
uses: matrixorigin/CI/actions/setup-env@main
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/merge-trigger-tke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ jobs:
if: ${{ always() && !cancelled() }}
uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
path: ./matrixone
- name: Login to TCR
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
registry: "ccr.ccs.tencentyun.com"
username: ${{ secrets.TCR_USERNAME }}
Expand Down Expand Up @@ -125,6 +126,7 @@ jobs:
if: ${{ always() && !cancelled() }}
uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
path: ./matrixone
- name: Clean TKE ENV
run: |
Expand Down Expand Up @@ -285,13 +287,13 @@ jobs:
uses: actions/checkout@v6
with:
repository: matrixorigin/mo-tester
token: ${{secrets.TOKEN_ACTION}}
path: ./mo-tester
ref: main
- name: Clone matrixone Repo
if: ${{ always() && !cancelled() }}
uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
path: ./matrixone
- name: Set JAVA PATH
run: |
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
- name: Get release
id: get_release
uses: bruceadams/get-release@v1.3.2
Expand Down Expand Up @@ -101,6 +103,8 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
- name: Get release
id: get_release
uses: bruceadams/get-release@v1.3.2
Expand Down Expand Up @@ -168,6 +172,8 @@ jobs:
exit 1;
- name: Checkout source
uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
- name: Get release
id: get_release
uses: bruceadams/get-release@v1.3.2
Expand Down Expand Up @@ -197,6 +203,7 @@ jobs:
- name: Clone gon
uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
fetch-depth: "1"
repository: matrixorigin/gon
ref: master
Expand Down Expand Up @@ -270,6 +277,8 @@ jobs:
exit 1;
- name: Checkout source
uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
- name: Get release
id: get_release
uses: bruceadams/get-release@v1.3.2
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/robot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
steps:
- name: CheckOut
uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}

- name: Check the code to see if the issue number is removed
id: get_check_val
Expand Down Expand Up @@ -102,6 +104,7 @@ jobs:
steps:
- uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
fetch-depth: "3"
path: ./matrixone
- name: Set up Go
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/utils.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ jobs:
steps:
- uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
fetch-depth: "1"
path: ./matrixone
repository: ${{ github.event.pull_request.head.repo.full_name }}
Expand Down Expand Up @@ -330,6 +331,7 @@ jobs:
if: ${{ always() && !cancelled() }}
uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
repository: matrixorigin/CI
fetch-depth: "1"
path: CI
Expand Down Expand Up @@ -426,6 +428,7 @@ jobs:
steps:
- uses: actions/checkout@v6
with:
token: ${{ secrets.TOKEN_ACTION }}
path: ./matrixone
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
Expand Down
Loading