Skip to content
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

KeycloakUserServiceTest occasionally failing #2086

Open
lampajr opened this issue Oct 15, 2024 · 0 comments
Open

KeycloakUserServiceTest occasionally failing #2086

lampajr opened this issue Oct 15, 2024 · 0 comments
Labels
area/cicd Issue affect the CI

Comments

@lampajr
Copy link
Member

lampajr commented Oct 15, 2024

Describe the bug

Test KeycloakUserServiceTest is occasionally failing with:

2024-10-15 13:35:57,816 WARN  [io.hyp.too.hor.svc.use.KeycloakUserBackend] (main) Could not add admin role to user some-random-dude due to User some-random-dude does not exist
Error:  Tests run: 11, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 63.65 s <<< FAILURE! -- in io.hyperfoil.tools.horreum.svc.KeycloakUserServiceTest
Error:  io.hyperfoil.tools.horreum.svc.KeycloakUserServiceTest.apiKeys -- Time elapsed: 0.615 s <<< FAILURE!
org.opentest4j.AssertionFailedError: Expected a notification of key about to expire ==> expected: <false> but was: <true>
	at io.hyperfoil.tools.horreum.svc.UserServiceAbstractTest.lambda$apiKeys$56(UserServiceAbstractTest.java:617)
	at io.hyperfoil.tools.horreum.svc.UserServiceAbstractTest.overrideTestSecurity(UserServiceAbstractTest.java:76)
	at io.hyperfoil.tools.horreum.svc.UserServiceAbstractTest.apiKeys(UserServiceAbstractTest.java:578)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at io.quarkus.test.junit.QuarkusTestExtension.runExtensionMethod(QuarkusTestExtension.java:973)
	at io.quarkus.test.junit.QuarkusTestExtension.interceptTestMethod(QuarkusTestExtension.java:823)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

To Reproduce

See job https://github.com/Hyperfoil/Horreum/actions/runs/11347129760/job/31557779361?pr=2085 as example

Additional Context

Re-running the CI makes the test green, thus I think it is actually a flaky test.

@lampajr lampajr added the area/cicd Issue affect the CI label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cicd Issue affect the CI
Projects
None yet
Development

No branches or pull requests

1 participant