Skip to content

CONSOLE-5118: Improve AI assessment prompts - #16880

Open
fao89 wants to merge 1 commit into
openshift:mainfrom
fao89:Review-CONSOLE-5118
Open

CONSOLE-5118: Improve AI assessment prompts#16880
fao89 wants to merge 1 commit into
openshift:mainfrom
fao89:Review-CONSOLE-5118

Conversation

@fao89

@fao89 fao89 commented Jul 29, 2026

Copy link
Copy Markdown
Member

Standardize TL;DR sections across all prompt templates by moving Data Completeness near the top, simplifying its format, and enforcing terminal fields (Recommendation/Next Steps). Update the AI Assessment card icon and split the irreversibility warning into a title and body for better readability.

Analysis / Root cause:

Solution description:

Screenshots / screen recording:

Test setup:

Test cases:

Browser conformance:

  • Chrome
  • Firefox
  • Safari (or Epiphany on Linux)

Additional info:

Reviewers and assignees:

Summary by CodeRabbit

  • Improvements
    • Clarified cluster update irreversibility warnings by separating the title from the supporting guidance text.
    • Updated the AI Assessment alert icon for clearer visual context.
    • Standardized AI-generated TL;DR content with a simplified data-completeness confidence label.
    • Enforced consistent TL;DR formatting so key fields (Recommendation / Next Steps) appear at the end.

@openshift-ci-robot

openshift-ci-robot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

@fao89: This pull request references CONSOLE-5118 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 "5.0.0" version, but no target version was set.

Details

In response to this:

Standardize TL;DR sections across all prompt templates by moving Data Completeness near the top, simplifying its format, and enforcing terminal fields (Recommendation/Next Steps). Update the AI Assessment card icon and split the irreversibility warning into a title and body for better readability.

Analysis / Root cause:

Solution description:

Screenshots / screen recording:

Test setup:

Test cases:

Browser conformance:

  • Chrome
  • Firefox
  • Safari (or Epiphany on Linux)

Additional info:

Reviewers and assignees:

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-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jul 29, 2026
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: LGTM mode

@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

Cluster update prompts now standardize TL;DR Data Completeness confidence wording and terminal fields. Cluster update alerts use a dedicated AI info icon, split irreversible-update titles from body messages, and update English localization entries.

Changes

Cluster update prompt contracts

Layer / File(s) Summary
Standardized TL;DR fields
frontend/packages/console-shared/src/components/cluster-updates/prompts/*
TL;DR templates use High, Moderate, or Limited confidence values for Data Completeness. Pre-check prompts end with Recommendation, while troubleshooting ends with Next Steps.

Irreversible update alerts

Layer / File(s) Summary
Alert presentation and localization
frontend/public/components/cluster-settings/cluster-settings.tsx, frontend/public/components/modals/cluster-update-modal.tsx, frontend/public/locales/en/public.json
The AI assessment icon changes, irreversible-update messages are split between alert titles and bodies, and English translations are updated.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested labels: component/dev-console, verified

Suggested reviewers: therealjon, jseseccs, leo6leo, spadgett, logonoff

🚥 Pre-merge checks | ✅ 14 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning Most required template sections are missing; only a high-level summary is provided, with no analysis, solution details, tests, screenshots, or reviewers. Fill in Analysis / Root cause, Solution description, Screenshots, Test setup, Test cases, Browser conformance, Additional info, and Reviewers sections.
✅ Passed checks (14 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise, Jira-prefixed, and accurately summarizes the main change set.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed No test files or Ginkgo titles were changed; the diff only touches prompts, UI, and locale text.
Test Structure And Quality ✅ Passed The PR only changes prompt templates, UI components, and locale strings; no Ginkgo test code was touched, so this check is not applicable.
Microshift Test Compatibility ✅ Passed No Ginkgo e2e tests were added; only frontend prompt/component/localization files changed, with no It/Describe/Context/When constructs.
Single Node Openshift (Sno) Test Compatibility ✅ Passed No new Ginkgo e2e tests were added; the PR only changes prompts, UI, and localization files.
Topology-Aware Scheduling Compatibility ✅ Passed PR only updates prompts/UI/localization; no manifests/controllers or topology/scheduling constraints changed.
Ote Binary Stdout Contract ✅ Passed Only frontend prompt/UI files changed; no OTE binary, main/init/TestMain, or stdout-writing code was touched.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed No new Ginkgo/e2e tests were added; the diff only touches prompt text, UI components, and locale strings, with no IPv4 or external connectivity assumptions.
No-Weak-Crypto ✅ Passed No weak-crypto APIs, custom crypto, or secret/token comparisons appear in the touched files; changes are prompt text, icon, and alert copy only.
Container-Privileges ✅ Passed PR only changes frontend prompts/UI/locales; exact diff shows no container/K8s manifest edits and no privileged, hostPID, hostNetwork, hostIPC, or allowPrivilegeEscalation settings.
No-Sensitive-Data-In-Logs ✅ Passed Diff only changes prompt text/UI/localization; no console/logger calls or other new logging of sensitive data appear in added lines.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@openshift-ci
openshift-ci Bot requested review from Leo6Leo and spadgett July 29, 2026 16:28
@openshift-ci openshift-ci Bot added component/core Related to console core functionality component/shared Related to console-shared kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated labels Jul 29, 2026
@openshift-ci
openshift-ci Bot requested a review from TheRealJon July 30, 2026 12:39
@fao89

fao89 commented Jul 30, 2026

Copy link
Copy Markdown
Member Author

/verified by @fao89

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Jul 30, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@fao89: This PR has been marked as verified by @fao89.

Details

In response to this:

/verified by @fao89

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.

@fao89

fao89 commented Jul 30, 2026

Copy link
Copy Markdown
Member Author

/cc @rh-joshbeverly @jseseCCS

@openshift-ci
openshift-ci Bot requested a review from jseseCCS July 30, 2026 12:42
@openshift-ci

openshift-ci Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

@fao89: GitHub didn't allow me to request PR reviews from the following users: rh-joshbeverly.

Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs.

Details

In response to this:

/cc @rh-joshbeverly @jseseCCS

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.

title={t(
'public~Cluster updates are irreversible. After an update begins, it cannot be rolled back to the previous version. Verify your cluster is ready before you proceed.',
)}
title={t('public~Cluster updates are irreversible')}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: useTranslation('public') already sets the default namespace of the t function to "public". No need to specify the namespace again in the strings

…y notice

Standardize TL;DR sections across all prompt templates by moving Data
Completeness near the top, simplifying its format, and enforcing terminal
fields (Recommendation/Next Steps). Update the AI Assessment card icon
and split the irreversibility warning into a title and body for better
readability.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Fabricio Aguiar <fabricio.aguiar@gmail.com>
@fao89
fao89 force-pushed the Review-CONSOLE-5118 branch from cd6e6cd to 209120f Compare July 30, 2026 12:53
@openshift-ci-robot openshift-ci-robot removed the verified Signifies that the PR passed pre-merge verification criteria label Jul 30, 2026
@openshift-ci-robot

openshift-ci-robot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

@fao89: This pull request references CONSOLE-5118 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 "5.0.0" version, but no target version was set.

Details

In response to this:

Standardize TL;DR sections across all prompt templates by moving Data Completeness near the top, simplifying its format, and enforcing terminal fields (Recommendation/Next Steps). Update the AI Assessment card icon and split the irreversibility warning into a title and body for better readability.

Analysis / Root cause:

Solution description:

Screenshots / screen recording:

Test setup:

Test cases:

Browser conformance:

  • Chrome
  • Firefox
  • Safari (or Epiphany on Linux)

Additional info:

Reviewers and assignees:

Summary by CodeRabbit

  • Improvements
  • Clarified cluster update irreversibility warnings by separating the title from the supporting guidance text.
  • Updated the AI Assessment alert icon for clearer visual context.
  • Standardized AI-generated TL;DR content with a simplified data-completeness confidence label.
  • Enforced consistent TL;DR formatting so key fields (Recommendation / Next Steps) appear at the end.

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.

@logonoff logonoff left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

@fao89

fao89 commented Jul 30, 2026

Copy link
Copy Markdown
Member Author

/verified by @fao89

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Jul 30, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@fao89: This PR has been marked as verified by @fao89.

Details

In response to this:

/verified by @fao89

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@frontend/packages/console-shared/src/components/cluster-updates/prompts/precheck-no-updates.ts`:
- Line 144: Standardize the terminal action contract in both prompt templates:
in
frontend/packages/console-shared/src/components/cluster-updates/prompts/precheck-no-updates.ts
at lines 144-144, add a final Recommendation or Next Steps field after Next
Review; in
frontend/packages/console-shared/src/components/cluster-updates/prompts/progress.ts
at lines 211-211, add the same field after Action Required, or explicitly
document that prompt as an exemption.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 0f0d4eba-367d-483d-ab3b-73ae413ce96f

📥 Commits

Reviewing files that changed from the base of the PR and between cd6e6cd and 209120f.

📒 Files selected for processing (8)
  • frontend/packages/console-shared/src/components/cluster-updates/prompts/precheck-no-updates.ts
  • frontend/packages/console-shared/src/components/cluster-updates/prompts/precheck-specific.ts
  • frontend/packages/console-shared/src/components/cluster-updates/prompts/precheck.ts
  • frontend/packages/console-shared/src/components/cluster-updates/prompts/progress.ts
  • frontend/packages/console-shared/src/components/cluster-updates/prompts/troubleshoot.ts
  • frontend/public/components/cluster-settings/cluster-settings.tsx
  • frontend/public/components/modals/cluster-update-modal.tsx
  • frontend/public/locales/en/public.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • frontend/public/components/cluster-settings/cluster-settings.tsx

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jul 30, 2026
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling tests matching the pipeline_run_if_changed or not excluded by pipeline_skip_if_only_changed parameters:
/test e2e-gcp-console
/test e2e-playwright

@openshift-ci

openshift-ci Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fao89, logonoff

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

The pull request process is described 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

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 30, 2026
@fao89

fao89 commented Jul 30, 2026

Copy link
Copy Markdown
Member Author

/retest-required

@openshift-ci

openshift-ci Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

@fao89: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-playwright 209120f link false /test e2e-playwright

Full PR test history. Your PR dashboard.

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. 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

approved Indicates a PR has been approved by an approver from all required OWNERS files. component/core Related to console core functionality component/shared Related to console-shared jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated lgtm Indicates that a PR is ready to be merged. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants