Skip to content

fix: fail the run when no selected server answers - #21

Open
BKPepe wants to merge 1 commit into
masterfrom
fix/unreachable-server-exit
Open

BKPepe wants to merge 1 commit into
masterfrom
fix/unreachable-server-exit

Conversation

@BKPepe

@BKPepe BKPepe commented Sep 27, 2026

Copy link
Copy Markdown
Member

Depends on librespeed/speedtest-cli#153, the same change for the Go client.

When every selected server is unreachable (for example a cached
--local-json list on a link that is down), the client printed an empty
report (null, a result event carrying null, or an empty CSV line) and
exited 0 with nothing on stderr, so a wrapper could not tell why the
measurement failed.

When all selected servers are down, the run now exits 1 and reports
each server's failure to stderr instead of emitting an empty report.
Runs with at least one successful server still exit 0. ServerStatus
keeps up and gains down_reason, so code that builds it with every
field listed needs the new one.

Until the parity tests' pinned Go build includes
librespeed/speedtest-cli#153, the parity cases declare this as a difference (Why::DownServerFails), and the README
says so; both go away once the pin moves.

Tested with cargo fmt, clippy -D warnings, a native-tls check and cargo
test, including the parity run against the Go client.

When all selected servers are down, exit 1 and report each server's
failure to stderr instead of emitting an empty report.

Runs with at least one successful server still exit 0. ServerStatus
keeps up and gains down_reason.
Copilot AI lite review requested due to automatic review settings September 27, 2026 09:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

This branch has not been deployed

No deployments
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.

2 participants