Skip to content

fix(skywire-cli): default uptime queries to v3 to match the CXO mirror - #4075

Merged
0pcom merged 1 commit into
skycoin:developfrom
0pcom:fix/cliuptime-default-v3
Aug 22, 2026
Merged

fix(skywire-cli): default uptime queries to v3 to match the CXO mirror#4075
0pcom merged 1 commit into
skycoin:developfrom
0pcom:fix/cliuptime-default-v3

Conversation

@0pcom

@0pcom 0pcom commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Problem

The shared cliuptime table command (skywire cli ut {sd,mdisc,tpd}) defaulted --v to v2, but the deployment only mirrors the v3&days=30 /uptimes response over CXO. So every default ut query CXO-missed and fell back to live dmsg, producing transient dmsg 202 errors and unnecessary load.

Note: there is no standalone uptime-tracker service anymore — uptime is per-service / TPD-integrated, and v3 is the shape those endpoints publish and mirror.

Fix

Default --v to v3 in the shared table command (covers sd/mdisc/tpd since they all use the same factory). v1/v2 remain selectable via --v for the older response shapes; the v3 payload still carries the daily percentages the table renders. Help text and the tpd Long/header comments updated.

Validation

  • go build ./cmd/skywire-cli/ clean.
  • skywire cli ut tpd --stats now issues /uptimes?v=v3 and returns data (1014 visors in a live run); with a running visor this hits the CXO cache instead of live dmsg.

Backward-compatible: --v v1 / --v v2 still work.

@0pcom
0pcom force-pushed the fix/cliuptime-default-v3 branch from c564e4b to 85548f2 Compare August 22, 2026 14:16
The shared cliuptime table command defaulted --v to v2, but the
deployment only mirrors the v3&days=30 /uptimes response over CXO. So
`ut sd/mdisc/tpd` always CXO-missed and fell back to live dmsg,
producing transient 'dmsg 202' errors. Default to v3 so queries hit the
CXO cache. v1/v2 stay selectable via --v for the older response shapes.

(There is no standalone uptime-tracker service anymore; uptime is
per-service/TPD-integrated, and v3 is what those endpoints publish.)
@0pcom
0pcom force-pushed the fix/cliuptime-default-v3 branch from 85548f2 to 9c5c7b9 Compare August 22, 2026 14:55
@0pcom
0pcom merged commit c3da752 into skycoin:develop Aug 22, 2026
27 of 28 checks passed
@0pcom
0pcom deleted the fix/cliuptime-default-v3 branch August 24, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant