[TASK] bamboo: db dependency loop needs break condition 67/59567/3
authorChristian Kuhn <lolli@schwarzbu.ch>
Fri, 25 Jan 2019 11:00:46 +0000 (12:00 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 25 Jan 2019 13:21:11 +0000 (14:21 +0100)
commit830e1022208ce9136377d727afdc8e6e54672523
tree4a7fa0ec2e7dd625d0e82a5548fb60b01300b669
parent2d3aa427349bea099c9254de20cac27738d4448b
[TASK] bamboo: db dependency loop needs break condition

Functional and acceptance tests need a db up and running.
The according container is started as dependency and a
loop delays further execution until the database connected
to its network port. This sometimes goes wrong, for
instance mssql in rare conditions does not come up. This
leads to the loop running "forever", consuming the
executing bamboo agent and the job never finishs.
The patch adds an additional break condition: If db did
not connect to the port after a minute, the job now fails.

Resolves: #87549
Releases: master, 9.5, 8.7
Change-Id: Idc45f57d9cfd2d390cea6bd5319adaf4158340df
Reviewed-on: https://review.typo3.org/59567
Tested-by: TYPO3com <noreply@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Build/testing-docker/bamboo/docker-compose.yml