Skip to content

Conversation

@Rizwana777
Copy link
Collaborator

@Rizwana777 Rizwana777 commented May 15, 2024

What type of PR is this?
Added "description" label to ArgoCDSyncAlert

JIRA - https://issues.redhat.com/browse/GITOPS-2639

@openshift-ci
Copy link

openshift-ci bot commented May 15, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign rnapoles-rh for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci
Copy link

openshift-ci bot commented May 15, 2024

Hi @Rizwana777. Thanks for your PR.

I'm waiting for a redhat-developer member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@svghadi
Copy link
Member

svghadi commented May 15, 2024

/ok-to-test

@svghadi
Copy link
Member

svghadi commented May 16, 2024

/lgtm

Copy link

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

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

The description should go into the annotations field and you want a summary entry too.

https://github.com/openshift/enhancements/blob/master/enhancements/monitoring/alerting-consistency.md#style-guide

Labels: map[string]string{
"severity": "warning",
"severity": "warning",
"description": "ArgoCDSyncAlert is listed if Argo CD app is out of sync",

Choose a reason for hiding this comment

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

it could be interesting to include alert labels in the rendered string to help troubleshooting. For instance "Argo CD application XXX is out of sync. Check blah..."

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@simonpasquier addressed the changes, PTAL

@openshift-ci openshift-ci bot removed the lgtm label May 20, 2024
@openshift-ci
Copy link

openshift-ci bot commented May 20, 2024

New changes are detected. LGTM label has been removed.

@Rizwana777 Rizwana777 force-pushed the issue-2639 branch 2 times, most recently from d96d017 to 0412149 Compare May 20, 2024 07:13
Annotations: map[string]string{
"message": "ArgoCD application {{ $labels.name }} is out of sync",
"message": "ArgoCD application {{ $labels.name }} is out of sync",
"summary": "ArgoCDSyncAlert triggers when an Argo CD application is out of sync",

Choose a reason for hiding this comment

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

(suggestion) shortened version

Suggested change
"summary": "ArgoCDSyncAlert triggers when an Argo CD application is out of sync",
"summary": "Argo CD application is out of sync",

"message": "ArgoCD application {{ $labels.name }} is out of sync",
"message": "ArgoCD application {{ $labels.name }} is out of sync",
"summary": "ArgoCDSyncAlert triggers when an Argo CD application is out of sync",
"description": "Argo CD application {{ $labels.name }} is out of sync. Check ArgoCDSyncAlert status, this alert is designed to notify that an application managed by Argo CD is out of sync",

Choose a reason for hiding this comment

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

Suggested change
"description": "Argo CD application {{ $labels.name }} is out of sync. Check ArgoCDSyncAlert status, this alert is designed to notify that an application managed by Argo CD is out of sync",
"description": "Argo CD application {{ $labels.name }} is out of sync. Check ArgoCDSyncAlert status, this alert is designed to notify that an application managed by Argo CD is out of sync.",

Alert: "ArgoCDSyncAlert",
Annotations: map[string]string{
"message": "ArgoCD application {{ $labels.name }} is out of sync",
"message": "ArgoCD application {{ $labels.name }} is out of sync",

Choose a reason for hiding this comment

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

The conventions prescribe "summary" and "description".

Suggested change
"message": "ArgoCD application {{ $labels.name }} is out of sync",

@Rizwana777 Rizwana777 force-pushed the issue-2639 branch 2 times, most recently from d460a53 to 7e78a7c Compare May 22, 2024 06:08
@Rizwana777
Copy link
Collaborator Author

/test unit

@Rizwana777
Copy link
Collaborator Author

/test v4.12-kuttl-parallel

Copy link

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci
Copy link

openshift-ci bot commented May 22, 2024

@simonpasquier: changing LGTM is restricted to collaborators

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@Rizwana777
Copy link
Collaborator Author

/test unit

@jgwest
Copy link
Member

jgwest commented May 23, 2024

@Rizwana777 it appears the unit tests need to be updated, primarily due to switching from message to summary/description

@Rizwana777
Copy link
Collaborator Author

/test v4.14-kuttl-parallel

@Rizwana777
Copy link
Collaborator Author

/retest

2 similar comments
@jgwest
Copy link
Member

jgwest commented May 23, 2024

/retest

@jgwest
Copy link
Member

jgwest commented May 24, 2024

/retest

Copy link
Member

@jgwest jgwest left a comment

Choose a reason for hiding this comment

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

LGTM too, thanks @Rizwana777!

@jgwest jgwest merged commit 9399549 into redhat-developer:master May 24, 2024
trdoyle81 pushed a commit to trdoyle81/gitops-operator that referenced this pull request Aug 13, 2024
* Add description label to ArgoCDSyncAlert

Signed-off-by: Rizwana777 <[email protected]>

* Move description to annotations and add summary

Signed-off-by: Rizwana777 <[email protected]>

---------

Signed-off-by: Rizwana777 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants