Skip to content
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

add status of ended pipelinerun to the log #24

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

avi-biton
Copy link
Collaborator

@avi-biton avi-biton commented Aug 8, 2024

While checking the logs in staging I found several pipelineruns that did not send notifications.
Those pipelineruns ended not successfully and do not need to send message.

Adding the status of ended pipelinerun to the log to better understand from the logs whether a message should be sent or not, very effective after pipelineruns are deleted and we have no way of knowing they failed.

Logs will look like:

2024-08-08T08:25:26Z INFO Notification controller Pipelinerun ended {"pipelinerun": "dummy-push-pipelinerun-2qkt5", "ended_successfully": true}

2024-08-08T08:27:08Z INFO Notification controller Pipelinerun ended {"pipelinerun": "dummy-push-pipelinerun-4dqlg", "ended_successfully": false}

Adding the status of ended pipelinerun to the log

Signed-off-by: Avi Biton <[email protected]>
@avi-biton avi-biton requested a review from yftacherzog August 8, 2024 08:44
Copy link
Member

@yftacherzog yftacherzog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@avi-biton avi-biton merged commit 9a463c4 into konflux-ci:main Aug 8, 2024
4 checks passed
@avi-biton avi-biton deleted the log branch August 8, 2024 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants