WordPress / WordPress/phpunit-test-runner

Allow MySQL version to be passed using an environment variable

Open
#135 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement tooling WCUS26
Dominant language
PHP
Stars
77
Forks
77
Avg merge
15d 15h
Merged PRs (30d)
4

Description

The WordPress Core test suite was changed recently to run using a network of Docker containers. MySQL runs in its own container separate from the PHP container.

Because of this, the test runner cannot determine the version of MySQL being used when submitting results. An easy way around this would be to allow an environment variable to be set manually with the MySQL version being used.

Another option would be to detect when the local WP Core Docker environment is being used and call docker-compose run --rm mysql mysql --version instead of 'mysql --version' .

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating where the PHP test runner determines and submits the MySQL version, then inspect how the WordPress Core Docker environment exposes the MySQL service. Implement the selected environment-variable or Docker detection approach and verify that submitted results contain the configured MySQL version.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker-compose, mysql, php
Domain
databases, devops, testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.