-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fix random test failures caused by mainnet
connections
#722
Comments
Just a note, this is a source of intermittent test failures for tests that create node-node connections as part of it's tests. As such it's pretty high priority and I'll work on it first thing after completing the vaults review PR #720 |
So the main problem here is that in some tests we have a This in itself shouldn't be a problem. But this error is bubbling up to cause certain tests to fail randomly. And given the nature of how these errors are created and thrown. It's really hard to pin down their origin and their return path. I'm still looking into it. |
I think the problem is in how the It seems that its leading to I'll dig into it more, but at this moment the fix just seems to be only calling |
Yep, confirmed that this is the problem. It's really weird though since this should be causing much more problems since we do it in a bunch of places in the streams. That said, this is the only place we throw the error but don't call I'm going to put this on hold for now while I finish off the discovery PR for @amydevs. |
Remember sometimes we do both because we consider to be 2 kinds of errors simultaneously. It's an architectural decision. |
Not actually blocked by #461 so I'm removing that as a criteria and moving it back to the backlog. |
Specification
While working on #720 I was re-enabling disabled tests. One of them
can pull a cloned vault
attests/vaults/VaultManager.test.ts:932
was failing intermittently. After some digging I found that it was caused by external connections and RPC requests being made to the testNodeConnectionManager
being used within the test.There are two problems with this.
NodeConnectionManagers
within tests should not be starting or receiving any connections during the test. This is just to maintain test isolation since test failures should ideally be directly related to what the test is checking. This would depend on AllowNodeManager
to start lazily without network entry procedure #461 being completed and then updating all relevant tests.NodeConnectionManager
is attempting theRPC
call to aRPCServer
that doesn't have the handler? Needs more digging.Additional context
NodeManager
to start lazily without network entry procedure #461Tasks
PolykeyAgent
s andNodeConnectionManager
s don't attempt to interact with the wider mainnet while testing by starting with network entry disabled.RPC
error is causing the test to fail and fix any bug that may be revealed.The text was updated successfully, but these errors were encountered: