This repository was archived by the owner on Nov 2, 2026. It is now read-only.
Repository navigation
Default WP Codebox PHPUnit mounts to readonly - #2257
Merged
Merged
Conversation
This was referenced Jul 15, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Closes #2255
Summary
readonlylatest-runtime.jsonpointerNO_TEST_FILESresult cannot mask a current runtime startup failureSource relationship
This runner follows merged Automattic/wp-codebox #1799 readonly mount snapshots, #1804 PHPUnit cache disabling, and #1805 private cache-path handling. The runner creates a new
wp-codebox-phpunit.*artifact scope for eachrecipe-run, resolves the current runtime directory from its pointer, and consumes only that runtime's structuredfiles/phpunit/.pg-test-result.txt. No writable or overlapping component mount is introduced.Fresh-checkout tests
cd wordpress && node tests/wp-codebox-phpunit-recipe-builder-smoke.jscd wordpress && bash scripts/test/wp-codebox-mount-translation-smoke.shcd wordpress && bash -n scripts/test/test-runner-wp-codebox.sh scripts/test/wp-codebox-mount-translation-smoke.sh scripts/test/playground-db-activation-smoke.shb8c4cfe, then runHOMEBOY_WP_CODEBOX_INSTALL_DIR=/var/empty/wp-codebox HOMEBOY_WP_CODEBOX_BIN=<wp-codebox>/packages/cli/dist/index.js HOMEBOY_WP_CODEBOX_CORE_MODULE=<wp-codebox>/packages/runtime-core/dist/recipe-builders.js HOMEBOY_CORE_DIR=<homeboy> bash wordpress/scripts/test/playground-db-activation-smoke.sh. This PR ran the command against/Users/chubes/Developer/wp-codebox@ops-install-b8c4cfe: 3 tests, 7 assertions.git diff --checkThe fake translation contract verifies readonly source mounts, current-run pointer resolution, a structured bootstrap failure, and that a stale caller-owned
NO_TEST_FILESartifact remains preserved but cannot cause a failed current run to skip. The real canary verifies actual WP Codebox diagnostic persistence, successful runner classification, fixture source hash stability, and no host.phpunit.result.cache.Compatibility impact
Test sandboxes cannot mutate the source checkout by default. PHPUnit diagnostics are consumed from the current WP Codebox runtime artifact. Caller artifact directories retain files unrelated to a new invocation. Mutation workflows must declare an isolated writable source with
mode: "readwrite"throughwp_codebox_phpunit_mounts.Dependency
Depends on merged Automattic/wp-codebox #1799, #1804, and #1805.
AI assistance