|
50 | 50 | - name: unit test |
51 | 51 | run: make unit-test |
52 | 52 |
|
53 | | - integration-test: |
| 53 | + # TODO: Integeration test are split into two jobs because APIV2 is not implemented yet, |
| 54 | + # so we can't run both tests in the same cluster. |
| 55 | + # Once APIV2 is implemented, we can run both tests in the same cluster. |
| 56 | + raw-integration-test: |
54 | 57 | name: integration test |
55 | 58 | env: |
56 | 59 | CARGO_INCREMENTAL: 0 |
|
70 | 73 | run: | |
71 | 74 | # use latest stable version |
72 | 75 | ~/.tiup/bin/tiup install tikv pd |
73 | | - ~/.tiup/bin/tiup playground --mode tikv-slim --kv 3 --without-monitor --kv.config config/tikv.toml --pd.config config/pd.toml & |
| 76 | + make tiup-v1ttl |
74 | 77 | while :; do |
75 | 78 | echo "waiting cluster to be ready" |
76 | 79 | [[ "$(curl -I http://127.0.0.1:2379/pd/api/v1/regions 2>/dev/null | head -n 1 | cut -d$' ' -f2)" -ne "405" ]] || break |
|
79 | 82 | - name: Install latest nextest release |
80 | 83 | uses: taiki-e/install-action@nextest |
81 | 84 | - name: integration test |
82 | | - run: MULTI_REGION=1 make integration-test |
| 85 | + run: MULTI_REGION=1 make raw-integration-test |
| 86 | + |
| 87 | + txn-integration-test: |
| 88 | + name: integration test |
| 89 | + env: |
| 90 | + CARGO_INCREMENTAL: 0 |
| 91 | + runs-on: ubuntu-latest |
| 92 | + steps: |
| 93 | + - uses: actions/checkout@v4 |
| 94 | + - name: Install Protoc |
| 95 | + uses: arduino/setup-protoc@v1 |
| 96 | + with: |
| 97 | + version: '3.x' |
| 98 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 99 | + - name: Rust Cache |
| 100 | + uses: Swatinem/rust-cache@v2 |
| 101 | + - name: install tiup |
| 102 | + run: curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh |
| 103 | + - name: start tiup playground |
| 104 | + run: | |
| 105 | + # use latest stable version |
| 106 | + ~/.tiup/bin/tiup install tikv pd |
| 107 | + make tiup |
| 108 | + while :; do |
| 109 | + echo "waiting cluster to be ready" |
| 110 | + [[ "$(curl -I http://127.0.0.1:2379/pd/api/v1/regions 2>/dev/null | head -n 1 | cut -d$' ' -f2)" -ne "405" ]] || break |
| 111 | + sleep 1 |
| 112 | + done |
| 113 | + - name: Install latest nextest release |
| 114 | + uses: taiki-e/install-action@nextest |
| 115 | + - name: integration test |
| 116 | + run: MULTI_REGION=1 make txn-integration-test |
0 commit comments