Add retry logic for instant DDL on lock wait timeout #1345
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: migration tests | |
| permissions: | |
| contents: read | |
| on: [pull_request] | |
| jobs: | |
| docker-tests: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| image: ['mysql/mysql-server:5.7.41','mysql:8.0.41','mysql:8.4.3','percona/percona-server:8.0.41-32'] | |
| env: | |
| TEST_MYSQL_IMAGE: ${{ matrix.image }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install sysbench | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y sysbench | |
| - name: Setup environment | |
| run: script/docker-gh-ost-replica-tests up | |
| - name: Run tests | |
| run: script/docker-gh-ost-replica-tests run | |
| - name: Set artifact name | |
| if: failure() | |
| run: | | |
| ARTIFACT_NAME=$(echo "${{ matrix.image }}" | tr '/:' '-') | |
| echo "ARTIFACT_NAME=test-logs-${ARTIFACT_NAME}" >> $GITHUB_ENV | |
| - name: Upload test logs on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ env.ARTIFACT_NAME }} | |
| path: /tmp/gh-ost-test.* | |
| retention-days: 7 | |
| - name: Teardown environment | |
| if: always() | |
| run: script/docker-gh-ost-replica-tests down |