Repository navigation
Replace LibreSpeed with a built-in M-Lab engine (0.2.0) - #2
Merged
Merged
Conversation
Platform-independent library: ISpeedEngine and neutral SpeedResult, Locate v2 client, MSAK throughput1 (multi-stream) and ndt7 over ClientWebSocket, steady-state throughput tracking, TCP-handshake latency/jitter, local consent and daily fair-use limit. JSON via source generation; AOT/trim compatible.
Covers throughput math, latency stats, Locate parsing, measurement parsing, query building, consent store and a loopback WebSocket fake server exercising download/upload phases.
- New page flow: first-run M-Lab data-policy consent (stored locally), live Mbps during download/upload, cancel, result with latency, jitter, loaded latency/bufferbloat and a Copy result command. - Local fair-use limit of 40 tests per 24 hours (M-Lab AUP). - Remove the bundled LibreSpeed CLI, its parser and Prepare script. - Reference NetSpeed.Core; add Core and tests to the solution. - Version 0.2.0.
Debug workflow gains a Linux unit-test job that gates the Windows MSIX builds; the release workflow runs the tests before packaging.
Add PRIVACY.md (required by the M-Lab AUP for third-party clients), rewrite README engine and limits sections, update SECURITY.md, THIRD_PARTY_NOTICES.md, CHANGELOG.md and PROJECT_INFO.txt.
A real MSAK run showed ~1 s with no data at the end of each phase (server finished, waiting for close), which pulled the headline download value from ~1720 to 1535 Mbps. Both the steady-state and average figures now end at the first sample that reached the final byte count.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 02a027281d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
- Each stream starts reading (or uploading) as soon as its own WebSocket handshake completes, instead of waiting for every stream to connect. The phase clock starts at the first connection and each upload stream sends for the full duration from its own start. A slow or failing stream no longer delays or distorts the others (msak-server starts its timed test at upgrade). - A phase that connected but closed before any payload is now a ServerUnavailableException, so the engine tries the next server or falls back to ndt7 instead of reporting 0 Mbps. - Loopback tests for both cases.
Client bytes queued into a socket the server immediately closed were counted as transferred, making the empty-phase check flaky for uploads.
- Developer name g_ in the UI, manifest display name, LICENSE and PRIVACY.md. Package identity and publisher CN are unchanged: they must match the signing certificate and existing installs. - Remove SECURITY.md, THIRD_PARTY_NOTICES.md, PROJECT_INFO.txt and scripts/Install-Package.ps1; condense README. - CHANGELOG: 0.2.0 dated 2026-11-27.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Replaces the bundled LibreSpeed CLI with a built-in C# client for Measurement Lab (M-Lab), so NetSpeed measures fast connections (1–10 Gbps) better and ships without third-party executables. Version 0.2.0.
Engine (
NetSpeed.Core, new, platform-independent, AOT/trim compatible)ISpeedEnginewithIProgress<SpeedProgress>and cancellation; engine-neutralSpeedResult.HttpClientandClientWebSocket, no external processes.Extension UI
Removed
scripts/Prepare-LibreSpeed.ps1and the CI download steps.Docs and CI
PRIVACY.md(the M-Lab AUP requires a published privacy policy for third-party clients); README, SECURITY, THIRD_PARTY_NOTICES, CHANGELOG and PROJECT_INFO updated.Verification
Not yet verified
PRIVACY.md.