Skip to content

fix: strip --processes from --list-tests when sharding in parallel#1741

Open
lazerg wants to merge 1 commit into
pestphp:4.xfrom
lazerg:fix/issue-1731-shard-parallel-processes
Open

fix: strip --processes from --list-tests when sharding in parallel#1741
lazerg wants to merge 1 commit into
pestphp:4.xfrom
lazerg:fix/issue-1731-shard-parallel-processes

Conversation

@lazerg

@lazerg lazerg commented Jun 26, 2026

Copy link
Copy Markdown

What:

  • Bug Fix

Description:

When --shard is used with --parallel and there's no usable tests/.pest/shards.json, Pest builds the shard's --filter by spawning an internal --list-tests run. Shard::removeParallelArguments() only stripped --parallel/-p from that sub-process, so it still received --processes, which --list-tests rejects — mustRun() then threw ProcessFailedException and the whole run exited non-zero even though every test passed. This strips --processes from that sub-invocation too, alongside the existing --parallel removal.

Related:

Closes #1731 (same root cause as #1454).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: --shard + --parallel exits 1 when shards.json is missing/incomplete (count-based fallback)

1 participant