From cfc79f16739deb4bfac38b6557583b6b218e12c3 Mon Sep 17 00:00:00 2001 From: 3alpha <15694175+3alpha@users.noreply.github.com> Date: Mon, 30 Nov 2026 15:24:20 +0100 Subject: [PATCH 1/2] feat(nethermind): report the sync phase through the healthcheck The healthcheck prints a status report with the client's sync phase and progress, declared in the manifest `nodes` field, so the dappmanager no longer needs client-specific parsing. --- .github/workflows/node-status-test.yml | 18 ++ README.md | 4 + dappnode_package.json | 13 +- docker-compose.yml | 8 +- nethermind/Dockerfile | 7 +- nethermind/node-status.sh | 109 ++++++++ package_variants/gnosis/dappnode_package.json | 5 + package_variants/hoodi/dappnode_package.json | 5 + .../mainnet/dappnode_package.json | 5 + test/node_status_test.sh | 250 ++++++++++++++++++ 10 files changed, 420 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/node-status-test.yml create mode 100755 nethermind/node-status.sh create mode 100755 test/node_status_test.sh diff --git a/.github/workflows/node-status-test.yml b/.github/workflows/node-status-test.yml new file mode 100644 index 0000000..4c5ad7a --- /dev/null +++ b/.github/workflows/node-status-test.yml @@ -0,0 +1,18 @@ +name: Node status test + +on: + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/checkout@v4 + with: + repository: dappnode/staker-package-scripts + path: staker-package-scripts + - name: Run the node status tests + run: sh test/node_status_test.sh + env: + NODE_STATUS_TOOLS: staker-package-scripts/scripts/node_status_tools.sh diff --git a/README.md b/README.md index 864e537..40293c7 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,7 @@ Light wrapper around the Nethermind Ethereum client > Nethermind - The world’s fastest Ethereum .NET Client and P2P Data Marketplace for the decentralised future\nOur flagship .NET Core-based Ethereum client is all about performance and flexibility. We have built a lean, stable and feature-rich gateway to allow anyone, anywhere, to take part in the decentralised future. + +## Node status report + +The package reports its sync phase to the DAppNode dashboard through its Docker healthcheck: `/usr/local/bin/node-status` prints one JSON line with what Nethermind is doing (sync phase, progress, latest block, peers, background work and health issues). The script is [`nethermind/node-status.sh`](nethermind/node-status.sh), built on the shared helpers of [staker-package-scripts](https://github.com/dappnode/staker-package-scripts). Its tests are in [`test/node_status_test.sh`](test/node_status_test.sh): run `sh test/node_status_test.sh` with a clone of `staker-package-scripts` next to this repository, or point `NODE_STATUS_TOOLS` at its `scripts/node_status_tools.sh`. diff --git a/dappnode_package.json b/dappnode_package.json index 2a19e8c..b582c4a 100644 --- a/dappnode_package.json +++ b/dappnode_package.json @@ -13,6 +13,17 @@ "chain": "ethereum", "description": "Nethermind - The world's fastest Ethereum .NET Client and P2P Data Marketplace for the decentralised future\nOur flagship .NET Core-based Ethereum client is all about performance and flexibility. We have built a lean, stable and feature-rich gateway to allow anyone, anywhere, to take part in the decentralised future.", "license": "GPL-3.0", + "nodes": { + "nethermind": { + "role": "execution", + "probe": { + "kind": "ethereum-execution", + "rpcPort": 8545, + "enginePort": 8551 + }, + "report": "healthcheck" + } + }, "repository": { "type": "git", "url": "https://github.com/dappnode/DAppNodePackage-nethermind-generic.git" @@ -31,7 +42,7 @@ { "arg": "STAKER_SCRIPTS_VERSION", "repo": "dappnode/staker-package-scripts", - "version": "v0.1.2" + "version": "v0.1.3" } ] } diff --git a/docker-compose.yml b/docker-compose.yml index d4e76a5..b8e53fb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: context: nethermind args: UPSTREAM_VERSION: 2.2.2 - STAKER_SCRIPTS_VERSION: v0.1.2 + STAKER_SCRIPTS_VERSION: v0.1.3 DATA_DIR: /data restart: unless-stopped security_opt: @@ -25,5 +25,11 @@ services: nofile: soft: 1000000 hard: 1000000 + healthcheck: + test: ["CMD", "/usr/local/bin/node-status"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 60s volumes: data: {} diff --git a/nethermind/Dockerfile b/nethermind/Dockerfile index 1836798..95d6c12 100644 --- a/nethermind/Dockerfile +++ b/nethermind/Dockerfile @@ -17,12 +17,15 @@ ENV NETHERMIND_JSONRPCCONFIG_ENABLED=true \ STAKER_SCRIPTS_URL=https://github.com/dappnode/staker-package-scripts/releases/download/${STAKER_SCRIPTS_VERSION} ADD ${STAKER_SCRIPTS_URL}/execution_tools.sh /etc/profile.d/ +ADD ${STAKER_SCRIPTS_URL}/node_status_tools.sh /etc/profile.d/ COPY entrypoint.sh /usr/local/bin/entrypoint.sh +COPY node-status.sh /usr/local/bin/node-status -RUN apt-get update && apt-get --yes install curl && \ +RUN apt-get update && apt-get --yes install curl jq && \ apt-get clean && rm -rf /var/lib/apt/lists/* && \ - chmod +rx /usr/local/bin/entrypoint.sh /etc/profile.d/execution_tools.sh + chmod +rx /usr/local/bin/entrypoint.sh /usr/local/bin/node-status \ + /etc/profile.d/execution_tools.sh /etc/profile.d/node_status_tools.sh # This env changes the variant # Placed at the end to regenerate the least amount of layers diff --git a/nethermind/node-status.sh b/nethermind/node-status.sh new file mode 100755 index 0000000..032546d --- /dev/null +++ b/nethermind/node-status.sh @@ -0,0 +1,109 @@ +#!/bin/sh + +# Node status report of the Nethermind execution client, run as the Docker +# healthcheck. Prints one JSON line (node status contract, version 1) telling +# which sync phase Nethermind is in and how far along it is. Whether the node is +# synced, waiting on the consensus client or stalled is decided by the +# dappmanager, not here. +# +# What it relies on, as of NethermindEth/nethermind 2.2.2: +# - eth_syncing (src/Nethermind/Nethermind.Facade/Eth/EthSyncingInfo.cs): an +# object while the head is more than 8 blocks behind the highest known block +# (the best suggested header or the beacon sync target), or while old bodies +# and receipts are still downloading. The head (currentBlock) stays at +# genesis until the snap state sync ends. From 2.3 the object also carries +# warpChunksProcessed / warpChunksAmount during the state download. +# - health_nodeStatus (src/Nethermind/Nethermind.HealthChecks/NodeHealthService.cs): +# "errors" lists ClUnavailable (no forkchoice or payload from the consensus +# client for 5 minutes) and LowDiskSpace, among others. +# +# Environment: +# NODE_STATUS_TOOLS: Path of the shared helpers (default /etc/profile.d/node_status_tools.sh) +# NS_RPC_PORT, NS_TIMEOUT: See node_status_tools.sh (NS_TIMEOUT defaults to 2 here) + +# shellcheck source=/dev/null +. "${NODE_STATUS_TOOLS:-/etc/profile.d/node_status_tools.sh}" + +# At most four sequential calls: keep the worst case well inside the 10 s healthcheck timeout +NS_TIMEOUT=${NS_TIMEOUT:-2} + +# Nethermind counts the head as synced within this many blocks of the highest known block +# (EthSyncingInfo.MaxDistanceForSynced) +MAX_DISTANCE_FOR_SYNCED=8 + +# The JSON-RPC does not answer yet: Nethermind is still opening its database +if ! syncing=$(ns_rpc eth_syncing); then + ns_emit starting + exit $? +fi + +# Latest block, peers and health issues, in that order; a failed call means the +# node stopped answering, so the remaining ones are skipped +set -- +if head=$(ns_block_head); then + # shellcheck disable=SC2086 # height= headTime=, two arguments + set -- $head + if peers=$(ns_rpc net_peerCount); then + set -- "$@" peers="$(ns_json_get "$peers")" + if health=$(ns_rpc health_nodeStatus); then + # NoPeers is left out: the dappmanager derives it from peers. SyncDegraded is + # left out too: Nethermind raises it while it only waits for the consensus client + for error in $(ns_json_get "$health" '(.errors // .Errors // [])[] | strings'); do + case $error in + ClUnavailable) set -- "$@" issue="Consensus client not connected" ;; + LowDiskSpace) set -- "$@" issue="Low disk space" ;; + esac + done + fi + fi +fi + +if [ "$syncing" = "false" ]; then + ns_emit synced "$@" + exit $? +fi + +if [ "$(ns_json_get "$syncing" type)" != "object" ]; then + ns_emit syncing "$@" + exit $? +fi + +# Missing or unreadable numbers count as 0, like the dappmanager's old parser +number() { + ns_hex_to_dec "$(ns_json_get "$syncing" "$1")" || echo 0 +} +current=$(number .currentBlock) +highest=$(number .highestBlock) + +# The head is past genesis: the state is complete +if [ "$current" -gt 0 ]; then + if [ "$highest" -gt $((current + MAX_DISTANCE_FOR_SYNCED)) ]; then + ns_emit syncing "$@" phase="Catching up" position="$current" target="$highest" + exit $? + fi + # At the head and still reported as syncing: old bodies and receipts are downloading + ns_emit syncing "$@" background="Downloading old blocks and receipts" + exit $? +fi + +# No consensus client has given a target since the start +if [ "$highest" -eq 0 ]; then + ns_emit syncing "$@" phase="Downloading block headers" awaitingTarget=true + exit $? +fi + +# Snap state download, measured from 2.3 on +processed=$(number .warpChunksProcessed) +amount=$(number .warpChunksAmount) +if [ "$amount" -gt 0 ]; then + if [ "$processed" -ge "$amount" ]; then + ns_emit syncing "$@" phase="Healing state" + exit $? + fi + ns_emit syncing "$@" phase="Downloading state" progress="$(jq -n "$processed * 100 / $amount")" + exit $? +fi + +# Up to 2.2 nothing tells the header download, the state download and healing apart +ns_emit syncing "$@" phase="Downloading headers and state" +exit $? diff --git a/package_variants/gnosis/dappnode_package.json b/package_variants/gnosis/dappnode_package.json index 8331661..f3a19df 100644 --- a/package_variants/gnosis/dappnode_package.json +++ b/package_variants/gnosis/dappnode_package.json @@ -19,6 +19,11 @@ "homepage": "https://github.com/dappnode/DAppNodePackage-nethermind-generic#readme" }, "name": "nethermind-xdai.dnp.dappnode.eth", + "nodes": { + "nethermind": { + "network": "gnosis" + } + }, "requirements": { "minimumDappnodeVersion": "0.3.12", "notInstalledPackages": [ diff --git a/package_variants/hoodi/dappnode_package.json b/package_variants/hoodi/dappnode_package.json index b5dbb30..ed671ec 100644 --- a/package_variants/hoodi/dappnode_package.json +++ b/package_variants/hoodi/dappnode_package.json @@ -19,5 +19,10 @@ "homepage": "https://github.com/dappnode/DAppNodePackage-nethermind-generic#readme" }, "name": "hoodi-nethermind.dnp.dappnode.eth", + "nodes": { + "nethermind": { + "network": "hoodi" + } + }, "version": "0.1.24" } diff --git a/package_variants/mainnet/dappnode_package.json b/package_variants/mainnet/dappnode_package.json index 864075c..2c62212 100644 --- a/package_variants/mainnet/dappnode_package.json +++ b/package_variants/mainnet/dappnode_package.json @@ -19,5 +19,10 @@ "homepage": "https://github.com/dappnode/DAppNodePackage-nethermind-generic#readme" }, "name": "nethermind.public.dappnode.eth", + "nodes": { + "nethermind": { + "network": "mainnet" + } + }, "version": "1.0.88" } diff --git a/test/node_status_test.sh b/test/node_status_test.sh new file mode 100755 index 0000000..5234c33 --- /dev/null +++ b/test/node_status_test.sh @@ -0,0 +1,250 @@ +#!/bin/sh + +# Tests for nethermind/node-status.sh, the healthcheck that prints the node status report +# Run from anywhere with any POSIX sh: sh test/node_status_test.sh +# Needs jq and the shared helpers of dappnode/staker-package-scripts, by default in a +# sibling clone; set NODE_STATUS_TOOLS to use another copy. The JSON-RPC is stubbed by a +# curl function. + +cd "$(dirname "$0")/.." || exit 1 +NODE_STATUS_TOOLS=${NODE_STATUS_TOOLS:-../staker-package-scripts/scripts/node_status_tools.sh} +if [ ! -r "$NODE_STATUS_TOOLS" ]; then + echo "Shared helpers not found at $NODE_STATUS_TOOLS (set NODE_STATUS_TOOLS)" >&2 + exit 1 +fi +export NODE_STATUS_TOOLS +SCRIPT=nethermind/node-status.sh + +PASS=0 +FAIL=0 +TMP=$(mktemp -d) || exit 1 +trap 'rm -rf "$TMP"' EXIT + +# check +check() { + if [ "$2" = "$3" ]; then + PASS=$((PASS + 1)) + else + FAIL=$((FAIL + 1)) + printf 'FAIL: %s\n expected: %s\n actual: %s\n' "$1" "$2" "$3" + fi +} + +# Stub curl: logs the JSON-RPC method and prints the reply set in REPLY_, +# or fails like a refused connection (exit 7) when that variable is unset +# shellcheck disable=SC2329 # called by the helpers under test +curl() { + _body="" + while [ $# -gt 0 ]; do + [ "$1" = "--data" ] && _body=$2 + shift + done + _method=$(printf '%s' "$_body" | jq -r .method) + printf '%s\n' "$_method" >>"$TMP/calls" + case $_method in + eth_syncing) _set=${REPLY_eth_syncing+x} _reply=${REPLY_eth_syncing-} ;; + eth_getBlockByNumber) _set=${REPLY_eth_getBlockByNumber+x} _reply=${REPLY_eth_getBlockByNumber-} ;; + net_peerCount) _set=${REPLY_net_peerCount+x} _reply=${REPLY_net_peerCount-} ;; + health_nodeStatus) _set=${REPLY_health_nodeStatus+x} _reply=${REPLY_health_nodeStatus-} ;; + *) _set="" ;; + esac + [ -n "$_set" ] || return 7 + printf '{"jsonrpc":"2.0","id":1,%s}' "$_reply" +} + +# Canned replies of a node at block 0x1312d00 (20,000,000) with 25 peers and no health errors +node_up() { + REPLY_eth_syncing='"result":false' + REPLY_eth_getBlockByNumber='"result":{"number":"0x1312d00","timestamp":"0x6553f100","hash":"0x01"}' + REPLY_net_peerCount='"result":"0x19"' + REPLY_health_nodeStatus='"result":{"healthy":true,"messages":["Fully synced","Peers: 25"],"errors":[],"isSyncing":false}' +} + +node_down() { + unset REPLY_eth_syncing REPLY_eth_getBlockByNumber REPLY_net_peerCount REPLY_health_nodeStatus +} + +# syncing +syncing() { + REPLY_eth_syncing="\"result\":$1" +} + +# run_script: sets OUT (stdout), RC (exit status) and CALLS (methods called, space separated) +run_script() { + : >"$TMP/calls" + # shellcheck source=/dev/null + OUT=$( (. "./$SCRIPT") 2>"$TMP/stderr") + RC=$? + CALLS=$(tr '\n' ' ' <"$TMP/calls") + CALLS=${CALLS% } +} + +# field : the filter applied to the last report, compact +field() { + printf '%s\n' "$OUT" | jq -c "$1" +} + +# The report is one line of valid JSON that follows the contract +check_report() { + check "$1: one line" "1" "$(printf '%s\n' "$OUT" | wc -l | tr -d ' ')" + check "$1: nothing on stderr" "" "$(cat "$TMP/stderr")" + valid=$(printf '%s\n' "$OUT" | jq -e ' + def int: type == "number" and . == floor and . >= 0; + def text($n): type == "string" and length > 0 and length <= $n; + type == "object" + and (keys - ["version", "state", "phase", "progress", "height", "headTime", "position", "target", + "unit", "peers", "awaitingTarget", "background", "issues", "details"] == []) + and .version == 1 + and (.state | IN("starting", "syncing", "synced", "error")) + and (.phase == null or (.phase | text(60))) + and (.progress == null or (.progress | type == "number" and . >= 0 and . <= 100)) + and (.progress == null or .state == "synced" or .progress <= 99.9) + and all(.height, .headTime, .position, .target, .peers; . == null or int) + and (.awaitingTarget == null or .awaitingTarget == true) + and (.background == null or (.background | text(60))) + and (.issues == null or (.issues | type == "array" and length <= 5 and all(text(120)))) + and (.progress == null or .position == null) + and (tojson | utf8bytelength <= 2048) + ' 2>/dev/null) + check "$1: valid report" "true" "$valid" +} + +echo "Node not answering" +node_down +run_script +check_report "down" +check "down: starting" '{"version":1,"state":"starting"}' "$OUT" +check "down: exit 0" "0" "$RC" +check "down: stops after the first call" "eth_syncing" "$CALLS" + +echo "Synced" +node_up +run_script +check_report "synced" +check "synced: report" '{"version":1,"state":"synced","height":20000000,"headTime":1700000000,"peers":25}' "$OUT" +check "synced: exit 0" "0" "$RC" +check "synced: calls" "eth_syncing eth_getBlockByNumber net_peerCount health_nodeStatus" "$CALLS" + +echo "Fresh start, no consensus client yet (live 2.2.2 reply)" +node_up +syncing '{"startingBlock":"0x0","currentBlock":"0x0","highestBlock":"0x0"}' +REPLY_eth_getBlockByNumber='"result":{"number":"0x0","timestamp":"0x67d80ec0"}' +REPLY_health_nodeStatus='"result":{"healthy":false,"messages":["Sync degraded","Peers: 6"],"errors":["SyncDegraded"],"isSyncing":true}' +run_script +check_report "awaiting" +check "awaiting: report" '{"version":1,"state":"syncing","phase":"Downloading block headers","height":0,"headTime":1742212800,"peers":25,"awaitingTarget":true}' "$OUT" +check "awaiting: exit 0" "0" "$RC" + +echo "Headers and state download up to 2.2 (head at genesis, target known)" +node_up +syncing '{"startingBlock":"0x0","currentBlock":"0x0","highestBlock":"0x1312d00"}' +run_script +check_report "headers and state" +check "headers and state: phase" '"Downloading headers and state"' "$(field .phase)" +check "headers and state: no progress or blocks" "null null null" "$(field '[.progress, .position, .target] | map(tojson) | join(" ")' | tr -d '"')" +check "headers and state: no awaitingTarget" "null" "$(field .awaitingTarget)" + +echo "State download from 2.3 (warp chunks, fixture of the old parser)" +node_up +syncing '{"startingBlock":"0x0","currentBlock":"0x0","highestBlock":"0x1312d00","warpChunksProcessed":2500,"warpChunksAmount":10000}' +run_script +check_report "state decimal" +check "state decimal: phase and progress" '["Downloading state",25]' "$(field '[.phase, .progress]')" + +syncing '{"startingBlock":"0x0","currentBlock":"0x0","highestBlock":"0x1312d00","syncedAccounts":"0x3e8","warpChunksProcessed":"0xd05","warpChunksAmount":"0x2710"}' +run_script +check_report "state hex" +check "state hex: phase and progress" '["Downloading state",33.3]' "$(field '[.phase, .progress]')" + +syncing '{"startingBlock":"0x0","currentBlock":"0x0","highestBlock":"0x1312d00","warpChunksProcessed":"0x270f","warpChunksAmount":"0x2710"}' +run_script +check "state almost done: progress below 100" '99.9' "$(field .progress)" + +syncing '{"startingBlock":"0x0","currentBlock":"0x0","highestBlock":"0x1312d00","warpChunksProcessed":"0x0","warpChunksAmount":"0x2710"}' +run_script +check "state just started: progress 0" '0' "$(field .progress)" + +echo "Healing from 2.3 (all warp chunks processed)" +syncing '{"startingBlock":"0x0","currentBlock":"0x0","highestBlock":"0x1312d00","healedTrienodes":"0x10","warpChunksProcessed":"0x2710","warpChunksAmount":"0x2710"}' +run_script +check_report "healing" +check "healing: phase without progress" '["Healing state",null]' "$(field '[.phase, .progress]')" + +echo "Catching up (head past genesis, more than 8 blocks behind)" +node_up +syncing '{"startingBlock":"0x0","currentBlock":"0x1312ad8","highestBlock":"0x1312d00"}' +REPLY_eth_getBlockByNumber='"result":{"number":"0x1312ad8","timestamp":"0x6553e000"}' +run_script +check_report "catching up" +check "catching up: report" '{"version":1,"state":"syncing","phase":"Catching up","height":19999448,"headTime":1699995648,"position":19999448,"target":20000000,"peers":25}' "$OUT" + +syncing '{"startingBlock":"0x1312d00","currentBlock":"0x1312cf7","highestBlock":"0x1312d00"}' +run_script +check "catching up: 9 blocks behind" '["Catching up",19999991,20000000]' "$(field '[.phase, .position, .target]')" + +echo "Old bodies and receipts at the head (fixture of the old parser)" +node_up +syncing '{"startingBlock":"0x0","currentBlock":"0x1312d00","highestBlock":"0x1312d01"}' +run_script +check_report "old receipts" +check "old receipts: report" '{"version":1,"state":"syncing","height":20000000,"headTime":1700000000,"peers":25,"background":"Downloading old blocks and receipts"}' "$OUT" +check "old receipts: exit 0" "0" "$RC" + +syncing '{"startingBlock":"0x0","currentBlock":"0x1312cf8","highestBlock":"0x1312d00"}' +run_script +check "old receipts: 8 blocks behind still counts as the head" '[null,"Downloading old blocks and receipts"]' "$(field '[.phase, .background]')" + +echo "Health issues" +node_up +syncing '{"startingBlock":"0x0","currentBlock":"0x0","highestBlock":"0x1312d00"}' +REPLY_health_nodeStatus='"result":{"healthy":false,"messages":[],"errors":["ClUnavailable","NoPeers","SyncDegraded","LowDiskSpace","NotProcessingBlocks"],"isSyncing":true}' +run_script +check_report "issues" +check "issues: mapped, NoPeers and SyncDegraded left out" '["Consensus client not connected","Low disk space"]' "$(field .issues)" + +REPLY_eth_syncing='"result":false' +REPLY_health_nodeStatus='"result":{"Healthy":false,"Messages":[],"Errors":["LowDiskSpace"],"IsSyncing":false}' +run_script +check_report "issues capitalised" +check "issues: capitalised Errors field, also when synced" '["synced",["Low disk space"]]' "$(field '[.state, .issues]')" + +REPLY_health_nodeStatus='"result":{"healthy":true,"messages":[],"errors":null,"isSyncing":false}' +run_script +check "issues: null errors" 'null' "$(field .issues)" + +REPLY_health_nodeStatus='"error":{"code":-32601,"message":"The method health_nodeStatus is not supported"}' +run_script +check_report "health disabled" +check "health disabled: report still complete" '{"version":1,"state":"synced","height":20000000,"headTime":1700000000,"peers":25}' "$OUT" + +echo "Node stops answering half way" +node_up +syncing '{"startingBlock":"0x0","currentBlock":"0x0","highestBlock":"0x1312d00"}' +unset REPLY_eth_getBlockByNumber +run_script +check_report "partial" +check "partial: phase without block or peers" '{"version":1,"state":"syncing","phase":"Downloading headers and state"}' "$OUT" +check "partial: stops after the first failure" "eth_syncing eth_getBlockByNumber" "$CALLS" +check "partial: exit 0" "0" "$RC" + +node_up +unset REPLY_net_peerCount +run_script +check "partial: no peers, no health call" "eth_syncing eth_getBlockByNumber net_peerCount" "$CALLS" +check "partial: block kept" '[20000000,null]' "$(field '[.height, .peers]')" + +echo "Unexpected eth_syncing reply" +node_up +syncing 'null' +run_script +check_report "unexpected" +check "unexpected: syncing without phase" '["syncing",null]' "$(field '[.state, .phase]')" + +syncing '{"currentBlock":"garbage"}' +run_script +check_report "garbage numbers" +check "garbage numbers: treated as 0" '["Downloading block headers",true]' "$(field '[.phase, .awaitingTarget]')" + +echo +echo "Passed: $PASS, failed: $FAIL" +[ "$FAIL" -eq 0 ] From 9b09929b5cad8871df4bd05488e3e03317b53eb9 Mon Sep 17 00:00:00 2001 From: 3alpha <15694175+3alpha@users.noreply.github.com> Date: Mon, 30 Nov 2026 15:31:42 +0100 Subject: [PATCH 2/2] ci: limit the test workflow token to read access --- .github/workflows/node-status-test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/node-status-test.yml b/.github/workflows/node-status-test.yml index 4c5ad7a..2d30af8 100644 --- a/.github/workflows/node-status-test.yml +++ b/.github/workflows/node-status-test.yml @@ -3,6 +3,9 @@ name: Node status test on: pull_request: +permissions: + contents: read + jobs: test: runs-on: ubuntu-latest