Skip to content

Flaky test: org.keycloak.testsuite.admin.authentication.FlowTest#testAddRemoveFlow #20763

Description

org.keycloak.testsuite.admin.authentication.FlowTest#testAddRemoveFlow

Keycloak CI - New Store IT (jpa-cockroach)

java.lang.AssertionError: deleteFlow should fail for built in flow
	at org.junit.Assert.fail(Assert.java:89)
	at org.keycloak.testsuite.admin.authentication.FlowTest.testAddRemoveFlow(FlowTest.java:110)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
...

Activity

  1. ghost added
    area/ci
    on Jun 3, 2023
  2. ghost added
    kind/bug
    on Jun 3, 2023
  3. 507 remaining items

  4. self-assigned this
    on Jul 18, 2023
  5. rmartinc commented on Jul 18, 2023

    @rmartinc
    Contributor

    I think that I know what happens. The test loops trying to delete a built-in flow but it doesn't ensure it's a built-in flow. So depending the db sometimes a normal flow is returned first and that one can be deleted. It seems than in H2 a built-in flow is always returned first. I could reproduce it with mariadb, failing at run 7. Probably the reason was another test was added in the class and it created a normal flow than can be returned first now.

    I'm going to change to pick up a flow that is built-in and try with that one instead of the first one returned.

  6. added this to the 23.0.0 milestone on Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/ciflaky-testkind/bug

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions