Skip to content

OSD-30030: E2E Test cases ClusterMonitoringErrorBudgetBurnSRE #456

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

lambasanchit
Copy link

@lambasanchit lambasanchit commented May 27, 2025

E2E Test: ClusterMonitoringErrorBudgetBurn Alert Trigger and Recovery (OSD-30030)

Description:
This PR adds an E2E test for the ClusterMonitoringErrorBudgetBurn alert, targeting AWS CCS clusters.

The test misconfigures the user-workload-monitoring-config ConfigMap in the openshift-user-workload-monitoring namespace to simulate excessive monitoring error budget burn. It then checks if a service log is created and finally deletes the ConfigMap to clean up the test state.

Steps:
Fetch initial cluster info and current service logs.

Backup the original ConfigMap.

Inject malformed YAML to trigger the alert.

Wait for CAD/system reaction.

Validate that a new service log is generated.

Delete the ConfigMap as a recovery step.

Acceptance:
Alert is triggered (ClusterMonitoringErrorBudgetBurnSRE).

Service log is sent to the customer.

Cluster state is restored by deleting the ConfigMap.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 27, 2025
Copy link
Contributor

openshift-ci bot commented May 27, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

Copy link
Contributor

openshift-ci bot commented May 27, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: lambasanchit
Once this PR has been reviewed and has the lgtm label, please assign rafael-azevedo for approval. For more information see the 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

@lambasanchit lambasanchit marked this pull request as ready for review May 27, 2025 11:45
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 27, 2025
@openshift-ci openshift-ci bot requested review from rafael-azevedo and tnierman May 27, 2025 11:46
@lambasanchit lambasanchit changed the title Osd_30030 E2E Test cases ClusterMonitoringErrorBudgetBurnSRE OSD-30030: E2E Test cases ClusterMonitoringErrorBudgetBurnSRE May 27, 2025
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label May 27, 2025
@openshift-ci-robot
Copy link

openshift-ci-robot commented May 27, 2025

@lambasanchit: This pull request references OSD-30030 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.20.0" version, but no target version was set.

In response to this:

E2E Test: ClusterMonitoringErrorBudgetBurn Alert Trigger and Recovery (OSD-30030)

Description:
This PR adds an E2E test for the ClusterMonitoringErrorBudgetBurn alert, targeting AWS CCS clusters.

The test misconfigures the user-workload-monitoring-config ConfigMap in the openshift-user-workload-monitoring namespace to simulate excessive monitoring error budget burn. It then checks if a service log is created and finally deletes the ConfigMap to clean up the test state.

Steps:
Fetch initial cluster info and current service logs.

Backup the original ConfigMap.

Inject malformed YAML to trigger the alert.

Wait for CAD/system reaction.

Validate that a new service log is generated.

Delete the ConfigMap as a recovery step.

Acceptance:
Alert is triggered (ClusterMonitoringErrorBudgetBurnSRE).

Service log is sent to the customer.

Cluster state is restored by deleting the ConfigMap.

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 openshift-eng/jira-lifecycle-plugin repository.

@codecov-commenter
Copy link

codecov-commenter commented May 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 32.08%. Comparing base (b1691b0) to head (0730c69).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #456   +/-   ##
=======================================
  Coverage   32.08%   32.08%           
=======================================
  Files          35       35           
  Lines        2425     2425           
=======================================
  Hits          778      778           
  Misses       1587     1587           
  Partials       60       60           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

openshift-ci bot commented May 27, 2025

@lambasanchit: all tests passed!

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants