Repository navigation
deps: go-sparkplugb v0.10.0; host and app print one death per edge node death (v0.8.0) - #44
Merged
Merged
Conversation
…de death (v0.8.0) go-sparkplugb v0.10.0 ignores an NDEATH of an edge node that is already offline: the will that the broker publishes after an MQTT 5.0 edge node's NDEATH and DISCONNECT 0x04 (Sparkplug B 3.0, 6.4.25), or a redelivery. host and app therefore no longer print a second [NDEATH] line (or JSON line) for one death. TestSecondNDEATHPrintedOnce republishes the edge node's own NDEATH and checks one line for host, app and app --json; it fails on v0.9.0. Also from v0.10.0: a connection lost while connecting ends the command with exit 4; Ctrl+C during the primary-host walk ends the walk. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
What
go get,go mod tidy).PahoTransportand nomqtt5path, so the go-sparkplugbmqtt5module is not taken.Behaviour for users (RELEASE.md v0.8.0)
hostandappno longer print a second[NDEATH]line for one death. The same holds forapp --json.mqtt5/v0.2.0edge nodes now send that DISCONNECT, so the case is ordinary.edge,hostandappwith exit 4 andconnect: …. Before, the command could go on with a connection that had ended.edge --primary-host, Ctrl+C during the walk ends the walk.mqtt.WillDisconnecter).Evidence
TestSecondNDEATHPrintedOnce(cmd/ndeath_test.go):host,appandapp --json.-race) and fails on v0.9.0 with "deaths of g/n printed 2 times, want 1".make check: green locally, including lint, vuln and docs-check. Coverage is 98.9% (gate 90%).🤖 Generated with Claude Code