-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Make rolling-updates-v2 preview feature #40732
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
Make rolling-updates-v2 preview feature #40732
Conversation
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.
Unreported flaky test detected, please review
Unreported flaky test detectedIf the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR. org.keycloak.testsuite.federation.ldap.LDAPReadOnlyTest#testReadOnlyUserGetsPermanentlyLocked
org.keycloak.testsuite.cluster.RealmInvalidationClusterTest#crudWithFailoverKeycloak CI - Store IT (mysql)
|
Closes keycloak#38883 Signed-off-by: Michal Hajas <mhajas@redhat.com>
6abeb00
to
b7b67c9
Compare
@@ -147,7 +147,7 @@ The feature `rolling-updates` is disabled. | |||
[[rolling-updates-for-patch-releases]] | |||
== Rolling updates for patch releases | |||
|
|||
WARNING: This behavior is currently in an experimental mode, and it is not recommended for use in production. | |||
WARNING: This behavior is currently in a preview mode, and it is not recommended for use in production. |
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.
"in preview mode"
@@ -33,7 +33,7 @@ public class FeaturesDistTest { | |||
private static final String PREVIEW_FEATURES_EXPECTED_LOG = "Preview features enabled: " + Arrays.stream(Profile.Feature.values()) | |||
.filter(feature -> feature.getType() == Profile.Feature.Type.PREVIEW) | |||
.filter(feature -> { | |||
Set<Profile.Feature> versions = Profile.getFeatureVersions(feature.getKey()); | |||
Set<Profile.Feature> versions = Profile.getFeatureVersions(feature.getUnversionedKey()); |
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.
Why is this change required?
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.
I believe this is a bug. The method is calling getOrderedFeatures
which returns map of f.getUnversionedKey()
-> to all versions.
Therefore using versioned key here does not make sense and never finds anything. There was no versioned feature in preview mode at the moment so me changing ROLLING_UDPATES_V2
to preview triggered the bug.
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.
Thanks for explaining. Please create an issue to track the bug.
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.
I don't think it is worth the time creating an issue for one line change in tests.
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.
Sorry I should have looked at the code closely, I made wrong assumptions based upon my reading of your explanation. I agree an issue is unnecessary.
Signed-off-by: Michal Hajas <mhajas@redhat.com>
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.
Approving based on previous reviews.
Closes keycloak#38883 Signed-off-by: Michal Hajas <mhajas@redhat.com>
Closes #38883