Repository navigation
Conversation
added 2 commits
November 28, 2026 03:09
Normalize whitespace-only and unusable "dev" broker version tokens to "" in brokerVersionToken, and have broker self-heartbeats update stored b.Version even when the normalized version is empty so a stale tag is cleared instead of kept. With #7430, clearing a stale stored version to empty turns a false broker_version_mismatch warning into a truthful broker_version_unknown warning. User-authenticated heartbeats continue to leave the stored version unchanged. For #6382.
…date docs Include Server.version in duration backstop stop heartbeats so broker-self heartbeats from reportDurationBackstopStop do not clear the broker's stored version under the new empty/omitted clearing rule, and update docs-site API reference and workstation dashboard docs to reflect that omitted, empty, or dev heartbeat versions clear stale stored versions. Addresses review-1 R1 and R2 for #6382.
ptone
force-pushed
the
scion/small-issues-6382
branch
from
November 28, 2026 03:59
9e8e25e to
c946a99
Compare
Owner
Author
|
Merged upstream in GoogleCloudPlatform#5787 (merge commit |
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.
Fixes #6382.
Summary
"dev"(case-insensitive) Runtime Broker version tokens to""inbrokerVersionToken(pkg/hub/broker_version.go), covering both writes (heartbeat, join, deprecated project registration) and reads (health summary, broker list/get display, version comparison).handleBrokerHeartbeat(pkg/hub/handlers_runtime_brokers.go) so broker-authenticated self-heartbeats (brokerSelf) refreshb.Versioneven whenheartbeatVersion == "", clearing any stale stored tag instead of keeping it. User-authenticated heartbeats continue to leaveb.Versionuntouched.""turns a falsebroker_version_mismatchattention item into a truthfulbroker_version_unknownwarning until the broker reports a usable version.Version: s.versioninServer.reportDurationBackstopStop(pkg/runtimebroker/duration_backstop_sweep.go) — audited allhubclient.BrokerHeartbeatsenders across the repo (HeartbeatService.buildHeartbeatandreportDurationBackstopStop) so broker-self heartbeats never unintentionally clear the stored version.docs-site/src/content/docs/reference/api.mdanddocs-site/src/content/docs/workstation/dashboard.mdto reflect that omitted, empty, ordevbroker-self heartbeat versions clear the stored version to unknown.pkg/hub/broker_version_test.go,pkg/runtimebroker/duration_backstop_sweep_test.go, andpkg/store/entadapter/runtime_broker_refresh_test.go.Verification (on rebased head
c946a998over upstream37d46b86)make fmt-check— PASSmake check-docs-links— PASS (0 violations)go build -buildvcs=false ./pkg/hub ./pkg/runtimebroker ./cmd/scion— PASSgo test -buildvcs=false -timeout 20m ./pkg/runtimebroker/...— PASSgo test -buildvcs=false -run TestRefreshRuntimeBrokerState ./pkg/store/entadapter— PASSmake vet-hub-shard SHARD=4— PASSmake test-hub-shard SHARD=4 NOSQLITE=1— PASSmake test-hub-shard SHARD=4— PASSGOGC=40 golangci-lint run --new-from-rev=upstream-main --concurrency=1 ./pkg/runtimebroker/... ./pkg/store/entadapter/...— PASS (0 issues)GOGC=40 golangci-lint run --new-from-rev=upstream-main --concurrency=1 --tests=false ./pkg/hub— PASS (0 issues)