robo-paracept icon indicating copy to clipboard operation
robo-paracept copied to clipboard

Exited with code 1

Open ghost opened this issue 9 years ago • 7 comments
trafficstars

I'm having an issue with ParallelExec and Codeception exit codes. Running the codeception commands works manually, but when ran through ParallelExec they fail because codeception exits with code 1 even though --no-exit is set. Any help would be much appreciated!

[ParallelExec] ../vendor/bin/codecept run -c ../codeception.yml --group api_1 --no-exit api [ParallelExec] ../vendor/bin/codecept run -c ../codeception.yml --group api_2 --no-exit api [ParallelExec] '../vendor/bin/codecept run -c ../codeception.yml --group api_1 --no-exit api' exited with code 1 [ParallelExec] Exit code 1 Time 13.654s

ghost avatar Sep 24 '16 18:09 ghost

@andy-1bg did you find out what was the reason for it? was it memory?

abdullah-jubayer avatar Oct 03 '17 15:10 abdullah-jubayer

thankyou @javabudd

abdullah-jubayer avatar Oct 03 '17 17:10 abdullah-jubayer

+1

jarrettj avatar Oct 06 '17 12:10 jarrettj

yeah, I agree PHP is not the best way to do things in parallel. Use docker with Jenkins or GitLab CI to launch tests in multiple processes

DavertMik avatar Oct 06 '17 12:10 DavertMik

Hey guys. Can you give me hint - what 255 error mean? 10:05:40 [ParallelExec] '/var/lib/jenkins/workspace/forms-lead-test/vendor/bin/codecept run acceptance --group current_6 --html result_6.html' exited with code 255

hadouke avatar Jun 18 '18 11:06 hadouke

Hello everyone! I have the same issue [ParallelExec] 'vendor/bin/codecept run --env stage --override 'extensions: config: Codeception\Extension\RunFailed: fail-group: failed_4' --group parallel_4 --no-exit --xml report_4.xml --html report_4.html' exited with code 255 Have you any idea?

ccsuperstar avatar Apr 01 '21 15:04 ccsuperstar

Got exit code 255 also only when using parallel exec, because that ignores the dir of Codecept task (to change working directory) in "_robo/vendor/consolidation/robo/src/Task/Base/ParallelExec.php:94" by overriding it with the one from the Robo process: $this->processes[] = Process::fromShellCommandline($this->receiveCommand($command), getcwd());

reinholdfuereder avatar Apr 19 '22 12:04 reinholdfuereder