Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mposolda
Copy link
Contributor

@mposolda mposolda commented Sep 6, 2024

closes #32514
closes #32478
closes #32477
closes #32678
closes #32542
closes #32678
closes #32541

@miquelsi @wojnarfilip Are you able to review please?

I was not able to reproduce locally with Chrome 126 + ChromeDriver 125 and tests always passed. After upgrade to Chrome 128 and chromeDriver 128, I was able to reproduce flakiness locally. So it looks that chrome+chromeDriver upgrade caused this on GH actions, which is probably why this test started to fail just recently.

After this change, I am not able to see any flakiness locally, so I think this fix will help on GH actions as well.

This should help with all the ResetPasswordTest failures and flakiness. It looks that chrome update to 128 happened around 29th August on GH actions as this is when the issues started to be reported. If there are multiple links where this strange behaviour happens, we can possibly consider moving "retry" somewhere to the framework (maybe UIUtils.clickLink) instead of handling just this single link.

@mposolda mposolda force-pushed the 32514-resetPasswordTest-flaky branch from 2c2d334 to 55d45b9 Compare September 6, 2024 12:59
@wojnarfilip wojnarfilip self-requested a review September 6, 2024 13:02
Copy link
Contributor

@wojnarfilip wojnarfilip left a comment

Choose a reason for hiding this comment

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

Thank you for investigating this and coming up with the solution to improve test stability. LGTM.

Copy link

@keycloak-github-bot keycloak-github-bot bot left a 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

@keycloak-github-bot
Copy link

Unreported flaky test detected

If 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.webauthn.registration.passwordless.PwdLessUserVerRegTest#discouragedNoVerification

Keycloak CI - WebAuthn IT (chrome)

java.lang.AssertionError: Expected RegisterPage but was Sign in to test (https://localhost:8543/auth/realms/test/protocol/openid-connect/auth?response_type=code&client_id=test-app&redirect_uri=https%3A%2F%2Flocalhost%3A8543%2Fauth%2Frealms%2Fmaster%2Fapp%2Fauth&state=2def0001-3e7f-4110-a6d1-3f282d447689&scope=openid)
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.assertTrue(Assert.java:42)
	at org.keycloak.testsuite.pages.AbstractPage.assertCurrent(AbstractPage.java:47)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
...

Report flaky test

Copy link

@keycloak-github-bot keycloak-github-bot bot left a 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

@keycloak-github-bot
Copy link

Unreported flaky test detected

If 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.webauthn.registration.passwordless.PwdLessUserVerRegTest#discouragedNoVerification

Keycloak CI - WebAuthn IT (chrome)

java.lang.AssertionError: Expected RegisterPage but was Sign in to test (https://localhost:8543/auth/realms/test/protocol/openid-connect/auth?response_type=code&client_id=test-app&redirect_uri=https%3A%2F%2Flocalhost%3A8543%2Fauth%2Frealms%2Fmaster%2Fapp%2Fauth&state=2def0001-3e7f-4110-a6d1-3f282d447689&scope=openid)
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.assertTrue(Assert.java:42)
	at org.keycloak.testsuite.pages.AbstractPage.assertCurrent(AbstractPage.java:47)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
...

Report flaky test

@mposolda
Copy link
Contributor Author

mposolda commented Sep 6, 2024

@wojnarfilip Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment