rector: How to debug errors?

Since upgrading to rector 0.19 my rector action no longer succeeds on github. When running the same call on my local system (using the same versions) everything works as expected.

I am a bit stuck on how to figure out what exactly is going on. Even running rector with --debug does not produce any additional error messages. All I get is the following:

Error: ] Could not process                                                      
         "/home/runner/.composer/vendor/bin/_tools/rector-ce722f33142d690bb972ad
         379fe7f6391900026941ae9cbebaec976fbd8d365b/vendor/rector/rector/vendor/
         symplify/easy-parallel/src/ValueObject/ParallelProcess.php" file, due  
         to:                                                                    
         "Child process timed out after 60 seconds". On line: 108               
Error: ] Could not process some files, due to:                                  
         "Reached system errors count limit of 50, exiting...".                 
Error: Process completed with exit code 1.
  • How do I find out which child process timed out and what did it do?
  • What exactly are those 50 system errors?

About this issue

  • Original URL
  • State: closed
  • Created 6 months ago
  • Reactions: 1
  • Comments: 17 (12 by maintainers)

Commits related to this issue

Most upvoted comments

That’s not hidden if process crash, eg: throw ShouldNotHappenException, error will still shown.

process timeout seems due to wait for other process picking up, that mostly happen on CI.

😃 No I can’t because I don’t know what’s going on and have more than enough to do on my own open source projects.

Anyway this issue is solved (enough) for me to get on with my own code. Thanks again for your quick help 👍

50 is maximum error limit when error found before pararallel process quit. It is defined as constant at

https://github.com/rectorphp/rector/blob/5a61fded6a93d0385f961507e977fd1ad84349e1/src/Parallel/Application/ParallelFileProcessor.php#L48

that mostly never an issue tho, just parallel(120, 16, 15) config need to be adjusted like as you did.