Skip to content

Decoupling legacy and dynamic user profiles and exposing metadata from admin api - #22790

Merged
ahus1 merged 1 commit into
keycloak:release/22.0from
pedroigor:userprofile-bp
Sep 7, 2023
Merged

Decoupling legacy and dynamic user profiles and exposing metadata from admin api#22790
ahus1 merged 1 commit into
keycloak:release/22.0from
pedroigor:userprofile-bp

Conversation

@pedroigor

Copy link
Copy Markdown
Contributor

Closes #22532
Backport #22533

@pedroigor
pedroigor requested review from a team as code owners August 29, 2023 12:19
@pedroigor
pedroigor requested a review from a team August 29, 2023 12:19
@pedroigor
pedroigor requested a review from a team as a code owner August 29, 2023 12:19
@ahus1
ahus1 enabled auto-merge (rebase) August 29, 2023 12:20
@cypress

cypress Bot commented Aug 29, 2023

Copy link
Copy Markdown

Passing run #8836 ↗︎

0 527 48 0 Flakiness 0

Details:

Merge 7b29d2a into 2466e62...
Project: Keycloak Admin UI Commit: 0f80adb063 ℹ️
Status: Passed Duration: 17:59 💡
Started: Sep 6, 2023 12:52 PM Ended: Sep 6, 2023 1:10 PM

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@stianst

stianst commented Aug 31, 2023

Copy link
Copy Markdown
Contributor

Not sure what's going on here, but the new store tests are taking a very long time in this PR:
image

Compared to latest run in release/22:
image

@ghost ghost added the flaky-test label Aug 31, 2023
@ghost

ghost commented Aug 31, 2023

Copy link
Copy Markdown

Unreported flaky test detected

If the below 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.webauthn.account.WebAuthnTransportLocaleTest#multipleTransports

Keycloak CI - WebAuthn IT (chrome)

java.lang.AssertionError: Expected SigningInPage but was Sign in to test (https://localhost:8543/auth/realms/test/login-actions/authenticate?client_id=account-console&tab_id=DDikXec_MRc)
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.assertTrue(Assert.java:42)
	at org.keycloak.testsuite.page.AbstractPage.assertCurrent(AbstractPage.java:110)
	at jdk.internal.reflect.GeneratedMethodAccessor622.invoke(Unknown Source)
...

Report flaky test

@ghost ghost left a comment

Copy link
Copy Markdown

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

@pedroigor
pedroigor force-pushed the userprofile-bp branch 2 times, most recently from 8cb0391 to 204a5e0 Compare September 3, 2023 22:40

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

For some reason in this PR the following jobs consistently times out (after 90 minutes):

  • New Store IT (hot-rod)
  • New Store IT (jpa-postgres)

Latest run in release/22.0 these completed well within the timeout:

  • New Store IT (hot-rod): 31m
  • New Store IT (jpa-postgres): 38m

I have no clue what's going on, but there is something in this PR that is causing this, as I've not seen the same for runs against release/22.0 or other PRs to release/22.0.

@pedroigor

Copy link
Copy Markdown
Contributor Author

@stianst Noticed the same and still trying to figure out what might be causing this.

@pedroigor

pedroigor commented Sep 4, 2023

Copy link
Copy Markdown
Contributor Author

@stianst Talked with @vramik and we need to backport #21828. The ZeroDowntimeTest is ignored in main and that is why the same change set works there.

@vramik

vramik commented Sep 4, 2023

Copy link
Copy Markdown
Contributor

@pedroigor thank you. For the context, there was a community contribution #21347 which revealed an issue during import (see details) in heterogeneous cluster which is visible in this PR as well.

The solution was split into 3 steps, disable test, introduce re-try mechanism, enable test.

We can consider backporting just #21828 or all of them.

@ghost

ghost commented Sep 4, 2023

Copy link
Copy Markdown

Unreported flaky test detected

If the below 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.admin.concurrency.ConcurrencyTest#createRemoveClient

Keycloak CI - Base IT (1)

java.lang.RuntimeException: There were failures in threads. Failures count: 1
	at org.keycloak.testsuite.admin.concurrency.AbstractConcurrencyTest.run(AbstractConcurrencyTest.java:122)
	at org.keycloak.testsuite.admin.concurrency.AbstractConcurrencyTest.run(AbstractConcurrencyTest.java:63)
	at org.keycloak.testsuite.admin.concurrency.AbstractConcurrencyTest.run(AbstractConcurrencyTest.java:59)
	at org.keycloak.testsuite.admin.concurrency.ConcurrencyTest.concurrentTest(ConcurrencyTest.java:60)
...

Report flaky test

org.keycloak.testsuite.admin.concurrency.ConcurrencyTest#createClient

Keycloak CI - Base IT (1)

java.lang.RuntimeException: There were failures in threads. Failures count: 1
	at org.keycloak.testsuite.admin.concurrency.AbstractConcurrencyTest.run(AbstractConcurrencyTest.java:122)
	at org.keycloak.testsuite.admin.concurrency.AbstractConcurrencyTest.run(AbstractConcurrencyTest.java:63)
	at org.keycloak.testsuite.admin.concurrency.AbstractConcurrencyTest.run(AbstractConcurrencyTest.java:59)
	at org.keycloak.testsuite.admin.concurrency.ConcurrencyTest.concurrentTest(ConcurrencyTest.java:60)
...

Report flaky test

@ghost ghost left a comment

Copy link
Copy Markdown

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

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

Due to updating conditional tests in release/22.0 from main the store tests no longer run against this PR, so we can't verify if the store issues are resolved.

I've opened an issue to resolve this and sent a PR for it as well:
#23001

@vramik

vramik commented Sep 6, 2023

Copy link
Copy Markdown
Contributor

I've prepared a backport of aforementioned #21828: #23007

…m admin api

    Closes keycloak#22532

    Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
@stianst
stianst self-requested a review September 6, 2023 13:33

@ghost ghost left a comment

Copy link
Copy Markdown

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

@ghost

ghost commented Sep 6, 2023

Copy link
Copy Markdown

Unreported flaky test detected

If the below 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.x509.X509BrowserCRLTest#loginSuccessWithCRLSignedWithIntermediateCA3FromTruststore

Keycloak CI - FIPS IT (strict)

java.lang.RuntimeException: Could not create statement
	at org.jboss.arquillian.junit.Arquillian.methodBlock(Arquillian.java:313)
	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
...

Report flaky test

org.keycloak.testsuite.x509.X509BrowserCRLTest#loginFailedWithIntermediateRevocationListFromFile

Keycloak CI - FIPS IT (strict)

java.lang.RuntimeException: Could not create statement
	at org.jboss.arquillian.junit.Arquillian.methodBlock(Arquillian.java:313)
	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
...

Report flaky test

@ghost ghost left a comment

Copy link
Copy Markdown

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

@ghost

ghost commented Sep 6, 2023

Copy link
Copy Markdown

Unreported flaky test detected

If the below 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.x509.X509BrowserCRLTest#loginSuccessWithCRLSignedWithIntermediateCA3FromTruststore

Keycloak CI - FIPS IT (strict)

java.lang.RuntimeException: Could not create statement
	at org.jboss.arquillian.junit.Arquillian.methodBlock(Arquillian.java:313)
	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
...

Report flaky test

org.keycloak.testsuite.x509.X509BrowserCRLTest#loginFailedWithIntermediateRevocationListFromFile

Keycloak CI - FIPS IT (strict)

java.lang.RuntimeException: Could not create statement
	at org.jboss.arquillian.junit.Arquillian.methodBlock(Arquillian.java:313)
	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
...

Report flaky test

org.keycloak.testsuite.model.user.UserSyncTest#testManyUsersImport

Keycloak CI - Store Model Tests

org.keycloak.models.ModelException: org.keycloak.models.ModelException: Error creating subcontext [uid=user1,ou=People,dc=keycloak,dc=org]
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
...

Report flaky test

@ahus1
ahus1 merged commit e88c0aa into keycloak:release/22.0 Sep 7, 2023
@cypress

cypress Bot commented Sep 7, 2023

Copy link
Copy Markdown

1 flaky test on run #8853 ↗︎

0 527 48 0 Flakiness 1

Details:

Decoupling legacy and dynamic user profiles and exposing metadata from admin api
Project: Keycloak Admin UI Commit: e88c0aa61d
Status: Passed Duration: 16:08 💡
Started: Sep 7, 2023 9:37 AM Ended: Sep 7, 2023 9:54 AM
Flakiness  cypress/e2e/authentication_test.spec.ts • 1 flaky test • chrome

View Output Video

Test Artifacts
Authentication test > should add a condition Output Screenshots

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

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.

5 participants