Skip to content

Manage the test database over a single connection - #402

Draft
schlessera wants to merge 1 commit into
mainfrom
perf/database-connection
Draft

schlessera wants to merge 1 commit into
mainfrom
perf/database-connection

Conversation

@schlessera

Copy link
Copy Markdown
Member

Addresses #386.

Every scenario started at least two mysql client processes before doing anything, to test the connection and to drop the test database. Scenarios installing WordPress started two more, to create the database and to restore the cached installation.

These operations now run over one persistent connection from the Behat process. The connection itself proves that the database can be reached, so there is no separate check per scenario anymore. The mysql client is still used when the mysqli extension is not available or no connection can be made. The database ends up in the same state as before.

Measurements are recorded on #386.

Dropping and creating the test database and restoring a cached installation
each started a mysql client process. Run them over one persistent connection
from the Behat process instead, which also proves the database can be reached
without a separate check per scenario.

The mysql client is still used when the mysqli extension is not available or
no connection can be made.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 30, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the scope:testing Related to testing label Oct 30, 2026
@codecov

codecov Bot commented Oct 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 52 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/Context/FeatureContext.php 0.00% 52 Missing ⚠️

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope:testing Related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant