-
Notifications
You must be signed in to change notification settings - Fork 33
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
[Utility][Infra]Deploy an Anvil node in LocalNet #971
base: main
Are you sure you want to change the base?
Conversation
@okdas in addition to review, could you please advise whether the labels I have added are correct? |
@adshmh I'll take a deeper look at this today, but at first glance this looks sweet 🔥 |
@@ -314,6 +314,16 @@ for x in range(localnet_config["full_nodes"]["count"]): | |||
|
|||
k8s_resource("full-node-%s-pocket" % formatted_number, labels=["pocket-full-nodes"]) | |||
|
|||
# Provisions anvil node and service for E2E testing |
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.
💯
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). |
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.
Great comment, good to know 👍
@@ -314,6 +314,16 @@ for x in range(localnet_config["full_nodes"]["count"]): | |||
|
|||
k8s_resource("full-node-%s-pocket" % formatted_number, labels=["pocket-full-nodes"]) | |||
|
|||
# Provisions anvil node and service for E2E testing | |||
k8s_yaml( | |||
helm( |
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.
I'm getting an error coming form this line when trying to run this code locally .
Running: helm template anvil-node /Users/shakezula/dev/pokt/pocket/charts/anvil --include-crds
Error: Traceback (most recent call last):
/Users/shakezula/dev/pokt/pocket/build/localnet/Tiltfile:319:9: in <toplevel>
Error in helm: command "helm template anvil-node /Users/shakezula/dev/pokt/pocket/charts/anvil --include-crds" failed.
error: exit status 1
stdout: ""
stderr: "Error: template: anvil/templates/deployment.yaml:8:20: executing \"anvil/templates/deployment.yaml\" at <.Values.autoscaling.enabled>: nil pointer evaluating interface {}.enabled\n\nUse --debug flag to render out invalid YAML\n"
make: *** [localnet_down] Error 1
make localnet_up
and make localnet_down
are both reporting this error. Have you seen this error before, by chance?
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.
This is gonna be sweet! However, I'm getting a build error on this locally when running make localnet_up
that I think is related to a value not being set but referred to by the template. Once that gets cleared up though this should be good to go.
Description
Deploy an Anvil node as part of LocalNet to facilitate E2E tests.
Issue
Fixes #963, but using Anvil instead which has a feature set comparable to Ganache for our testing requirements. @dylanlott would appreciate any items you could add here.
Type of change
Please mark the relevant option(s):
List of changes
Testing
make develop_test
; if any code changes were mademake test_e2e
on k8s LocalNet; if any code changes were madee2e-devnet-test
passes tests on DevNet; if any code was changedRequired Checklist
godoc
format comments on touched members (see: tip.golang.org/doc/comment)If Applicable Checklist
shared/docs/*
if I updatedshared/*
README(s)