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

Is there a way to run middleware in an isolated environment for e2e tests? #1336

Open
davidyuk opened this issue May 21, 2023 · 9 comments
Open

Comments

@davidyuk
Copy link
Member

Middleware doesn't support custom network ids #1331
I can't specify custom protocols for known network ids in the node aeternity/aeternity#4136

Therefore I don't see a way to set up a locally running node+middleware that uses the latest protocol and is able to mine blocks. This is needed to run tests, the public testnet is much less stable and other users' transactions may be confusing.

@jyeshe jyeshe assigned jyeshe and unassigned jyeshe May 25, 2023
@davidyuk
Copy link
Member Author

I need this one to test middleware support in js sdk.

@sborrazas
Copy link
Contributor

@davidyuk currently we're integrating devmode for local e2e tests, where we create transactions and contracts via the SDK. You can check it's progress here #1306

@thepiwo
Copy link
Collaborator

thepiwo commented May 23, 2024

would be nioce to have for aeternity/aeproject#310
also discussed in #334

@sborrazas does this work for rollbacks as well?

(ref #1758)

@sborrazas
Copy link
Contributor

would be nioce to have for aeternity/aeproject#310 also discussed in #334

@sborrazas does this work for rollbacks as well?

(ref #1758)

Up to 10 generations, more than that it won't handle it

@thepiwo
Copy link
Collaborator

thepiwo commented May 23, 2024

@sborrazas could we hook into devmode to replicate the way that rollbacks work in the node to also work in the mdw?

@sborrazas
Copy link
Contributor

Using devmode the way it's done in e2e tests you can replicate it

@thepiwo
Copy link
Collaborator

thepiwo commented May 24, 2024

But it can't roll back more than 10 gernerations, could we make that fully compatible to devmode how its implemented in the node?

@sborrazas
Copy link
Contributor

That would require major changes, but we can instead allow resetting the mdw database and sync from scratch, since most devmode usage is usually just a few gens

@thepiwo
Copy link
Collaborator

thepiwo commented May 24, 2024

would work for me as a good first version, it might be weird to use (in any case) as mdw sync is async and devmode usage is synchronous, could we do this in a blocking way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants