Skip to content

Prevent permanent worker deadlock when cutover times out waiting for binlog sentinel #1344

Prevent permanent worker deadlock when cutover times out waiting for binlog sentinel

Prevent permanent worker deadlock when cutover times out waiting for binlog sentinel #1344

Workflow file for this run

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