Skip to content

Commit

Permalink
update secrets(use environment secrets) (#149)
Browse files Browse the repository at this point in the history
Co-authored-by: brown <[email protected]>
  • Loading branch information
Rosyrain and guguducken authored Nov 1, 2024
1 parent 0d4fab1 commit d487ea1
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ on:

jobs:
ut-linux-x86:
environment: ci
runs-on: ubuntu-22.04
name: UT Test on Ubuntu/x86
steps:
Expand Down Expand Up @@ -57,6 +58,7 @@ jobs:
ut-mac-x86:
#if: ${{ !github.event.pull_request.draft }}
if: ${{ false }}
environment: ci
runs-on: macos-12
name: UT Test on Darwin/x86

Expand Down Expand Up @@ -91,6 +93,7 @@ jobs:
find scratch -name "**-UT-Count.out" -exec cat {} \;
sca:
environment: ci
runs-on: ubuntu-22.04
name: SCA Test on Ubuntu/x86
steps:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/e2e-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
jobs:
bvt-docker-compose-push:
if: ${{ !github.event.pull_request.draft }}
environment: ci
runs-on: ubuntu-22.04
name: multi cn e2e bvt test docker compose(Optimistic/PUSH)
timeout-minutes: 60
Expand Down Expand Up @@ -110,6 +111,7 @@ jobs:

multi-CN-bvt-docker-compose-pessimistic:
if: ${{ !github.event.pull_request.draft }}
environment: ci
runs-on: ubuntu-22.04
name: multi cn e2e bvt test docker compose(PESSIMISTIC)
timeout-minutes: 60
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/e2e-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
jobs:
bvt-linux-x86:
if: ${{ !github.event.pull_request.draft }}
environment: ci
runs-on: ubuntu-22.04
name: e2e BVT Test on Linux/x64(LAUNCH,Optimistic)
timeout-minutes: 90
Expand Down Expand Up @@ -122,6 +123,7 @@ jobs:
retention-days: 7

multi-cn-proxy-bvt-linux-x86:
environment: ci
runs-on: ubuntu-22.04
name: Multi-CN e2e BVT Test on Linux/x64(LAUNCH, PROXY)
timeout-minutes: 60
Expand Down Expand Up @@ -196,6 +198,7 @@ jobs:
retention-days: 7

pessimistic-bvt-linux-x86:
environment: ci
runs-on: ubuntu-22.04
name: e2e BVT Test on Linux/x64(LAUNCH, PESSIMISTIC)
timeout-minutes: 60
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/e2e-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ env:

jobs:
upgrade-ci-target-linux-amd64:
environment: ci
runs-on: ubuntu-22.04
name: Compatibility Test With Target on Linux/x64(LAUNCH)
timeout-minutes: 60
Expand Down Expand Up @@ -166,6 +167,7 @@ jobs:
retention-days: 7

upgrade-ci-release-linux-amd64:
environment: ci
runs-on: ubuntu-22.04
name: Compatibility Test With Release on Linux/x64(LAUNCH)
timeout-minutes: 60
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/image-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ permissions:

jobs:
dockerhub:
environment: ci
runs-on: ubuntu-22.04

steps:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/merge-trigger-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
jobs:
pessimistic-bvt-darwin-arm64:
if: ${{ github.event.pull_request.merged == true }}
environment: ci
runs-on: mac-arm64-mini
name: e2e BVT Test on Darwin/ARM64(LAUNCH, PESSIMISTIC)
timeout-minutes: 120
Expand Down Expand Up @@ -112,6 +113,7 @@ jobs:

multi-cn-bvt-race-linux-x86:
if: ${{ github.event.pull_request.merged == true && always() }}
environment: ci
runs-on: amd64-mo-guangzhou-2xlarge32
needs: [pessimistic-bvt-darwin-arm64]
name: Multi-CN e2e BVT(Race) Test on Linux/x64
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/merge-trigger-tke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ on:

jobs:
docker_image_build:
runs-on: amd64-mo-guangzhou-dind #amd64-mo-shanghai-dind
environment: ci
runs-on: amd64-mo-shanghai-dind
if: ${{ github.event.pull_request.merged == true }}
timeout-minutes: 30
name: BUILD MO DOCKER IMAGE
Expand Down Expand Up @@ -76,6 +77,7 @@ jobs:
setup_mo_test_env:
if: ${{ always() && !cancelled() && needs.docker_image_build.result == 'success' }}
needs: docker_image_build
environment: ci
runs-on: amd64-mo-guangzhou-medium8
timeout-minutes: 40
name: SETUP MO TEST ENV
Expand Down Expand Up @@ -232,6 +234,7 @@ jobs:
bvt_test:
if: ${{ always() && !cancelled() && needs.setup_mo_test_env.result == 'success' }}
name: MO CHECKIN BVT TEST
environment: ci
runs-on: amd64-mo-guangzhou-medium8
needs: [setup_mo_test_env,docker_image_build]
steps:
Expand Down Expand Up @@ -284,6 +287,7 @@ jobs:
ssb_and_tpch_test:
if: ${{ always() && !cancelled() && needs.setup_mo_test_env.result == 'success' }}
name: MO CHECKIN SSB AND TPCH TEST
environment: ci
runs-on: amd64-mo-guangzhou-2xlarge16
needs: [setup_mo_test_env,bvt_test]
steps:
Expand Down Expand Up @@ -505,6 +509,7 @@ jobs:
sysbench_test:
if: ${{ always() && !cancelled() && needs.setup_mo_test_env.result == 'success' }}
name: SYSBENCH TEST
environment: ci
runs-on: amd64-mo-guangzhou-2xlarge16
needs: [setup_mo_test_env,bvt_test]
steps:
Expand Down Expand Up @@ -624,6 +629,7 @@ jobs:
tpcc_test:
if: ${{ always() && !cancelled() && needs.setup_mo_test_env.result == 'success'}}
name: TPCC TEST
environment: ci
runs-on: amd64-mo-guangzhou-2xlarge16
needs: [setup_mo_test_env,bvt_test]
steps:
Expand Down Expand Up @@ -767,6 +773,7 @@ jobs:
clean_up_env:
if: ${{ always() && github.event.pull_request.merged == true }}
name: CLEAN ENV AND NOTICE
environment: ci
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:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ on:

jobs:
linux-amd64-build-job:
environment: ci
runs-on: ubuntu-20.04
steps:
- name: Checkout source
Expand Down Expand Up @@ -99,6 +100,7 @@ jobs:
echo "check in [ J_0. Set variables ]->[ Step_99. Display and output actual variables ] to see if the binary file url is correct"
linux-arm64-build-job:
environment: ci
runs-on: aws-arm64-runner
steps:
- name: Checkout source
Expand Down Expand Up @@ -159,6 +161,7 @@ jobs:
storage_class: "MAZ_STANDARD"

darwin-x86-build-job:
environment: ci
runs-on: macos-latest
steps:
# GitHub Hosted MacOS runner cannot connect to time.apple.com, so use time.windows.com
Expand Down Expand Up @@ -277,6 +280,7 @@ jobs:

#if the release for darwin-arm is failed, please contact guguducken to check runner status
darwin-arm-build-job:
environment: ci
runs-on: mac-arm64-mini
steps:
- name: Sync system time
Expand Down Expand Up @@ -388,6 +392,7 @@ jobs:
security find-identity -p codesigning | grep ID | awk 'NR=1{system("security delete-identity -Z "$2)}'
musl-x86-build-job:
environment: ci
runs-on: ubuntu-20.04
steps:
- name: Checkout source
Expand Down Expand Up @@ -456,6 +461,7 @@ jobs:
echo "check in [ J_0. Set variables ]->[ Step_99. Display and output actual variables ] to see if the binary file url is correct"
musl-arm64-build-job:
environment: ci
runs-on: aws-arm64-runner
steps:
- name: Checkout source
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/robot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ on:
jobs:
issue-notify:
if: github.event_name == 'issues' && github.event.action == 'assigned'
environment: ci
runs-on: ubuntu-22.04
steps:
- name: ISSUE Triggered
Expand All @@ -31,6 +32,7 @@ jobs:

add-projects-milestone:
if: github.event_name == 'issues' && github.event.action == 'opened'
environment: ci
runs-on: ubuntu-22.04
steps:
- name: Issue Add Milestone
Expand All @@ -42,6 +44,7 @@ jobs:

check-bvt-issue:
if: github.event_name == 'issues' && github.event.action == 'closed'
environment: ci
runs-on: ubuntu-22.04
steps:
- name: CheckOut
Expand Down Expand Up @@ -78,6 +81,7 @@ jobs:
Hello @${{ github.event.issue.user.login }}. The bug issue in the BVT test code has not been removed,issues automatically open.
issue-reopen:
environment: ci
runs-on: ubuntu-22.04
if: github.event_name == 'issues' && github.event.action == 'closed'
steps:
Expand All @@ -90,6 +94,7 @@ jobs:
issue-number: ${{ github.event.issue.number }}

issue_close_check:
environment: ci
runs-on: ubuntu-22.04
if: github.event_name == 'issues' && github.event.action == 'closed'
steps:
Expand All @@ -101,6 +106,7 @@ jobs:
mentions: "Prinz,DengNan"

add-issue-to-project:
environment: ci
runs-on: ubuntu-22.04
if: github.event_name == 'issues' && github.event.action == 'assigned'
steps:
Expand All @@ -119,6 +125,7 @@ jobs:

nightly-check:
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
environment: ci
runs-on: aws-arm64-runner
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/utils.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ on:

jobs:
check_organization_user:
environment: ci
runs-on: ubuntu-22.04
outputs:
in_org: ${{ steps.check_in_org.outputs.in_org }}
Expand Down Expand Up @@ -79,6 +80,7 @@ jobs:
if: ${{ needs.check_organization_user.outputs.safe_label == '1' || needs.check_organization_user.outputs.in_org == '1' }}
name: PR Unit Test Coverage
needs: [check_organization_user]
environment: ci
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -206,6 +208,7 @@ jobs:
retention-days: 7

pr-size-label:
environment: ci
runs-on: ubuntu-22.04
needs: [check_organization_user]
steps:
Expand All @@ -225,6 +228,7 @@ jobs:
}
docu_issue_check:
environment: ci
runs-on: ubuntu-22.04
needs: [check_organization_user]
if: ${{ github.event.action == 'opened' }}
Expand Down

0 comments on commit d487ea1

Please sign in to comment.