-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
NEW
-
NEW
-
---
-
---
Drools PR GHA "Kogito Downstream / kogito-apps" frequently fails in kiegroup/drools 9.101.x-prod branch because of "docker system prune -f". (Not sure if this is 9.101.x-prod branch specific)
2024-10-16T12:20:45.1521129Z [command]/usr/bin/docker system prune -f 2024-10-16T12:20:45.1650405Z Error response from daemon: a prune operation is already running 2024-10-16T12:20:45.1666645Z [INFO] kiegroup/kogito-apps failed. Won't execute remaining commands and projects 2024-10-16T12:20:45.1667874Z [INFO] Execution summary for kiegroup/kogito-apps 2024-10-16T12:20:45.1669208Z ##[group][BEFORE] [kiegroup/kogito-apps] export INTEGRATION_BRANCH= 2024-10-16T12:20:45.1669990Z [INFO] OK [Executed in 0.0591 ms] 2024-10-16T12:20:45.1670817Z ##[endgroup] 2024-10-16T12:20:45.1672390Z ##[group][BEFORE] [kiegroup/kogito-apps] bash -c "if [ ! -z '' ] && [ -f .ci/environments/update.sh ]; then .ci/environments/update.sh ; fi" 2024-10-16T12:20:45.1673710Z [INFO] OK [Executed in 5.639639 ms] 2024-10-16T12:20:45.1674616Z ##[endgroup] 2024-10-16T12:20:45.1676843Z ##[group][COMMANDS] [kiegroup/kogito-apps] export MVN_CMD=`bash -c "if [ '' = 'true' ]; then printf 'deploy '; else printf 'install'; fi"` 2024-10-16T12:20:45.1678416Z [INFO] OK [Executed in 4.397575 ms] 2024-10-16T12:20:45.1680900Z ##[endgroup] 2024-10-16T12:20:45.1684556Z ##[group][COMMANDS] [kiegroup/kogito-apps] mvn clean install -DskipUI -Dproductized -nsu -ntp -fae -e -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dmaven.wagon.http.retryHandler.count=3 dependency:tree -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B 2024-10-16T12:20:45.1687729Z [INFO] OK [Executed in 1614071.92199 ms] 2024-10-16T12:20:45.1688732Z ##[endgroup] 2024-10-16T12:20:45.1689735Z ##[group][AFTER] [kiegroup/kogito-apps] docker system prune -f 2024-10-16T12:20:45.1690549Z [INFO] NOT OK [Executed in 16.115127 ms] 2024-10-16T12:20:45.1691461Z [ERROR] The process '/usr/bin/docker' failed with exit code 1 2024-10-16T12:20:45.1692563Z ##[endgroup]
We may be able to fix it by modifying .ci/buildchain-config.yaml
from
after: current: | docker system prune -f
to
after: current: | bash -c "if docker system df > /dev/null 2>&1; then docker system prune -f; else echo 'Prune operation already in progress. Skipping this command.'; fi"