Hello,
i implemented a complex pipeline with Starlark.
It lints - run different platform tests with docker and should finally run semantic release.
All works fine, but the pipeline with should run semantic release doesn’t start.
I’ve already verified that the pipeline works by putting it at the beginning,
but in the end it doesn’t seem to start - after the docker platform tests.
Sometimes the release step is started, but it is not very often.
Here are the relevant docker runner logs:
time="2021-12-25T17:17:13Z" level=debug msg="received exit code 0" build.id=311 build.number=293 repo.id=32 repo.name=docker repo.namespace=Ansible stage.id=624 stage.name=molecule stage.number=3 step.name="verify platform debian9" thread=2
time="2021-12-25T17:17:14Z" level=debug msg="destroying the pipeline environment" build.id=311 build.number=293 repo.id=32 repo.name=docker repo.namespace=Ansible stage.id=624 stage.name=molecule stage.number=3 thread=2
time="2021-12-25T17:17:14Z" level=debug msg="FIXME: Got an status-code for which error does not match any expected type!!!: -1" module=api status_code=-1
time="2021-12-25T17:17:14Z" level=debug msg="FIXME: Got an status-code for which error does not match any expected type!!!: -1" module=api status_code=-1
time="2021-12-25T17:17:14Z" level=debug msg="FIXME: Got an status-code for which error does not match any expected type!!!: -1" module=api status_code=-1
time="2021-12-25T17:17:14Z" level=debug msg="FIXME: Got an status-code for which error does not match any expected type!!!: -1" module=api status_code=-1
time="2021-12-25T17:17:14Z" level=debug msg="FIXME: Got an status-code for which error does not match any expected type!!!: -1" module=api status_code=-1
time="2021-12-25T17:17:14Z" level=debug msg="FIXME: Got an status-code for which error does not match any expected type!!!: -1" module=api status_code=-1
time="2021-12-25T17:17:14Z" level=debug msg="FIXME: Got an status-code for which error does not match any expected type!!!: -1" module=api status_code=-1
time="2021-12-25T17:17:14Z" level=debug msg="FIXME: Got an status-code for which error does not match any expected type!!!: -1" module=api status_code=-1
time="2021-12-25T17:17:14Z" level=debug msg="FIXME: Got an status-code for which error does not match any expected type!!!: -1" module=api status_code=-1
time="2021-12-25T17:17:15Z" level=debug msg="stage received" stage.id=625 stage.name=release stage.number=4 thread=1
time="2021-12-25T17:17:15Z" level=debug msg="stage accepted" stage.id=625 stage.name=release stage.number=4 thread=1
time="2021-12-25T17:17:15Z" level=debug msg="stage details fetched" build.id=311 build.number=293 repo.id=32 repo.name=docker repo.namespace=Ansible stage.id=625 stage.name=release stage.number=4 thread=1
time="2021-12-25T17:17:15Z" level=trace msg="secret: database: found matching secret" kind=secret name=semantic-release-password thread=1
time="2021-12-25T17:17:15Z" level=debug msg="updated stage to running" build.id=311 build.number=293 repo.id=32 repo.name=docker repo.namespace=Ansible stage.id=625 stage.name=release stage.number=4 thread=1
time="2021-12-25T17:17:32Z" level=debug msg="received exit code 0" build.id=311 build.number=293 repo.id=32 repo.name=docker repo.namespace=Ansible stage.id=625 stage.name=release stage.number=4 step.name=clone thread=1
time="2021-12-25T17:17:35Z" level=trace msg="http: no content returned: re-connect and re-try"
time="2021-12-25T17:17:35Z" level=debug msg="successfully destroyed the pipeline environment" build.id=311 build.number=293 repo.id=32 repo.name=docker repo.namespace=Ansible stage.id=624 stage.name=molecule stage.number=3 thread=2
time="2021-12-25T17:17:35Z" level=debug msg="updated stage to complete" build.id=311 build.number=293 duration=1089 repo.id=32 repo.name=docker repo.namespace=Ansible stage.id=624 stage.name=molecule stage.number=3 thread=2
It returns a exit code -1 - INFO: for the structure each platform test start a own podman pod as service.
I think that is a problem with the exit for the service (detached pipelines) after exit of the last pipeline step. So the pipeline has a error code and start only sometimes the last pipeline for the release.
Here is a screenshoot of the pipeline graph: