tighten/duster

Additional script is timing out (Symfony\Component\Process\Process 60 sec. timeout)

Closed this issue · 1 comments

Upon execution in the GitLab CI pipeline, the Symfony\Component\Process\Process is timing out with an additional linting script (PHPStan).

Terminal output:

                             Linting using phpstan                              
Note: Using configuration file /builds/namespace/app/app/phpstan.neon.
   0/298 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░]   0%
  20/298 [▓░░░░░░░░░░░░░░░░░░░░░░░░░░░]   6%
In Process.php line 1152:
                                                                               
  The process "'./vendor/bin/phpstan' 'analyse' '--memory-limit=512M'" exceeded the timeout of 60 seconds.       

duster.json:

{
	"scripts": {
		"lint": {
			"phpstan": ["./vendor/bin/phpstan", "analyse", "--xdebug", "--memory-limit=512M"]
		}
	}
}

Is there anyway to disable or overwrite this timeout? Some linting may take a while, especially with a huge codebase running in a low capacity CI runner.

Closed by #98