Skip to content

PHPUnit dependency plugin entrypoints ignore sourceSubpath and pick the repo root's plugin header #2617

Done

Description

@chubes4

Problem

phpunitDependencyPlugins in packages/runtime-core/src/recipe-builders.ts resolves each dependency's entrypoint with resolvePluginEntrypointContract({ source: plugin.source ?? plugin.sourcePath, … }). For an extra plugin declared as source: <repo root> + sourceSubpath: <plugin dir>, that scans the repo root, not the plugin directory. The mount and the activate_plugins phase both honor sourceSubpath, so activation succeeds and then the PHPUnit load_deps stage fails.

Observed with Jetpack's wpcomsh via Homeboy (source = Jetpack monorepo root, sourceSubpath = projects/plugins/wpcomsh). The monorepo root has a stub jetpack.php with a Plugin Name: header, so the header fallback returned wpcomsh/jetpack.php:

BOOTSTRAP FAILURE: load_deps:RuntimeException: managed PHPUnit dependency entrypoint is not a readable contained file: wpcomsh/jetpack.php
PHPUNIT_ZERO_TESTS cause=bootstrap_failed

Desired

PHPUnit dependency entrypoint resolution uses the same plugin directory the mount uses (source joined with sourceSubpath when present), so dependency-plugins-json names wpcomsh/wpcomsh.php here.

AI disclosure: Claude Opus (Pi, via Roadie) traced this from a Homeboy Lab run and wrote this issue.

Activity

  1. chubes4 commented on Dec 2, 2026

    @chubes4
    CollaboratorAuthor

    Fixed by #2618.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions