|
61 | 61 | cat ./etc/launch-tae-compose/config/cn-1.toml |
62 | 62 | cat ./etc/launch-tae-compose/config/tn.toml |
63 | 63 |
|
| 64 | + # Update compose.yaml to mount test directory to $GITHUB_WORKSPACE/test instead of /test |
| 65 | + # Replace container mount point from /test to $GITHUB_WORKSPACE/test |
| 66 | + # Handle various docker-compose volume formats: /test, /test:options, /test followed by space |
| 67 | + sed -i 's|:/test\b|:'"$GITHUB_WORKSPACE"'/test|g' ./etc/launch-tae-compose/compose.yaml |
| 68 | +
|
64 | 69 | mkdir -p ${{ github.workspace }}/docker-compose-log |
65 | 70 | docker compose -f etc/launch-tae-compose/compose.yaml --profile launch-multi-cn up -d --build |
66 | 71 |
|
@@ -120,7 +125,7 @@ jobs: |
120 | 125 | cat mo.yml |
121 | 126 | echo "=============================" |
122 | 127 |
|
123 | | - ./run.sh -n -g -o -p /test/distributed/cases -e pessimistic_transaction 2>&1 |
| 128 | + ./run.sh -n -g -o -p $GITHUB_WORKSPACE/test/distributed/cases -e pessimistic_transaction 2>&1 |
124 | 129 |
|
125 | 130 | - name: Print Docker Info Before Container Shutdown |
126 | 131 | if: ${{ always() }} |
@@ -213,6 +218,12 @@ jobs: |
213 | 218 | cat ./etc/launch-tae-compose/config/cn-0.toml |
214 | 219 | cat ./etc/launch-tae-compose/config/cn-1.toml |
215 | 220 | cat ./etc/launch-tae-compose/config/tn.toml |
| 221 | +
|
| 222 | + # Update compose.yaml to mount test directory to $GITHUB_WORKSPACE/test instead of /test |
| 223 | + # Replace container mount point from /test to $GITHUB_WORKSPACE/test |
| 224 | + # Handle various docker-compose volume formats: /test, /test:options, /test followed by space |
| 225 | + sed -i 's|:/test\b|:'"$GITHUB_WORKSPACE"'/test|g' ./etc/launch-tae-compose/compose.yaml |
| 226 | +
|
216 | 227 | mkdir -p ${{ github.workspace }}/docker-compose-log |
217 | 228 | docker compose -f etc/launch-tae-compose/compose.yaml --profile launch-multi-cn up -d --build |
218 | 229 |
|
@@ -269,7 +280,7 @@ jobs: |
269 | 280 | cat mo.yml |
270 | 281 | echo "=============================" |
271 | 282 |
|
272 | | - ./run.sh -n -g -o -p /test/distributed/cases -e optimistic 2>&1 |
| 283 | + ./run.sh -n -g -o -p $GITHUB_WORKSPACE/test/distributed/cases -e optimistic 2>&1 |
273 | 284 |
|
274 | 285 | - name: Print Docker Info Before Container Shutdown |
275 | 286 | if: ${{ always() }} |
|
0 commit comments