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
- tune parallel tasks in rector The default options for running paralell rector tasks changed in 0.19 resulting in failures on github runners. See also https://github.com/rectorphp/rector/issues/8396 — committed to dokuwiki/dokuwiki by splitbrain 6 months ago
- Update Composer dev tooling dependencies (#256) [](https://renovatebot.com) This PR contains the following updates: | Package | Change... — committed to Lendable/composer-license-checker by renovate[bot] 5 months ago
- Update Composer dev tooling dependencies (#643) [](https://renovatebot.com) This PR contains the following updates: | Package | Change... — committed to Lendable/aggregate by renovate[bot] 5 months ago
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 👍
50is maximum error limit when error found before pararallel process quit. It is defined as constant athttps://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.