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

Flaky Test - NodeSmartContractPermissioningOutOfSyncAcceptanceTest #7000

Closed
siladu opened this issue Apr 26, 2024 · 2 comments · Fixed by #7008
Closed

Flaky Test - NodeSmartContractPermissioningOutOfSyncAcceptanceTest #7000

siladu opened this issue Apr 26, 2024 · 2 comments · Fixed by #7008
Assignees
Labels
flake 60% of the time it works 100% of the time. permissioning account or node permissioning testing

Comments

@siladu
Copy link
Contributor

siladu commented Apr 26, 2024

https://github.com/hyperledger/besu/actions/runs/8840129649/job/24274875461?pr=6998

NodeSmartContractPermissioningOutOfSyncAcceptanceTest > addNodeToClusterAndVerifyNonBootNodePeerConnectionWorksAfterSync() FAILED
    org.awaitility.core.ConditionTimeoutException: Assertion condition defined as a org.hyperledger.besu.tests.acceptance.dsl.condition.perm.WaitForTrueResponse 
    Expecting value to be true but was false within 30 seconds.
        at app//org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
        at app//org.awaitility.core.AssertionCondition.await(AssertionCondition.java:119)
        at app//org.awaitility.core.AssertionCondition.await(AssertionCondition.java:31)
        at app//org.awaitility.core.ConditionFactory.until(ConditionFactory.java:985)
        at app//org.awaitility.core.ConditionFactory.untilAsserted(ConditionFactory.java:769)
        at app//org.hyperledger.besu.tests.acceptance.dsl.WaitUtils.waitFor(WaitUtils.java:31)
        at app//org.hyperledger.besu.tests.acceptance.dsl.WaitUtils.waitFor(WaitUtils.java:24)
        at app//org.hyperledger.besu.tests.acceptance.dsl.condition.perm.WaitForTrueResponse.verify(WaitForTrueResponse.java:34)
        at app//org.hyperledger.besu.tests.acceptance.dsl.node.BesuNode.verify(BesuNode.java:819)
        at app//org.hyperledger.besu.tests.acceptance.permissioning.NodeSmartContractPermissioningOutOfSyncAcceptanceTest.addNodeToClusterAndVerifyNonBootNodePeerConnectionWorksAfterSync(NodeSmartContractPermissioningOutOfSyncAcceptanceTest.java:59)

        Caused by:
        org.opentest4j.AssertionFailedError: 
        Expecting value to be true but was false
            at jdk.internal.reflect.GeneratedConstructorAccessor28.newInstance(Unknown Source)
            at [email protected]/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
            at [email protected]/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
            at app//org.hyperledger.besu.tests.acceptance.dsl.condition.perm.WaitForTrueResponse.lambda$verify$0(WaitForTrueResponse.java:34)
@siladu siladu added testing flake 60% of the time it works 100% of the time. permissioning account or node permissioning labels Apr 26, 2024
@macfarla
Copy link
Contributor

Actually #7007 was a different flake, in the same test.

NodeSmartContractPermissioningOutOfSyncAcceptanceTest > addNodeToClusterAndVerifyNonBootNodePeerConnectionWorksAfterSync() FAILED
org.awaitility.core.ConditionTimeoutException: Assertion condition defined as a org.hyperledger.besu.tests.acceptance.dsl.AcceptanceTestBase
Expecting actual:
22
to be greater than or equal to:
25
within 2 minutes.
at app//org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
at app//org.awaitility.core.AssertionCondition.await(AssertionCondition.java:119)
at app//org.awaitility.core.AssertionCondition.await(AssertionCondition.java:31)
at app//org.awaitility.core.ConditionFactory.until(ConditionFactory.java:985)
at app//org.awaitility.core.ConditionFactory.untilAsserted(ConditionFactory.java:769)
at app//org.hyperledger.besu.tests.acceptance.dsl.WaitUtils.waitFor(WaitUtils.java:31)
at app//org.hyperledger.besu.tests.acceptance.dsl.AcceptanceTestBase.waitForBlockHeight(AcceptanceTestBase.java:180)
at app//org.hyperledger.besu.tests.acceptance.permissioning.NodeSmartContractPermissioningOutOfSyncAcceptanceTest.addNodeToClusterAndVerifyNonBootNodePeerConnectionWorksAfterSync(NodeSmartContractPermissioningOutOfSyncAcceptanceTest.java:47)

@macfarla
Copy link
Contributor

So it's flaky if node B syncs too quickly, and is permitted check returns true on line 59 when we expect false.

And also flaky if node B syncs too slowly, and doesn't get to block 25 within 2 minutes.

@macfarla macfarla self-assigned this Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flake 60% of the time it works 100% of the time. permissioning account or node permissioning testing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants