Repository navigation
Conversation
wp-env stores WordPress core and the PHPUnit test library under WP_ENV_HOME (default ~/.wp-env) and bind-mounts them into its containers. On ARC runners the Docker daemon runs in a dind sidecar that shares only the work directory, so those mounts are empty and PHPUnit fails with "Failed opening required '/wordpress-phpunit/includes/functions.php'". Point WP_ENV_HOME at $RUNNER_TEMP/wp-env, which is inside the work directory on every runner type. Refs rtCamp/support#1510
rtBot
requested review from
Adi-ty,
AnuragVasanwala,
aryanjasala and
justlevine
as code owners
November 26, 2026 13:40
Contributor
Author
|
Closing. Repositories that run wp-env on the self-hosted ARC runners set |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
On the self-hosted ARC runners, wp-env jobs start WordPress but PHPUnit fails to bootstrap (orion run, 14 of 29 jobs):
wp-env downloads WordPress core and the PHPUnit test library into
WP_ENV_HOME(default~/.wp-env, which is/home/runner/.wp-env) and bind-mounts them into its containers. On ARC, the Docker daemon runs in a separate dind container that shares only/home/runner/_workwith the runner. A mount from~therefore resolves to an empty directory on the daemon's side:/wordpress-phpunitis empty, so PHPUnit fails.wordpressimage then copies in its own bundled core, so thewp-versioninput is silently ignored on these runners.I confirmed this on a runner pod. A file written under
~is missing insidedocker run -v, and the same file under_workis present.What
ci-test-php,ci-test-a11yandci-test-build-artifactnow setWP_ENV_HOME=$RUNNER_TEMP/wp-envbeforeStart wp-env.RUNNER_TEMPis inside the work directory on every runner type (/home/runner/_work/_tempon ARC), so the daemon sees the same files. On GitHub-hosted runners nothing changes except where wp-env stores its cache.RUNNER_TEMPis set by the runner, not by user input, so writing it to$GITHUB_ENVis not injectable.Note
Consumers pin
@v1, so the fix reaches them once it is released andv1is moved.Refs rtCamp/support#1510