Repository navigation
Release v0.79.8 — one counted status per node, evicted deaths dropped, re-interview and removal subscriptions released - #182
Merged
Merged
Conversation
…scription commands released; state reads need a socket
… subscription commands, state reads
…8 (19 retired, 22 added, 5 re-anchored)
…6 §11.2, version 0.79.8, README counts
…start tests; harness entry
….6 §11.12 and CHANGELOG say so; counts
…tus, never a replacement; tests; harness entries; docs
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.
Summary
flapAccum, and the death queue the auto-ping runner drains) are now counted against one status that every observation moves: a status event on any of the node's status feeds, and each roster poll's reading unless a status event heard after that poll was sent may be the newer. It survives reconnects, re-arms, a node's own re-subscribe and failed status subscribes; it is cleared at the node's eviction and at a home id change, and a roster that shows another network counts nothing. This replaces the per-feed seeds, the status carried past a node's own re-subscribe (releaseHeard,statusUncounted) and the rule that the roster counted only nodes without a live status feed. Fixed by it:zwave_js/refresh_node_infoandzwave_js/remove_failed_nodeas subscriptions (connection.subscriptions[msg id], set before the driver await; an error answer drops only the listeners).haWsClient.sendSubscription()sends them assend()does and releases the id on the same socket once any answer arrives or at the reply timeout;zwaveActionsroutes both verbs through it./^HA WS timeout/is still an unknown outcome.fetchEntityStates.Crossing-count oracle: v0.79.7 (e869147) vs this release (7d1b9f9), same seeds
8 configurations × 47,000 seeds (FIFO, FIFOB, ACT, DROP, RRR, STRAY, STRAY0, STRAYB: the v0.79.7 final check's table), the v0.79.7 interleaving fuzz with its true-crossings oracle, extended for this release:
Lwhen observations that reached the add-on bracket it (one showed the old side since the node's previous crossing, one the new side before its next), elseLu(no observer could count it);Q:evictedLeft: a death of an evicted segment still queued at settle;A5: a state read started with the socket down;FZ_TRUTH=v797and reported below.Seed-classes (a seed counts once for each class it shows, summed over a row's classes):
L:*:downX:*L:A:make:upQ:evicted*/Q:evictedLeftL:*:upQ:queuedAlive/Q:twoQueuedQ:deadNoneQueuedQ:queuedUnknownLu:*A5/F1/F2No class appears on this release that is absent on e869147.
Lumoves by about 1% (instances fall, seeds showing one rise): 12,936 of the 47,000 trajectories diverge, because the fuzz's random choices follow the add-on's requests, and the state-read guard changes their timing. Per-node re-subscribes: 41,006 vs 40,998. The 110Q:deadNoneQueuedare nodes first read Dead (a first observation only sets the count, as before). Of the 35 remainingLseed-classes, the two traced (ACT 30380, STRAYB 420444) are a roster reading skipped because a status event heard after its send may be newer, when the reading showed a change no feed delivered (DOCS §2.5 Limits); the rest were not traced.Under the v0.79.7 oracle's definition (Unknown = not Dead), on the same seeds:
X3,454 → 0,Q:evicted*7,202 → 0,Q:twoQueued2,676 → 0,L:*:down7,199 → 602 (273 of them restarts),L:A:make4,021 → 334, andL:A:restart1,120 → 1,094, which this release leaves uncounted on purpose (a restart's Dead → Unknown is no revival); itsQ:queuedAlive1,920 are all nodes still Unknown. On those ids, withLandLutogether as the v0.79.7 check reported them, FIFO class (a) goes from 1,093 (revivals) and 1,580 (deaths) of 6,000 seeds to 872 and 1,116; under the v0.79.8 truth, observable ones (L:*:down) number 1 across all 47,000 seeds.Verification
sendSubscriptiondoes not exist there; the rest at their own assertion). The 3 that pass there pin behaviour v0.79.7 already had and a candidate of this release could lose: an Alive node read Unknown across a restart counts nothing, a node first read Unknown and then Dead counts its death, and an evicted node's cleared death stays for the runner.docs/CHANGELOG-history.md;rotate-changelog.mjs --checkpasses and the frozen pin is unchanged.🤖 Generated with Claude Code