因此,尽管在本地运行Behat时一切正常,但最近开始在管道上出现错误。
$ php vendor/bin/behat --suite=API --format progress
...................................................................... 70
...................................................................... 140
...................................................................... 210
...................................................................... 280
...................................................................... 350
...................................................................... 420
...................................................................... 490
..........................................................ERROR: Job failed: exit code 1
因此,我一直在使用gitlab-runner在本地进行故障排除。值得庆幸的是,获得了相同的结果。
我已在调试模式下执行脚本,该脚本提供了以下内容:
$ php vendor/bin/behat --suite=API --format progress
...................................................................... 70
...................................................................... 140
...................................................................... 210
...................................................................... 280
...................................................................... 350
...................................................................... 420
...................................................................... 490
..........................................................Container 500f435a6c24da0d17accb157ab3d8ac1b5e4e7a15c067261a93af0e1511e78f finished with exit code 1 job=1 project=0
Executing on /runner--project-0-concurrent-0-build-4 the set -eo pipefail
set +o noclobber
: | eval ''
exit 0
job=1 project=0
Attaching to container 500f435a6c24da0d17accb157ab3d8ac1b5e4e7a15c067261a93af0e1511e78f ... job=1 project=0
Starting container 500f435a6c24da0d17accb157ab3d8ac1b5e4e7a15c067261a93af0e1511e78f ... job=1 project=0
Waiting for attach to finish 500f435a6c24da0d17accb157ab3d8ac1b5e4e7a15c067261a93af0e1511e78f ... job=1 project=0
Waiting for container 500f435a6c24da0d17accb157ab3d8ac1b5e4e7a15c067261a93af0e1511e78f ... job=1 project=0
Container 500f435a6c24da0d17accb157ab3d8ac1b5e4e7a15c067261a93af0e1511e78f finished with <nil> job=1 project=0
ERROR: Job failed: exit code 1
Removed container 500f435a6c24da0d17accb157ab3d8ac1b5e4e7a15c067261a93af0e1511e78f with <nil> job=1 project=0
Removed container ea9ef154f8265f3d5cbd3a7688136eaede89ed96b0e64f9749962472be238387 with <nil> job=1 project=0
Removed container b9546bb5a07cfa5581ecd3e96a3aa1f4232f3aefa32f5df1457daa0477f9a6ba with <nil> job=1 project=0
Removed container f355ee363ca11fe19e56a5253586dbc88be9f7f0f26eb9b05689abd782990d20 with <nil> job=1 project=0
Removed container 56881f88b0849035d25d2fb3e9e6879e64c067516d1b03e94c0ae2bff0305c0a with <nil> job=1 project=0
Removed container 0fcd4d0808e91b5e6bb0e5b74ffe99186997434f7ddd5e0ec6e882d8f2e9551e with <nil> job=1 project=0
Removed container 2fc912a614bfe5d66c41e5ebabe93bcaef0b2892d98854629e7786823df9f5bc with <nil>
job=1 project=0
如果我从以下位置更改.gitlab-ci.yml上的脚本,我就可以运行它:
- php vendor/bin/behat --suite=API --format progress
收件人:
- php vendor/bin/behat features/API/labs --format progress
- php vendor/bin/behat features/API/samples --format progress
- php vendor/bin/behat features/API/materials --format progress
- php vendor/bin/behat features/API/plants --format progress
- php vendor/bin/behat features/API/resources --format progress
- php vendor/bin/behat features/API/user --format progress
几乎相同,但是以较小的块运行-这是一种快速解决方案
我为什么会遇到这些错误的任何想法?