New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cctray reporting old failures for stages which no longer exist on the pipeline #12006
Comments
Even after triggering a new pipeline run with the updated template which no longer has the failed stages, it is still reporting the failed stages in the xml. Some added context, the failed stages where in pipeline run 2029, whereas the latest run of the stage which is still present is 2036. The configuration of a pipeline could mean that future runs succeed on a certain stage succeed but aren't promoted to the next stage resulting in a legitimate result but in our case this will never resolve.
Did you add the stage to the template the pipeline uses or did you change to use a different template with that new stage? |
Err OK. Yeah in my case I was lazy, and just used a regular pipeline. It's possible things work differently/inconsistently with templated pipelines, so I guess I'd need to try that separately. In your case, does the stage disappear from the GoCD dashboard and Pipeline Activity etc (especially after the re-run) but is still there in CCTray? If so, that does sound like a bug. |
Yeah that seems a fair expectation. |
Java isn't a strong point of mine but let me know if there's anything I can help with |
I don't know this area of the code, but it'll be somewhere around how these classses work with each other and the GoConfig I guess https://github.com/search?type=code&q=repo%3Agocd%2Fgocd+cctray |
CCTray is no longer reporting these stage failures, it cleared roughly 50 hours after the pipeline template was changed. It's possible this is somewhat related to the cache. |
The cache doesn't have any time expiry associated with it, and is supposed to be notified when a config change occurs. My guess is something got missed and some other change possibly caused it to go away, perhaps completely reloading the cache due to some other config change :-/ Some changes seem likely to completely reload the cache (e.g security permission changes of some sort), some not. Just to clarify the change made, when you say "Change to use a different template" you mean switch the template like in the below, rather than edit the underlying template's stage configuration? |
I changed to use a completely different template, the original template had 3 stages, the second template had just one stage but the first stage was identical to the first stage in the original template. |
Issue Type
Summary
I believe there may be a bug in the CCtray where stages are still reported as failures where the xml includes stage failures for a pipeline which no longer has those stages. I don't know whether this is by design or whether it is a bug.
Environment
Basic environment details
Additional Environment Details
Steps to Reproduce
Expected Results
I would expect those stage failures to resolve
Actual Results
XML still reports stage failures 24 hours after stages have been removed from pipeline
Possible Fix
Check to see if stage still exists in pipeline before collecting status of pipeline
Any other info
To be clear I'm not sure whether this was by design or whether it's an actual issue with the CCTray implementation.
The text was updated successfully, but these errors were encountered: