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

Onboard validator's Beacon REST API usage to e2e tests #11704

Conversation

PatriceVignola
Copy link
Contributor

What type of PR is this?

Feature

What does this PR do? Why is it needed?

It onboards the validator's Beacon REST API usage to the e2e tests by going through the following steps:

  1. Convert the convert the use_beacon_api buildtime flag to a --enable-beacon-rest-api flag
  2. Modify the e2e test evaluators to take a validatorHelpers.NodeConnection as an argument instead of a *grpc.ClientConn. There's unfortunately not a clean way to do this without touching a bunch of files, but the change is actually simple and validatorHelpers.NodeConnection is simply a wrapper around *grpc.ClientConn. The behavior of existing e2e tests will not change.
  3. Add tests to the presubmit collateral that turn on the --enable-beacon-rest-api flag.

Copy link
Member

@nisdas nisdas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a misunderstanding on how grpc is used in our evaluators. All these evaluators query the beacon-node not the validator . So there is no need to change the format of the connection to validatorHelpers.NodeConnection . The evaluators will still work as expected because they query the beacon node, and whether the validator is running via grpc or the beacon rest-api makes no difference to this.

testing/endtoend/endtoend_test.go Outdated Show resolved Hide resolved
testing/endtoend/endtoend_test.go Outdated Show resolved Hide resolved
@PatriceVignola PatriceVignola requested review from nisdas and removed request for terencechain and james-prysm December 6, 2022 18:14
testing/endtoend/components/validator.go Outdated Show resolved Hide resolved
testing/endtoend/components/validator.go Outdated Show resolved Hide resolved
testing/endtoend/minimal_scenario_e2e_test.go Outdated Show resolved Hide resolved
testing/endtoend/minimal_e2e_test.go Outdated Show resolved Hide resolved
@PatriceVignola PatriceVignola requested a review from nisdas December 7, 2022 20:20
nisdas
nisdas previously approved these changes Dec 8, 2022
@prylabs-bulldozer prylabs-bulldozer bot merged commit dbeb3ee into prysmaticlabs:develop Dec 8, 2022
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

Successfully merging this pull request may close these issues.

3 participants