Open herranzf opened 1 year ago
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
cc @brettmilford @unnecessary-username click here for bot help
Thanks @herranzf for reporting.
The module is a thin wrapper to the Jenkins REST API via the python module python-jenkins. Looking over its commit log it appears to have been fairly stable for some time so I don't think much has changed there that might be causing this.
My working theory is that there is some race condition in which the Jenkins REST API initially returns success prematurely.
The problem continues. It keeps crashing randomly Has anyone had this happen to them?
Summary
I have a random error when I run the "jenkins_build" module.
Sometimes it doesn't wait for the execution to finish and receives an incorrect completion status.
It is a random failure.
When it fails it returns an execution time of 0 ("executingTimeMillis": 0), and a successful status ("result": "SUCCESS"), even if the task completion is unsuccessful.
"build_info": { ... "buildableDurationMillis": 0, "buildableTimeMillis": 0, "buildingDurationMillis": 0, "executingTimeMillis": 0, "executorUtilization": 1.0, "subTaskCount": 0, "waitingDurationMillis": 5050, "waitingTimeMillis": 5050. ... "queueId": 23964990, "result": "SUCCESS", "timestamp": 1690366381728,. ...
Has anyone had a similar bug? Thanks.
Issue Type
Bug Report
Component Name
jenkins_build
Ansible Version
Community.general Version
Configuration
OS / Environment
RHEL 7.9
Steps to Reproduce
Expected Results
I expectect it wait to finishes the execution and recovers the correct state
Actual Results
Code of Conduct