Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Integration test failure: Unknown namespace 'ff_system' #1245

Closed
awrichar opened this issue Mar 30, 2023 · 4 comments
Closed

Integration test failure: Unknown namespace 'ff_system' #1245

awrichar opened this issue Mar 30, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@awrichar
Copy link
Contributor

https://github.com/hyperledger/firefly/actions/runs/4559216926/jobs/8042927545

Migration tests for legacy namespaces that rely on "ff_system" are failing. Recent namespace manager work may have broken the functionality for "V1" namespaces.

@awrichar
Copy link
Contributor Author

Seems that when we query for network version, we look for a specific error to indicate that the query failed:

// "Call failed" is interpreted as "method does not exist, default to version 1"

This is the error in ethconnect:
https://github.com/hyperledger/firefly-ethconnect/blob/da2de300ee2adeefb95fc412df8ce8c080645860/internal/errors/errors.go#L363

This bug is apparently related to the switch from ethconnect to evmconnect as the default connector.

ethconnect returned a specific and descriptive error when attempting to query a method that does not exist: FFEC100148: Call failed: execution reverted.
On the other hand, evmconnect just returns a more generic error message of execution reverted.

@awrichar
Copy link
Contributor Author

Even when switching back to ethconnect, there is also a separate issue internal to FireFly. The "ff_system" namespace gets perpetually stuck in a non-initialized state and all calls return this: FF10441: Namespace 'ff_system' is initializing

Probably needs a fix in namespace manager to mark this legacy namespace "started".

@awrichar awrichar added this to FireFly Mar 30, 2023
@awrichar awrichar moved this to In Progress in FireFly Mar 30, 2023
@awrichar awrichar self-assigned this Mar 30, 2023
@awrichar awrichar added the bug Something isn't working label Mar 30, 2023
@awrichar
Copy link
Contributor Author

Opened hyperledger/firefly-evmconnect#65 to further track the lack of parseable error codes in evmconnect.

@awrichar
Copy link
Contributor Author

awrichar commented Apr 3, 2023

I've confirmed that the combination of #1246 + #1249 allows this test to pass.

I also confirmed locally that this was broken in FireFly v1.2.0 - which implies we did not run the integration suite on that release. It could warrant a v1.2.1 with these fixes, but that would need to be pulled from a release branch of FireFly and not main, as there are currently some larger changes being worked in mainline. The only complication would be whether the latest version of evmconnect could be used, since part of the fix is a required change in that repo (and it's seen a number of commits+releases since the v1.2.0 FireFly release).

@awrichar awrichar closed this as completed Apr 4, 2023
@awrichar awrichar moved this from In Progress to Done in FireFly Apr 4, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

1 participant