-
Notifications
You must be signed in to change notification settings - Fork 0
Automated Test: feature-rolling-updates-implementation #329
Automated Test: feature-rolling-updates-implementation #329
Conversation
Closes #36840 Signed-off-by: Pedro Ruivo <pruivo@redhat.com>
📝 WalkthroughWalkthroughThis PR introduces the ROLLING_UPDATES preview feature to Keycloak, requiring explicit feature enablement across operator configurations, build processes, and CLI commands. Update-related commands are gated with feature checks that return early with a new exit code if the feature is disabled, and documentation is updated to reflect the new requirement. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ❌ 2❌ Failed checks (2 warnings)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🤖 Fix all issues with AI agents
In `@docs/guides/operator/advanced-configuration.adoc`:
- Around line 446-451: Replace the awkward phrase "While on preview stage" in
the admonition paragraph about the feature `rolling-updates` with a clearer
alternative such as "While in preview stage" or "While the feature is in
preview" so the sentence reads naturally (e.g., "While the feature is in
preview, the feature `rolling-updates` must be enabled.").
In `@docs/guides/server/update-compatibility.adoc`:
- Around line 12-16: Replace the ungrammatical phrase "While on preview stage"
with "While in the preview stage" in the documentation block that mentions the
`rolling-updates` feature so the sentence reads: "While in the preview stage,
the feature `rolling-updates` must be enabled." Ensure the surrounding warning
block and the `rolling-updates` inline code markup remain unchanged.
🧹 Nitpick comments (1)
quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/cli/command/AbstractUpdatesCommand.java (1)
83-85: Consider usingProfile.Feature.ROLLING_UPDATES.getKey()instead of the hardcoded string.The feature key
'rolling-updates'is hardcoded. UsingProfile.Feature.ROLLING_UPDATES.getKey()would keep the message in sync if the feature is ever renamed. That said, callers already importProfile, so the dependency wouldn't be new to the command hierarchy.
| [CAUTION] | ||
| ==== | ||
| While on preview stage, the feature `rolling-updates` must be enabled. | ||
| Otherwise, the {project_name} Operator will fail. | ||
| ==== | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor grammar issue: "While on preview stage"
Line 448: "While on preview stage" reads awkwardly. Consider "While in preview stage" or "While the feature is in preview".
📝 Suggested fix
[CAUTION]
====
-While on preview stage, the feature `rolling-updates` must be enabled.
+While in preview, the feature `rolling-updates` must be enabled.
Otherwise, the {project_name} Operator will fail.
====📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| [CAUTION] | |
| ==== | |
| While on preview stage, the feature `rolling-updates` must be enabled. | |
| Otherwise, the {project_name} Operator will fail. | |
| ==== | |
| [CAUTION] | |
| ==== | |
| While in preview, the feature `rolling-updates` must be enabled. | |
| Otherwise, the {project_name} Operator will fail. | |
| ==== |
🤖 Prompt for AI Agents
In `@docs/guides/operator/advanced-configuration.adoc` around lines 446 - 451,
Replace the awkward phrase "While on preview stage" in the admonition paragraph
about the feature `rolling-updates` with a clearer alternative such as "While in
preview stage" or "While the feature is in preview" so the sentence reads
naturally (e.g., "While the feature is in preview, the feature `rolling-updates`
must be enabled.").
| [CAUTION] | ||
| ==== | ||
| While on preview stage, the feature `rolling-updates` must be enabled. | ||
| Otherwise, the commands will fail. | ||
| ==== |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor grammar nit: "on preview stage" → "in the preview stage".
Line 14 reads "While on preview stage" which is slightly ungrammatical. Consider "While in the preview stage" for clarity.
📝 Proposed fix
[CAUTION]
====
-While on preview stage, the feature `rolling-updates` must be enabled.
+While in the preview stage, the feature `rolling-updates` must be enabled.
Otherwise, the commands will fail.
====📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| [CAUTION] | |
| ==== | |
| While on preview stage, the feature `rolling-updates` must be enabled. | |
| Otherwise, the commands will fail. | |
| ==== | |
| [CAUTION] | |
| ==== | |
| While in the preview stage, the feature `rolling-updates` must be enabled. | |
| Otherwise, the commands will fail. | |
| ==== |
🤖 Prompt for AI Agents
In `@docs/guides/server/update-compatibility.adoc` around lines 12 - 16, Replace
the ungrammatical phrase "While on preview stage" with "While in the preview
stage" in the documentation block that mentions the `rolling-updates` feature so
the sentence reads: "While in the preview stage, the feature `rolling-updates`
must be enabled." Ensure the surrounding warning block and the `rolling-updates`
inline code markup remain unchanged.
This pull request was automatically created by
@coderabbitai/e2e-reviewer.Batch created pull request.
Summary by CodeRabbit
New Features
Documentation
Chores