Skip to content

OBSINTA-1219: e2e tests for incident detection Followup #1071

Draft
DavidRajnoha wants to merge 2 commits intomainfrom
test/PR-1038-post-improvements
Draft

OBSINTA-1219: e2e tests for incident detection Followup #1071
DavidRajnoha wants to merge 2 commits intomainfrom
test/PR-1038-post-improvements

Conversation

@DavidRajnoha
Copy link
Copy Markdown
Collaborator

No description provided.

Add an end-to-end test that deploys a Monitoring UIPlugin with the
cluster-health-analyzer enabled, fires a synthetic PrometheusRule alert,
and verifies the corresponding incident metric appears.

Framework additions: SkipIfClusterVersionBelow (semver gate that fails
on unknown version instead of silently skipping), DumpNamespaceDebug
(on-failure diagnostic dump of deployments, pods and events), and
AssertPromQLResultWithOptions (configurable poll interval/timeout).

The UIPlugin setup is race-tolerant: deleteUIPluginIfExists issues a
direct Delete and treats IsNotFound as success, avoiding a TOCTOU window
between Get and Delete that could cause spurious failures.

Made-with: Cursor
Cache the full ClusterVersion object during Framework.Setup() so that
SkipIfClusterVersionBelow uses the cached value instead of making a
redundant API call. Also add a comment explaining the unique suffix
for rule names.

Made-with: Cursor
@openshift-ci-robot
Copy link
Copy Markdown
Collaborator

openshift-ci-robot commented Apr 24, 2026

@DavidRajnoha: This pull request references OBSINTA-1219 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 epic to target the "5.0.0" version, but no target version was set.

Details

In response to this:

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.

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 24, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

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

Details 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

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 24, 2026

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Review skipped — only excluded labels are configured. (1)
  • work-in-progress

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 5545a00f-e6ef-4f76-bdab-d3fca06ae4df

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch test/PR-1038-post-improvements

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 24, 2026

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

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 24, 2026

PR needs rebase.

Details

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.

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.

2 participants