You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support approximate IP-derived location metadata - #60
Adds Android support for approximate IP-derived location metadata, aligning with the broader ISP/location work in librespeed/speedtest#881 while preserving legacy display text and raw telemetry payloads.
Changes:
Parses optional location fields and coordinate fallbacks from getIP responses.
Displays ISP, approximate place, and coordinates in live and result views.
Adds English/Czech labels and tests for parsing, display formatting, and telemetry preservation.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The parser still lets out-of-range coordinates block valid fallbacks and suppresses usable place metadata when coordinates or location fields are missing or malformed.
These checks hide valid partial location data: the PHP tests in librespeed/speedtest#882 explicitly preserve place metadata when loc is malformed and country-only metadata for offline fallback. Build the place from available fields and validate/render coordinates independently, so missing components do not suppress all location rows. Add regression cases for places without coordinates and missing city/region fields.
Out-of-range finite coordinates suppress valid fallbacks: with latitude=91, lat=38.1234, and longitude=-77.1234, the parser accepts 91 and later discards the location instead of using lat. This also blocks nested-coordinate and loc fallbacks. Check each candidate against its latitude/longitude bounds before returning it, and add regression coverage for invalid primary values with valid fallbacks.
The Android implementation now handles structured location metadata, finite coordinate fallbacks, compact-screen layout, telemetry preservation, and privacy labels. Focused tests and assembleDebug pass. The PR remains open and mergeable and is linked to librespeed/speedtest#881.
Latest follow-up fix: commit a1fdb7b (Fix partial IP location fallbacks).
Addressed findings:
Place metadata is now built independently from city, region, and country fields, so place-only, country-only, missing-city/region, and malformed-loc data remain usable.
Coordinates are rendered independently from place metadata; coordinate-only responses remain usable.
Latitude and longitude candidates are each finite and bounded for primary fields, aliases, nested coordinates, and loc fallbacks; invalid primary values no longer block valid fallbacks.
Added regressions for place-only, missing place fields, coordinate-only, alias, nested, and loc fallback cases.
Validation: focused getIP/location/telemetry unit tests passed, and assembleDebug passed. No status checks are currently reported. The PR remains open and mergeable. Existing inline review threads are resolved/addressed; the latest review did not add a new unresolved inline thread.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The new ISP row lacks updated screenshot baselines, risking verification failures, and independent coordinate fallbacks can combine sources into a location the server never supplied.
The existing screenshot fixture in ScreenshotTest.kt:60 already includes Example ISP, so this adds a visible ISP row to all three result-screen screenshots and shifts the content below it. The PR leaves result_screen.png, result_screen_light.png, and result_screen_cs.png unchanged, while .github/workflows/build.yml:32 runs screenshot verification against those baselines. Please regenerate and include the three result-screen goldens so the intentional layout change does not fail screenshot verification.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The added ISP, location, and coordinate rows leave three result-screen golden images outdated, causing CI screenshot verification to fail until the baselines are regenerated, committed, and verified.
All PR 60 review items are addressed: coordinate fallbacks stay within one complete source pair, partial place metadata and coordinate-only data remain usable, screenshot goldens are committed and passed a forced rerun, and no unresolved inline threads remain.
Fresh validation passed: location/getIP/telemetry/export and three result-screen screenshot tests, plus assembleDebug. No status checks are currently reported. PR 60 remains open and mergeable; no merge or close was performed.
Linked cross-repo status: LibreSpeed issue #881 remains open and PR #882 has no unresolved review threads in the latest audit.
@billmcilhargey Android latest head 52adeab is ready for the coordinated re-review. The engine preserves processedString/raw telemetry and now formats additive approximate location/Lat/Long output without browser/device GPS collection. PR remains open and mergeable.
@billmcilhargey Fresh latest-head review complete. No code change or additional commit was needed; the latest pushed head is 52adeab. A forced rerun passed location/getIP/telemetry/export and all three result-screen screenshot tests, and assembleDebug passed. All 4 inline threads are resolved, no checks are currently reported, and PR 60 remains open and mergeable. Issue #881 remains open; linked PR #882 has no unresolved review threads in the latest cross-repo audit.
@billmcilhargey Latest Android PR head 52adeab passed forced location/getIP/telemetry/export/screenshot tests and assembleDebug. The PR remains open and mergeable.
@billmcilhargey Fresh latest-head review complete. No code change or additional commit is needed; the pushed head remains 52adeab. The full rerun of the Android unit/screenshot suite passed, and assembleDebug passed. All 4 PR 60 inline threads are resolved and no new unresolved comment or formal review request was found. PR 60 remains open and mergeable. Linked LibreSpeed PR 882 has 13 resolved threads and no unresolved threads; issue 881 remains open.
Latest-head status: Android PR 60 is open and mergeable at 52adeab, with 0 unresolved review threads. No merge or close.
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
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.
Summary
locationmetadata.Verification
Context
Tracked by librespeed/speedtest#881: which covers ISP and approximate IP-derived location metadata.