Open albertpuente opened 2 years ago
@nichtraunzer is this the issue we spoke about? @albertpuente what do you suggest? Improve the log message or not set the pipeline unstable?
IMO I would not set it as unstable for WIP, as that typically has other connotations (tests failing). For D, QA... it makes it fail, which is fine.
@nichtraunzer is this the issue we spoke about? @albertpuente what do you suggest? Improve the log message or not set the pipeline unstable?
yes - we proposed to improve the log message so that it is easier to identify the root cause for the unstable build. we had to go through the source code to figure it out. If there is a message like
WARN: Your pipeline has been marked as UNSTABLE since the following issues are work in progress:
Requirements: AGE-128, AGE-126, AGE-124, AGE-130
TechSpecs: AGE-129, AGE-127, AGE-125, AGE-131
Docs: AGE-122, AGE-121
it would have been a matter of seconds to resolve that issue ...
@nichtraunzer feel free to provide a PR :)
@nichtraunzer feel free to provide a PR :)
will do so :)
I would leave unstable- this shows something is not quite right
I would leave unstable- this shows something is not quite right
we do not change "UNSTABLE" - we propose to update the log message itself only e.g.
WARN: Your pipeline has been marked as UNSTABLE since the following issues are work in progress:
Requirements: AGE-128, AGE-126, AGE-124, AGE-130
TechSpecs: AGE-129, AGE-127, AGE-125, AGE-131
Otherwise its not easy for the user to identify the root cause for the unstable pipeline ...
@nichtraunzer did you provide a PR to this?
Is your feature request related to a problem? Please describe. When a WIP pipeline is run and there are pending issues, the function https://github.com/opendevstack/ods-jenkins-shared-library/blob/f2470541f2e9cd8d247f5924ce0f5246b2069644/src/org/ods/orchestration/FinalizeStage.groovy#L91 is called, which sets the pipeline as unstable: https://github.com/opendevstack/ods-jenkins-shared-library/blob/f102ae1e82ffb2622f1c95e73550d039161f80fc/src/org/ods/orchestration/util/PipelineUtil.groovy#L168 However, no indication that this is the reason why the pipeline was set as unstable is given in the logs beyond a warning message.
Describe the solution you'd like The logs should clearly state that this specific warning has cause the pipeline to be flagged as unstable.