-
Notifications
You must be signed in to change notification settings - Fork 807
e2e: Add local network fixture #1700
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
Conversation
a29c191
to
6ad4e71
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The design looks good.
I will mention though that this is pretty similar to functionality we offer in the avalanche-cli test suite. With one or two small tweaks, you could replicate this functionality using ANR/CLI. The one feature we'd need to change is enabling a custom avalanchego instance. Currently we only support official releases.
An example suite: https://github.com/ava-labs/avalanche-cli/blob/main/tests/e2e/testcases/subnet/local/suite.go
Rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great on first pass!
17907a7
to
30e0b72
Compare
Previously this was only used for dynamic port usage, but it's faster for static ports to use this strategy too.
It will still be possible to set static ports by supplying explicit node configuration.
Co-authored-by: Stephen Buttolph <stephen@avalabs.org> Signed-off-by: marun <maru.newby@avalabs.org>
Co-authored-by: Stephen Buttolph <stephen@avalabs.org> Signed-off-by: marun <maru.newby@avalabs.org>
Co-authored-by: Stephen Buttolph <stephen@avalabs.org> Signed-off-by: marun <maru.newby@avalabs.org>
Co-authored-by: Stephen Buttolph <stephen@avalabs.org> Signed-off-by: marun <maru.newby@avalabs.org>
Co-authored-by: Stephen Buttolph <stephen@avalabs.org> Signed-off-by: marun <maru.newby@avalabs.org>
Co-authored-by: Stephen Buttolph <stephen@avalabs.org> Signed-off-by: marun <maru.newby@avalabs.org>
Co-authored-by: Stephen Buttolph <stephen@avalabs.org> Signed-off-by: marun <maru.newby@avalabs.org>
Co-authored-by: Stephen Buttolph <stephen@avalabs.org> Signed-off-by: marun <maru.newby@avalabs.org>
2f10243
to
643ce4b
Compare
Why this should be merged
To better enable e2e test development, this PR adds a new orchestration mechanism for local test networks. Nodes are launched as independent processes and all configuration is serialized to disk to avoid requiring a persistent rpc daemon. Evolving requirements can be implemented directly in the avalanchego repo.
A new CI job (
test_e2e_persistent
) is added in this PR to start and stop a network with the new fixture. #1709 switches e2e to use the new fixture and updates the new job to run e2e against a persistent network.How this works
Preliminary documentation has been added via fixture README.
How this was tested
TODO