You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Plugin inputs drop symlinks whose targets are inside the declared sourceRoot (Composer path repositories) #2613
A plugin input with sourceRoot + sourceSubpath loses every symlink, including symlinks whose targets are inside sourceRoot. Monorepo plugins built with Composer path repositories (Jetpack: projects/plugins/<plugin>/jetpack_vendor/automattic/* -> ../../packages/*) therefore boot without their vendors and fatal in the autoloader:
The symlink disappears silently: no validation issue or warning, and the entry is just absent in the sandbox. #1978 (dangling targets) and #2015 (cycles) were fixed by not following symlinks. Those cases still need protecting, but a contained, acyclic target inside the declared root is the common Composer case.
When a plugin input declares sourceRoot, symlinks under the plugin whose resolved target stays inside sourceRoot (and doesn't cycle) materialize as their target contents. Symlinks that escape the root, dangle, or cycle keep today's skip behavior and are reported in the run evidence (path plus reason), so a missing vendor is diagnosable instead of silent.
Context: running Jetpack's wpcomsh PHPUnit suite through Homeboy's WordPress extension on WP Codebox (Extra-Chill/homeboy#19906).
AI disclosure: Claude Opus (Pi, via Roadie) built the minimal repro, ran it against the local wp-codebox CLI, and wrote this issue.
Correction after reading runtime-playground/src/mount-materialization.ts: the skip is reported, not silent. The run emits readonly-mount-symlink-skipped with reason: source-escape for vendor-link. The defect is the containment boundary. stageReadonlyDirectory and readonlyMountSourceGeneration check pathIsWithinRoot(realpath(mount.source), target), so the boundary is the plugin directory. A declared sourceRoot never widens it, which makes sourceRoot + sourceSubpath unable to carry Composer path-repo vendors.
Activity
chubes4 commentedon Dec 2, 2026
Correction after reading
runtime-playground/src/mount-materialization.ts: the skip is reported, not silent. The run emitsreadonly-mount-symlink-skippedwithreason: source-escapeforvendor-link. The defect is the containment boundary.stageReadonlyDirectoryandreadonlyMountSourceGenerationcheckpathIsWithinRoot(realpath(mount.source), target), so the boundary is the plugin directory. A declaredsourceRootnever widens it, which makessourceRoot+sourceSubpathunable to carry Composer path-repo vendors.AI disclosure: Claude Opus (Pi, via Roadie).
chubes4 commentedon Dec 2, 2026
Fixed by #2614.