diff --git a/.github/workflows/e2e_with_cache.yaml b/.github/workflows/e2e_with_cache.yaml index 1f249cdeec2..220768b3aaf 100644 --- a/.github/workflows/e2e_with_cache.yaml +++ b/.github/workflows/e2e_with_cache.yaml @@ -25,6 +25,7 @@ jobs: php_version: ['8.1'] directory: - 'e2e/applied-rule-removed-node-with-cache' + - 'e2e/timeout-file-not-cached' name: End to end test - ${{ matrix.directory }} diff --git a/e2e/timeout-file-not-cached/.gitignore b/e2e/timeout-file-not-cached/.gitignore new file mode 100644 index 00000000000..61ead86667c --- /dev/null +++ b/e2e/timeout-file-not-cached/.gitignore @@ -0,0 +1 @@ +/vendor diff --git a/e2e/timeout-file-not-cached/composer.json b/e2e/timeout-file-not-cached/composer.json new file mode 100644 index 00000000000..5468cd74606 --- /dev/null +++ b/e2e/timeout-file-not-cached/composer.json @@ -0,0 +1,7 @@ +{ + "require": { + "php": "^8.1" + }, + "minimum-stability": "dev", + "prefer-stable": true +} diff --git a/e2e/timeout-file-not-cached/expected-output.diff b/e2e/timeout-file-not-cached/expected-output.diff new file mode 100644 index 00000000000..26cd1063c43 --- /dev/null +++ b/e2e/timeout-file-not-cached/expected-output.diff @@ -0,0 +1,7 @@ +[ERROR] Could not process + "/home/runner/work/rector-src/rector-src/vendor/symplify/easy-parallel/ + src/ValueObject/ParallelProcess.php" file, due to: + "Child process timed out after 0 seconds". On line: 105 + + [ERROR] Could not process some files, due to: + "Reached system errors count limit of 50, exiting...". diff --git a/e2e/timeout-file-not-cached/rector.php b/e2e/timeout-file-not-cached/rector.php new file mode 100644 index 00000000000..b6053d61914 --- /dev/null +++ b/e2e/timeout-file-not-cached/rector.php @@ -0,0 +1,18 @@ +cacheClass(FileCacheStorage::class); + $rectorConfig->parallel(0); + + $rectorConfig->paths([ + __DIR__ . '/src', + ]); + + $rectorConfig->sets([LevelSetList::UP_TO_PHP_82]); +}; diff --git a/e2e/timeout-file-not-cached/src/SomeFixturePrinter.php b/e2e/timeout-file-not-cached/src/SomeFixturePrinter.php new file mode 100644 index 00000000000..69ed3a47227 --- /dev/null +++ b/e2e/timeout-file-not-cached/src/SomeFixturePrinter.php @@ -0,0 +1,9 @@ +