Repository navigation
Conversation
Node packages declare the nodes they run in `nodes`. The SDK no longer warns about the field, checks that each declaration is complete and free of addresses, and documents it in the package spec.
|
Dappnode bot has built and pinned the built packages to an IPFS node, for commit: 0c61611 This is a development version and should only be installed for testing purposes.
Hash: (by dappnodebot/build-action) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Node packages now declare the nodes they run in an optional manifest field,
nodes, and report their sync phase through their Docker healthcheck. The dappmanager side is in dappnode/DNP_DAPPMANAGER#2520, and the five execution client packages add the field in their own PRs. With the current SDK those packages would get the unknown-field warning SPEC-M07.Approach
nodesis accepted now, throughknownUnreleasedManifestFields, before the new@dappnode/schemasis installed.nodeskey and eachvalidatorServicemust be a compose service.role, aprobe.kindand, after merging root and variant, anetwork.ethereum-executionnodes needrpcPortandenginePort,ethereum-beaconnodes needapiPort,status-reportneedsreport, andreport: "healthcheck"needs a composehealthcheckthat is not disabled.urlorhost. The dappmanager derives every address itself.roleandprobe.kindvalues are not reported: the field only grows.doc/package-spec.mdgains a "Node declarations" section with the fields, the root and variant split, the status report and the healthcheck conventions.Like every rule, these are warnings by default and errors only with
DAPPNODE_SDK_SPEC=error.Follow-up after the npm publish
Once
@dappnode/types0.1.42 and@dappnode/schemas0.1.27 are published from the dappmanager repo, bump both here. The wholeknownUnreleasedManifestFieldslist then becomes redundant, since 0.1.27 also containsupnpDisable.Test instructions
yarn build,yarn lintandyarn test: 184 passing, 1 pending (179 passing before this change).networkin each variant, and checks that each variant'snodesis merged by service and that writing the manifest keeps the field.nodesdeclarations.yarn test:integration, which needs network and Docker, was not run.