Skip to content

feat(spec): accept and check the manifest nodes field - #489

Open
3alpha wants to merge 1 commit into
masterfrom
feat/node-status-report
Open

3alpha wants to merge 1 commit into
masterfrom
feat/node-status-report

Conversation

@3alpha

@3alpha 3alpha commented Nov 30, 2026

Copy link
Copy Markdown
Member

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

  • SPEC-M07: nodes is accepted now, through knownUnreleasedManifestFields, before the new @dappnode/schemas is installed.
  • SPEC-M10 (extended): each nodes key and each validatorService must be a compose service.
  • SPEC-M12 "Node declarations are complete": checked on the merged manifest of each variant. Each node needs a role, a probe.kind and, after merging root and variant, a network. ethereum-execution nodes need rpcPort and enginePort, ethereum-beacon nodes need apiPort, status-report needs report, and report: "healthcheck" needs a compose healthcheck that is not disabled.
  • SPEC-M13 "Node declarations contain no addresses": flags values that look like URLs or hostnames and keys named like url or host. The dappmanager derives every address itself.
  • Unknown role and probe.kind values are not reported: the field only grows.
  • doc/package-spec.md gains 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/types 0.1.42 and @dappnode/schemas 0.1.27 are published from the dappmanager repo, bump both here. The whole knownUnreleasedManifestFields list then becomes redundant, since 0.1.27 also contains upnpDisable.

Test instructions

  • yarn build, yarn lint and yarn test: 184 passing, 1 pending (179 passing before this change).
  • A new test builds a two-variant package with role, probe and report in the root manifest and only network in each variant, and checks that each variant's nodes is merged by service and that writing the manifest keeps the field.
  • The built SDK's spec check gives 0 findings on the Besu, Geth and Nethermind packages with their nodes declarations.

yarn test:integration, which needs network and Docker, was not run.

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.
@github-actions

Copy link
Copy Markdown

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.

  1. Package dappnodesdk.public.dappnode.eth

Install link

Hash: /ipfs/QmNmc5UGXUnxvefod19KpDG5ymiopHkxwTgs8bVFDJjHPo

(by dappnodebot/build-action)

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.

1 participant