Skip to content

fix(network): fall back to Cloudflare speedtest when fast.com is unreachable - #11895

Open
szaidi-code wants to merge 1 commit into
omacom:quattrofrom
szaidi-code:fix/network-speedtest-fallback
Open

szaidi-code wants to merge 1 commit into
omacom:quattrofrom
szaidi-code:fix/network-speedtest-fallback

Conversation

@szaidi-code

Copy link
Copy Markdown

Fixes #11816

Description

omarchy-network-speedtest currently depends entirely on Netflix's api.fast.com. In regions where Netflix does not operate Open Connect CDN nodes (or when the API returns HTTP 403 / is geo-blocked), omarchy-network-speedtest down and up fail immediately with Failed to fetch speed test endpoints.

Changes

  1. Added --max-time 3 to the fast.com API probe so it doesn't block the UI indefinitely if the connection hangs.
  2. If fast.com API endpoints are unavailable or return an error, fall back to Cloudflare's geo-neutral speed test endpoints (https://speed.cloudflare.com/__down?bytes=25000000 for download and https://speed.cloudflare.com/__up for upload), which require no auth and operate globally.
  3. Added test/shell.d/network-speedtest-test.sh verifying argument parsing and fallback activation when fast.com is unreachable.

Verification

  • Tested locally and verified traffic worker throughput on both fast.com and Cloudflare fallback endpoints.
  • Ran test/shell.d/network-speedtest-test.sh on host and inside Arch Linux container (CT 201) — 4/4 checks pass.
  • Full ./test/cli passes.

…achable

Fixes omacom#11816

fast.com returns HTTP 403 or fails to respond in regions outside the US
where Netflix does not operate Open Connect CDN nodes, breaking
omarchy-network-speedtest down and up.

Add a 3-second timeout on the fast.com API probe and fall back to
Cloudflare's geo-neutral speed test endpoints (https://speed.cloudflare.com/__down
and /__up) when fast.com endpoints cannot be retrieved.

Add test/shell.d/network-speedtest-test.sh covering CLI argument validation
and fallback behavior.
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.

omarchy-network-speedtest fails with 403: fast.com API is geo-blocked outside US

1 participant