Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosyrain committed Oct 10, 2024
1 parent 18a9fcb commit 49fef1c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 37 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ jobs:
echo "bucket=${{ secrets.S3BUCKET }}" >> $GITHUB_ENV
# set ut workdir
echo "UT_WORKDIR=${{ github.workspace }}" >> $GITHUB_ENV
- name: Add cn.txn
run: |
cd $GITHUB_WORKSPACE
echo "[cn.txn]" >> ./etc/launch/cn.toml
echo " enable-leak-check = 1" >> ./etc/launch/cn.toml
echo ' max-active-ages = "2m"'>> ./etc/launch/cn.toml
- name: Unit Testing
run: |
cd $GITHUB_WORKSPACE && make clean && make config
Expand Down Expand Up @@ -84,12 +78,6 @@ jobs:
echo "bucket=${{ secrets.S3BUCKET }}" >> $GITHUB_ENV
# set ut workdir
echo "UT_WORKDIR=${{ github.workspace }}" >> $GITHUB_ENV
- name: Add cn.txn
run: |
cd $GITHUB_WORKSPACE
echo "[cn.txn]" >> ./etc/launch/cn.toml
echo " enable-leak-check = 1" >> ./etc/launch/cn.toml
echo ' max-active-ages = "2m"'>> ./etc/launch/cn.toml
- name: Unit Testing
run: |
cd $GITHUB_WORKSPACE && make clean && make config
Expand Down Expand Up @@ -121,12 +109,6 @@ jobs:
uses: matrixorigin/CI/actions/setup-env@main
with:
setup-java: false
- name: Add cn.txn
run: |
cd $GITHUB_WORKSPACE
echo "[cn.txn]" >> ./etc/launch/cn.toml
echo " enable-leak-check = 1" >> ./etc/launch/cn.toml
echo ' max-active-ages = "2m"'>> ./etc/launch/cn.toml
- name: Prepare ENV
run: |
cd $GITHUB_WORKSPACE && make clean && make config && make build
Expand Down
32 changes: 15 additions & 17 deletions .github/workflows/e2e-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ jobs:
ref: ${{ github.event.pull_request.head.ref }}
- name: Set up Go And Java
uses: matrixorigin/CI/actions/setup-env@main
- name: Add cn.txn
run: |
cd $GITHUB_WORKSPACE/head
echo "[cn.txn]" >> ./etc/launch/cn.toml
echo " enable-leak-check = 1" >> ./etc/launch/cn.toml
echo ' max-active-ages = "2m"'>> ./etc/launch/cn.toml
- name: Build MatrixOne
run: |
cd $GITHUB_WORKSPACE/head && make clean && make build
Expand All @@ -35,6 +29,8 @@ jobs:
echo "" >> ./etc/launch/cn.toml
echo '[cn.txn]' >> ./etc/launch/cn.toml
echo 'mode = "Optimistic"' >> ./etc/launch/cn.toml
echo " enable-leak-check = 1" >> ./etc/launch/cn.toml
echo ' max-active-ages = "2m"'>> ./etc/launch/cn.toml
echo "" >> ./etc/launch/tn.toml
echo '[tn.txn]' >> ./etc/launch/tn.toml
echo 'mode = "Optimistic"' >> ./etc/launch/tn.toml
Expand Down Expand Up @@ -144,12 +140,6 @@ jobs:
ref: ${{ github.event.pull_request.head.ref }}
- name: Set up Go And Java
uses: matrixorigin/CI/actions/setup-env@main
- name: Add cn.txn
run: |
cd $GITHUB_WORKSPACE/head
echo "[cn.txn]" >> ./etc/launch/cn.toml
echo " enable-leak-check = 1" >> ./etc/launch/cn.toml
echo ' max-active-ages = "2m"'>> ./etc/launch/cn.toml
- name: Build MatrixOne
run: |
cd $GITHUB_WORKSPACE/head && make clean && make build
Expand All @@ -158,6 +148,14 @@ jobs:
run: |
sudo bash -c 'echo -e "127.0.0.1\tcn0" >> /etc/hosts;';
sudo bash -c 'echo -e "127.0.0.1\tcn1" >> /etc/hosts;';
- name: Add cn.txn
run: |
cd $GITHUB_WORKSPACE/head
echo "" >> ./etc/launch-dynamic-with-proxy/cn.toml.base
echo "" >> ./etc/launch-dynamic-with-proxy/cn.toml.base
echo "[cn.txn]" >> ./etc/launch-dynamic-with-proxy/cn.toml.base
echo " enable-leak-check = 1" >> ./etc/launch-dynamic-with-proxy/cn.toml.base
echo ' max-active-ages = "2m"'>> ./etc/launch-dynamic-with-proxy/cn.toml.base
- name: Start MO
run: |
sudo cat /etc/hosts | grep '127.0.0.1';
Expand Down Expand Up @@ -231,18 +229,18 @@ jobs:
- name: Set up Go And Java
uses: matrixorigin/CI/actions/setup-env@main

- name: Build MatrixOne
run: |
cd $GITHUB_WORKSPACE/head && make clean && make build
git rev-parse --short HEAD
- name: Add cn.txn
run: |
cd $GITHUB_WORKSPACE/head
echo "[cn.txn]" >> ./etc/launch/cn.toml
echo " enable-leak-check = 1" >> ./etc/launch/cn.toml
echo ' max-active-ages = "2m"'>> ./etc/launch/cn.toml
- name: Build MatrixOne
run: |
cd $GITHUB_WORKSPACE/head && make clean && make build
git rev-parse --short HEAD
- name: echo config
run: |
cd $GITHUB_WORKSPACE/head
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/robot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:

nightly-check:
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
runs-on: amd64-mo-shanghai-4xlarge32
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/utils.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
if: ${{ needs.check_organization_user.outputs.safe_label == '1' || needs.check_organization_user.outputs.in_org == '1' }}
name: PR Unit and BVT Test Coverage
needs: [check_organization_user]
runs-on: amd64-mo-guangzhou-2xlarge16
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 49fef1c

Please sign in to comment.