ci(gitea): MySQL test DB on tmpfs + wider health window
All checks were successful
CI / Deploy / PHP Lint (8.2) (push) Successful in 20s
CI / Deploy / PHP Lint (8.1) (push) Successful in 25s
CI / Deploy / PHP Lint (8.3) (push) Successful in 18s
CI / Deploy / PHPCS (WordPress standards) (push) Successful in 27s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AqpXh3hQMMaC74pTjFq4it
This commit is contained in:
peptiderepo-ops
2026-10-24 10:42:11 +00:00
parent 336397ce07
commit 32daca0717

View File

@@ -158,14 +158,16 @@ jobs:
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: wp_tests
# First-boot init is slow on the CPU-limited shared runner; GitHub's
# 5 x 10s health window was not enough here.
# First-boot init took 3.5 min on the CPU-limited shared runner under load
# (GitHub's 5 x 10s window is far too short here). Data dir on tmpfs: the
# test DB is throwaway and disk I/O dominated the init time.
options: >-
--tmpfs /var/lib/mysql:rw
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-start-period=60s
--health-retries=20
--health-start-period=120s
--health-retries=30
"""
out.append(f"""
phpunit: