Skip to content

Commit

Permalink
Add cn.txn and Update bvt sql timeout for CI (#129)
Browse files Browse the repository at this point in the history
* add cn.txn

* update BVT SQL timeout

* update BVT SQL timeout

* Correction error

* update

* update runner

* update runner
  • Loading branch information
Rosyrain authored Oct 28, 2024
1 parent 5aca33d commit 177bf7a
Show file tree
Hide file tree
Showing 6 changed files with 120 additions and 8 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/e2e-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ jobs:
- name: Set up Go And Java
uses: matrixorigin/CI/actions/setup-env@main

- name: Update BVT SQL Timeout
run: |
cd $GITHUB_WORKSPACE/mo-tester
sed -i "s/socketTimeout:.*/socketTimeout: 300000/g" mo.yml
- name: Start BVT Test
id: bvt_on_pr_version
run: |
Expand Down Expand Up @@ -159,6 +163,11 @@ jobs:
- name: Set up Go And Java
uses: matrixorigin/CI/actions/setup-env@main

- name: Update BVT SQL Timeout
run: |
cd $GITHUB_WORKSPACE/mo-tester
sed -i "s/socketTimeout:.*/socketTimeout: 300000/g" mo.yml
- name: Start BVT Test
id: bvt_on_pr_version
run: |
Expand Down
30 changes: 29 additions & 1 deletion .github/workflows/e2e-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,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 All @@ -45,6 +47,10 @@ jobs:
repository: matrixorigin/mo-tester
path: ./mo-tester
ref: main
- name: Update BVT SQL Timeout
run: |
cd $GITHUB_WORKSPACE/mo-tester
sed -i "s/socketTimeout:.*/socketTimeout: 300000/g" mo.yml
- name: Start BVT Test
id: bvt_on_pr_version
run: |
Expand Down Expand Up @@ -145,6 +151,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 All @@ -156,6 +170,10 @@ jobs:
repository: matrixorigin/mo-tester
path: ./mo-tester
ref: main
- name: Update BVT SQL Timeout
run: |
cd $GITHUB_WORKSPACE/mo-tester
sed -i "s/socketTimeout:.*/socketTimeout: 300000/g" mo.yml
- name: Start BVT Test
id: bvt_on_pr_version
run: |
Expand Down Expand Up @@ -219,6 +237,13 @@ jobs:
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: echo config
run: |
cd $GITHUB_WORKSPACE/head
Expand All @@ -236,7 +261,10 @@ jobs:
repository: matrixorigin/mo-tester
path: ./mo-tester
ref: main

- name: Update BVT SQL Timeout
run: |
cd $GITHUB_WORKSPACE/mo-tester
sed -i "s/socketTimeout:.*/socketTimeout: 300000/g" mo.yml
- name: Start BVT Test
id: bvt_on_pr_version
run: |
Expand Down
48 changes: 44 additions & 4 deletions .github/workflows/e2e-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,25 @@ jobs:
- name: Set up Go And Java
uses: matrixorigin/CI/actions/setup-env@main

- name: Add cn.txn for head
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 for head
run: |
cd $GITHUB_WORKSPACE/head && make clean && make build
git rev-parse --short HEAD
- name: Add cn.txn for upstream
run: |
cd $GITHUB_WORKSPACE/upstream
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 for upstream
run: |
cd $GITHUB_WORKSPACE/upstream && make clean && make build
Expand All @@ -67,7 +81,10 @@ jobs:
repository: matrixorigin/mo-tester
path: ./mo-tester
ref: main

- name: Update BVT SQL Timeout
run: |
cd $GITHUB_WORKSPACE/mo-tester
sed -i "s/socketTimeout:.*/socketTimeout: 300000/g" mo.yml
- name: Start BVT Test for Target Branch
id: bvt_on_latest_main_version
run: |
Expand Down Expand Up @@ -119,7 +136,10 @@ jobs:
fi
./optools/run_bvt.sh $GITHUB_WORKSPACE/workspace launch;
sleep 60;
- name: Update BVT SQL Timeout for Head Branch
run: |
cd $GITHUB_WORKSPACE/mo-tester
sed -i "s/socketTimeout:.*/socketTimeout: 300000/g" mo.yml
- name: Start BVT Test for Head Branch
id: bvt_on_latest_head_version
run: |
Expand Down Expand Up @@ -204,11 +224,25 @@ jobs:
- name: Set up Go And Java
uses: matrixorigin/CI/actions/setup-env@main

- name: Add cn.txn for head
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 for head
run: |
cd $GITHUB_WORKSPACE/head && make clean && make build
git rev-parse --short HEAD
- name: Add cn.txn for upstream release
run: |
cd $GITHUB_WORKSPACE/upstream
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 for upstream release
run: |
cd $GITHUB_WORKSPACE/upstream && make clean && make build
Expand All @@ -234,7 +268,10 @@ jobs:
repository: matrixorigin/mo-tester
path: ./mo-tester
ref: main

- name: Update BVT SQL Timeout for Release ${{ inputs.release-version }}
run: |
cd $GITHUB_WORKSPACE/mo-tester
sed -i "s/socketTimeout:.*/socketTimeout: 300000/g" mo.yml
- name: Start BVT Test for Release ${{ inputs.release-version }}
id: bvt_on_latest_main_version
run: |
Expand Down Expand Up @@ -288,7 +325,10 @@ jobs:
fi
./optools/run_bvt.sh $GITHUB_WORKSPACE/workspace launch;
sleep 60;
- name: Update BVT SQL Timeout for Head Ref
run: |
cd $GITHUB_WORKSPACE/mo-tester
sed -i "s/socketTimeout:.*/socketTimeout: 300000/g" mo.yml
- name: Start BVT Test for Head Ref
id: bvt_on_latest_head_version
run: |
Expand Down
21 changes: 18 additions & 3 deletions .github/workflows/merge-trigger-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ jobs:
setup-java: false
cache: true

- name: Add cn.txn
run: |
cd $GITHUB_WORKSPACE/matrixone
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/matrixone && make clean && make build
Expand Down Expand Up @@ -57,7 +64,10 @@ jobs:

- name: Check Java Version
run: java -version

- name: Update BVT SQL Timeout
run: |
cd $GITHUB_WORKSPACE/mo-tester
sed -i "" "s/socketTimeout:.*/socketTimeout: 300000/g" mo.yml
- name: Start BVT Test
id: bvt_on_pr_version
run: |
Expand Down Expand Up @@ -126,6 +136,12 @@ jobs:
uses: matrixorigin/CI/actions/setup-env@main
with:
setup-java: false
- 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: |
export GOPROXY='http://goproxy.goproxy.svc.cluster.local'
Expand All @@ -143,14 +159,13 @@ jobs:
ref: main
- name: Set up JDK 8 for x64
run: echo "$JAVA_HOME/bin" >> $GITHUB_PATH

- name: Start BVT Test
id: bvt_on_pr_version
run: |
export LC_ALL="C.UTF-8"
locale
cd $GITHUB_WORKSPACE/mo-tester
sed -i 's/socketTimeout:.*/socketTimeout: 600000/g' mo.yml
sed -i 's/socketTimeout:.*/socketTimeout: 300000/g' mo.yml
sed -i 's/ port: [0-9]*/ port: 12345/g' mo.yml
cat mo.yml
echo "======================================"
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/robot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ jobs:
repository: matrixorigin/mo-tester
path: ./mo-tester
ref: main
- name: Add cn.txn
run: |
cd $GITHUB_WORKSPACE/matrixone
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: Start Unit Test
id: ut_test
timeout-minutes: 120
Expand All @@ -177,6 +183,10 @@ jobs:
export GOCOVERDIR=$GITHUB_WORKSPACE/matrixone
go build -cover "$GOLDFLAGS" -o mo-service ./cmd/mo-service/
./optools/run_bvt.sh $GITHUB_WORKSPACE/matrixone launch
- name: Update BVT SQL Timeout
run: |
cd $GITHUB_WORKSPACE/mo-tester
sed -i "s/socketTimeout:.*/socketTimeout: 300000/g" mo.yml
- name: Start BVT Test
if: ${{ always() && !cancelled() }}
id: bvt_on_pr_version
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/utils.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ jobs:
repository: matrixorigin/mo-tester
path: ./mo-tester
ref: main
- name: Add cn.txn
run: |
cd $GITHUB_WORKSPACE/matrixone
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: Start Unit Test
timeout-minutes: 45
run: |
Expand All @@ -147,6 +153,10 @@ jobs:
export GOCOVERDIR=$GITHUB_WORKSPACE/matrixone
go build -cover "$GOLDFLAGS" -o mo-service ./cmd/mo-service/
./optools/run_bvt.sh $GITHUB_WORKSPACE/matrixone launch
- name: Update BVT SQL Timeout
run: |
cd $GITHUB_WORKSPACE/mo-tester
sed -i "s/socketTimeout:.*/socketTimeout: 300000/g" mo.yml
- name: Start BVT Test
timeout-minutes: 30
if: ${{ always() && !cancelled() }}
Expand Down

0 comments on commit 177bf7a

Please sign in to comment.