Skip to content

[Bug]: Pest 4: Unknown option "--processes" when Using Sharding #1454

@adamjsturge

Description

@adamjsturge

What Happened

./vendor/bin/pest --processes=12 --shard=1/4 --parallel
   Symfony\Component\Process\Exception\ProcessFailedException

  The command "'php' './vendor/bin/pest' '--processes=12' '--cache-directory' '/Users/adam/Projects/app/vendor/pestphp/pest/.temp' '--no-output' '--list-tests'" failed.

Exit Code: 2(Misuse of shell builtins)

Working directory: /Users/adam/Projects/app

Output:
================

   INFO  Unknown option "--processes".



Error Output:
================

  at vendor/symfony/process/Process.php:269
    265▕      */
    266▕     public function mustRun(?callable $callback = null, array $env = []): static
    267▕     {
    268▕         if (0 !== $this->run($callback, $env)) {
  ➜ 269▕             throw new ProcessFailedException($this);
    270▕         }
    271▕
    272▕         return $this;
    273▕     }

/vendor/bin/pest --processes=12 --parallel
works normally

How to Reproduce

run /vendor/bin/pest --processes=12 --shard=1/4 --parallel

Sample Repository

No response

Pest Version

4.0.0

PHP Version

8.3.16

Operation System

macOS

Notes

This is happening on my local and CI.

Our CI runs faster when we have 12 be the process but sucks that shards seem to break process

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions