Repository navigation
fix(daemon-client): name both versions and the side to upgrade on an RPC protocol mismatch - #5017
Conversation
…RPC protocol mismatch
|
Thanks for the clear message change. The change at 75fb80a is ready: the new message names both versions and protocols and says which side to upgrade, and the code looks correct. Not blocking, and these can be taken or left: a proxy whose /health reports The Smoke Tests job failed in Install Linux desktop dependencies, where No conflicts. Not verified here: the tests were not run locally, and no live run against an older remote daemon was done. The loopback tests use the production health reader, which is enough for a message-only change. |
Summary
The remote RPC protocol refusal said only "incompatible", so agents had to dig into
detailsto learn which versions differed and what to upgrade. The message now names the client and remote versions and protocols, and says which side to upgrade. When the mismatched link is the daemon behind a proxy, it names that daemon, or tells you to upgrade both the client and the proxy. A client-localdetails.upgradeSide(remote,clientorclient-and-proxy) carries the same decision.The wire format is unchanged; the ledger ack is updated.
Before / after
From tests (this needs an older remote daemon, so there's no local device run). Client 0.21.41 (protocol 3) against a remote daemon 0.21.36 (protocol 2):
Validation
75fb80a78,check:affected --run --head,exactCommit: true. Every gate passes exceptunit, whereupload-http-deadlineandcommitted-source-treefail the same way on clean main on this macOS host.check:daemon-wire-compatpasses against v0.21.41 with the protocol unchanged.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.