Skip to content

Rector timeout on 2.4.0 #9734

@jva91

Description

@jva91

Bug Report

Subject Details
Rector version 2.4.0

Rector 2.4.0 causes timeout issues. Version 2.3.9 dont run into this issues with the same codebase

The rector config file

return RectorConfig::configure()
->withPaths([
    __DIR__ . '/app',
    __DIR__ . '/bootstrap',
    __DIR__ . '/config',
    __DIR__ . '/lang',
    __DIR__ . '/resources',
    __DIR__ . '/routes',
    __DIR__ . '/tests',
])
->withCache(
    cacheDirectory: './rector',
    cacheClass: FileCacheStorage::class
)
->withSets([
    PHPUnitSetList::PHPUNIT_110,
])
->withSkip([
    __DIR__ . '/bootstrap/cache',
    __DIR__ . '/resources/assets',
    __DIR__ . '/resources/artwork',
    __DIR__ . '/app/LegacyPackages',
    FunctionFirstClassCallableRector::class,
    \Rector\CodingStyle\Rector\ArrowFunction\ArrowFunctionDelegatingCallToFirstClassCallableRector::class
])
->withPhpSets()
->withTypeCoverageLevel(63)
->withDeadCodeLevel(59)
->withCodeQualityLevel(35);`

[ERROR] Could not process                                                                                              
     "/var/www/html/vendor/rector/rector/vendor/symplify/easy-parallel/src/ValueObject/ParallelProcess.php" file,   
     due to:                                                                                                        
     "Child process timed out after 120 seconds". On line: 96                                                       
                                                                                                                    

                                                                                                                    
 [ERROR] Could not process some files, due to:                                                                          
     "Child process error: Killed                                                                                   
     ".                                                                                                             
                                                                                                                    

                                                                                                                    
 [ERROR] Could not process some files, due to:                                                                          
     "Reached system errors count limit of 50, exiting...".                                                         
                                                                                                                    

Script vendor/bin/rector process --dry-run handling the check-rector event returned with error code 1

Expected Behaviour

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