GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Tags · FrankRay78/NetPace
Tags
0.30.0Threshold Exit Codes (#565) * Refs #556: check a run against download, upload and latency targets --min-download, --min-upload and --max-latency each set a target a single run is held to. A missed target writes one line per miss to standard error, naming the measurement, the figure measured and the target, and the run exits 3, distinct from the 0 that means the line was fine and the 1 that means NetPace itself did not work. The result written to standard output or --file is the same text with the targets as without them, in every output format. A target takes any unit NetPace writes a speed in, with the scale prefix read in any case and bits told from bytes by case, and is read the same whatever --unit, --unit-system and --unit-scale say. A value with no unit, an unknown unit or a value that is not positive is refused with a workable example, as is a target alongside --loop, --count above 1, or the --no- switch for its own test, all before any test runs. Co-Authored-By: Claude Opus 5 <[email protected]> * Refs #556: record why a missed target exits 3 and reads its units in the CLI CIR row: Architectural decision that constrains future work Co-Authored-By: Claude Opus 5 <[email protected]> * Refs #556: apply /gaffer:verify review findings Report the target to the decimals it takes to state it exactly, so a near-miss line can no longer read as a figure above the minimum it missed. Refuse a suffix that folds the bits-or-bytes letter away, such as 50MBPS, rather than silently reading it as the eight-times byte target. Guard the divisor a written figure uses. Give --min-upload's help the same example its refusal message names. Correct four comments and two guide sentences that described an all-failed test, a lost outcome and the suffix round-trip test as something other than what the code does. Cover what three surviving mutations showed the suite did not reach: the default writer's latency, the miss lines a --fail-on run still writes, and the decimal escalation behind a near miss. Settle the cancelled-run test's ordering in the test instead of against the wall clock. Co-Authored-By: Claude Opus 5 <[email protected]> * Refs #556: cover the animated default output's latency target The default-output latency test ran on a host that cannot animate, so it went through the simple writer and never reached the live display's outcome. It now runs at an animating terminal, beside a met-target case. Both fail when that writer hands the check no latency. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Refs #556: round a fractional target away from the side it guards A target was rounded to the nearest whole fixed unit, so a 99.5 ms maximum became 100 ms and passed a 100 ms latency. A minimum now rounds up and a maximum down, which is exact because every measured figure is a whole number of milliseconds or bits per second. RED: A_Fractional_Target_Just_Past_The_Measured_Figure_Is_Missed exited 0 for 99.5ms and 8.0004Kbps; GREEN: both exit 3. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Refs #556: say what a target miss and a refused target mean An unmeasured figure was reported as above or below its target; it now says only that the target is missed. A speed refused for its unit says that b is bits and B is bytes, which is what decides 50MBPS. The repeating-run refusal says target, as --help and the guide do, and names Windows Task Scheduler beside cron and systemd. The --min-download help names --unit-scale among the options that do not change how it is read. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Refs #556: keep the --loop refusal test from hanging, and name the fault test truly The --loop refusal test now gives up after ten seconds, so a refusal that stopped working fails the test instead of looping forever. The fault test never reached a target check, since the file fails before anything is measured, so it is renamed for what it shows. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Refs #556: write a missed target after the records of the test that missed it Under --diagnostics the miss lines reached the error stream before the test's own records, so a captured log read the verdict before the measurement. The records are now flushed first, as they are before a failed test's error. RED: A_Missed_Threshold_Follows_The_Records_Of_The_Test_That_Missed_It found the miss as the first line; GREEN: only run.end follows it. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Refs #556: bring the exit-code statements in line with targets The guide, the CIR and three code comments still said a network outcome always exits 0 and that 0, 1 and 3 are the only codes NetPace returns. They now name the target opt-in beside --fail-on, the guide says an unreachable server or an empty server list misses every target, the error-stream section lists miss lines, and the code list is scoped to the codes NetPace itself chooses, since a second Ctrl+C or a service manager can end the process with another. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]> 0.29.0Steady Table Three Significant Figures (#562) * Refs #558: hold the table steady and write speeds to three significant figures Speeds now read to three significant figures in default, minimal and simple output: below 10 two decimal places, from 10 to below 100 one, and from 100 up a whole number. Rounding is re-banded so no figure shows four significant figures, and an auto-scaled speed that rounds up to its unit system's divisor steps into the next unit rather than reading 1000 of the one below. A zero speed still reads as a bare 0. The live table now holds each figure column's width between draws: the Speed column opens as wide as any auto-scaled speed can be, Latency and Jitter reserve three digits and their unit, and a column widened by an outsized value never narrows again for the rest of the run. Widths belong to the table instance, and a run builds its own, so nothing carries between runs under --count or --loop. Breaks scripts reading --simple or --minimal, and NetPace.Core consumers calling the speed-formatting extensions: all get fewer digits. GetBitsPerSecond, CSV and JSON are unchanged. Co-Authored-By: Claude Opus 5 <[email protected]> * Refs #558: update the user guide for three significant figures Every speed figure in the guide's default, minimal and simple examples now reads as the new format writes it, and the default table examples are redrawn at the column widths the reserve produces. The claim that every column sizes itself to its widest current value was made false by the change and is replaced with what the columns now do. The simple section says what precision a script gets, and where to read the unrounded figure. Co-Authored-By: Claude Opus 5 <[email protected]> * Refs #558: record why speeds carry three significant figures CIR row: Architectural decision that constrains future work (public API, dependency direction, framework choice) Co-Authored-By: Claude Opus 5 <[email protected]> * Refs #558: apply /gaffer:verify review findings Correct the documentation claims the review found false, drop a duplicated theory row, and cover the IEC band the Speed column's reserve is sized for. - A speed's three bands give 8.00, 18.7 and 245, so figures are not all one width; say they are never wider than four characters, which is what lets a column reserve a width. Corrected in the library remarks, USER_GUIDE.md and the test class doc. - GetBitsPerSecond rounds to the nearest whole bit per second, as its own summary says, so "unrounded" was wrong in the library remarks, USER_GUIDE.md and the change-intent record. - A latency going from two digits to three never shifted the table: "Latency" is seven characters and "Jitter" six, and a column is floored at its heading. Dropped that example, and noted that the milliseconds reserve is what those headings already give. - Done and Failed reserve nothing, so the class doc no longer claims every figure column opens wide enough for any figure it expects. - WidestSpeedFigure is four characters at most, not exactly four, and a pinned scale is unbounded and widens the column instead. - DecimalPlacesFor holds to three significant figures below 1000 only. - Removed the duplicate [InlineData(124_950, 1000, "1.00 Mbps")], filed under a band it does not belong to and already covered by the fact for rounding up to the SI divisor. - Added an IEC auto-scaled table test through the 1000-1023 Kibps band. SI auto-scaling caps at 999, so nothing rendered the four-figure reading the reserve exists for; narrowing WidestSpeedFigure to 3 now fails this test, and previously left the suite green. Co-Authored-By: Claude Opus 5 <[email protected]> * Refs #558: hold the mark column's width on a console without Unicode Without Unicode a running row's spinner frame is one character and OK is two, so the mark column widened as the first row settled and moved every column to its right. Pad every mark to the widest the console can show. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Refs #558: qualify three-figure claims for pinned scales, trim the CIR Address review notes: the class remarks and user guide now say the three significant figures hold under auto-scaling, and what a pinned --unit-scale writes instead; drop an assertion the snapshot already holds; trim the change-intent record toward the 150-word shape. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Refs #558: describe pinned-scale decimal places accurately A pinned --unit-scale uses the same decimal places by figure size as auto-scaling, not always two; and three figures are only guaranteed, not exclusive, under auto-scaling. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Refs #558: redraw the Halloween theme snapshots at three significant figures The Halloween theme landed on main after this branch's snapshots were redrawn, so its speed-test and partly-finished-table snapshots still held the old figures and column widths. They now match their green twins. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Refs #558: redraw the error-path snapshots at three significant figures Errors To Standard Error split these snapshots into stdout and stderr files on main, so the rebase kept main's copies with the old figures and column widths. They now carry this branch's format, as every other snapshot does. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]> 0.28.0Winget Package (#395) * Refs #390: submit a winget package for each release Publish NetPace to the Windows Package Manager community repository as FrankRay78.NetPace (moniker netpace), so Windows users install with one command and reach each new release with `winget upgrade`. The package is a zip manifest with a portable nested installer wrapping the existing Windows AOT release archives for x64 and arm64; PortableCommandAlias puts `netpace` on the path without an installer and removes it on uninstall. `winget-submit.yml` runs wingetcreate against the published release and opens the pull request on microsoft/winget-pkgs. It is its own workflow, triggered by release-binaries.yml completing rather than by the tag push, because the installer URLs it reads do not exist until the archives are attached. A failed submission raises an issue, because a workflow_run failure emails nobody. `winget-release-assets.sh` resolves installer URLs off the release's own asset list and prints nothing unless both architectures resolve, so a missing archive or a drifted naming convention stops the submission rather than producing a manifest that 404s. RED-GREEN (configuration/tooling, Constitution I): - `bash scripts/winget-release-assets.tests.sh` before the script existed: "RESULT: 7 passed, 9 failed" (rc=1, every case reporting "winget-release-assets.sh: No such file or directory"). After: "RESULT: 16 passed, 0 failed" (rc=0). - `actionlint .github/workflows/winget-submit.yml` on the first draft: "winget-submit.yml:156:0: could not parse as YAML: yaml: line 156: could not find expected ':' [syntax-check]" (rc=1). After the fix: rc=0. The repo-wide run is unchanged from its baseline — the pre-existing softprops/action-gh-release@v1 finding in release-binaries.yml only, which docs/change-intent-records/2026-09-26-automated-prespec-confirmation.md already records as a separate mission. - `dotnet build ./src` clean, `dotnet test ./src` 325 + 493 passed, 0 failed, 0 skipped. Every committed *.tests.sh matrix passes. What breaks, and for whom: nothing. No CLI option, output format or NetPace.Core member changes; the GitHub Release archives are published exactly as before. The automation needs one-off setup (a winget-pkgs fork, a WINGET_PKGS_TOKEN secret, and the first manifest submitted by hand) documented in docs/RELEASING.md; until that is done the workflow fails loudly rather than reporting a release as published to winget. Co-Authored-By: Claude Opus 5 <[email protected]> * Refs #390: apply /verify review findings Resolver (scripts/winget-release-assets.sh): - Accept only MAJOR.MINOR.PATCH. release-binaries.yml builds on any tag push and creates the release itself, so a test tag or a release candidate reached the submission behind a green release run; submitting one publishes it to every `winget upgrade` as the current NetPace. - Treat a stranded upload as absent. A half-attached archive is still in the asset list, so matching on name alone could emit a URL that 404s. - Give the asset-list parse its own diagnostic instead of a bare jq error. - Correct the ARCHITECTURES comment: the order is not the manifest's, and is not significant, because each URL carries its own architecture. Matrix (scripts/winget-release-assets.tests.sh): six mutants survived the committed assertions, five of them on the failure paths the matrix exists to cover. All six now turn it red. - Grep text only each guard emits. Matching the version back out of the message passed with the whole version-validation block deleted, because every later failure echoes the version inside the archive name. - Require a gh failure to blame the release read, not a missing archive. - Assert the gh call, not just answer it: dropping the version from it reads the latest release rather than the one being submitted. - Carry state/size on fixture assets, and order a .sha256 sidecar ahead of the archive it names so selection has to be an exact match. - Cover the non-release tag, the release candidate, the stranded upload, the unparseable asset list, and no URL leaking from version coupling. Workflow (.github/workflows/winget-submit.yml): - Report on `!success()`, not `failure()`. A job stopped by its own timeout or cancelled by hand is cancelled rather than failed, so the reporter was skipped for exactly the slow hangs that leave a release unsubmitted with nobody told. - Record that the trigger matches release-binaries.yml's `name:` verbatim, so renaming it disables submission with no run and no issue to notice. - Stop crediting WINGET_IDENTIFIER with the moniker, which is a field of the upstream manifest and is neither set nor verified here. - Drop the `# AC:` prefix, which reads as a traceability key and is not one. Docs: - RELEASING.md: wingetcreate creates the fork itself, so the setup is two steps, not three; the PAT must be classic, which the workflow cannot detect. - USER_GUIDE.md: winget puts its own links directory on the path rather than installing where the path already points. - README.md and USER_GUIDE.md: note that the package is pending its first acceptance, with removing both notes the last step of the one-off setup; stop pinning a concrete version in the unattended example. Co-Authored-By: Claude Opus 5 <[email protected]> * Refs #390: strip CR from resolved URLs; tighten the resolver matrix The Windows runner's native jq.exe writes CRLF, and `$(...)` strips only the LF, so each `<url>|<arch>` carried a CR into wingetcreate's InstallerUrl. A CRLF jq stub reproduces it: 2 failed before, 33 passed after. The stranded-upload case now mutates `state` and `size` separately, and the rc/test-tag cases carry archives named after their own tag, so deleting either guard clause, or the MAJOR.MINOR.PATCH guard, turns the matrix red (each mutant checked). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01HHFKaobLjyxWYBrHZUt1sv * Refs #390: skip non-release tags cleanly; fix winget doc gaps - winget-submit.yml: a workflow_run for a tag that is not MAJOR.MINOR.PATCH (rc, test tag) now ends green with a notice instead of failing in the resolver and raising a false "winget submission failed" issue. A hand-dispatched version is never skipped; the resolver still refuses a bad one loudly. Dispatch comment no longer offers itself for a moderator rejection. - RELEASING.md: prerelease tags are not submitted to winget; the first-manifest step sets `Moniker: netpace`; the rejection playbook says when re-running is right (schema change: close the rejected PR first) instead of contradicting itself. - USER_GUIDE.md: `--version` pins a version winget lists, not any version on the releases page. Evidence: actionlint 1.7.7 clean on the workflow; the skip regex checked against 0.9.0 (submit), 0.28.0-rc1 and test-archive-whitelist-0.0.1 (skip). A live rc-tag run is the only end-to-end proof. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01HHFKaobLjyxWYBrHZUt1sv --------- Co-authored-by: Claude Opus 5 <[email protected]> 0.28.0-rc4Mac Tool Install Check (#435) * Refs #434: let the Mac tool check fetch .NET packages from nuget.org The Mac install check restricted `dotnet tool install` to a feed holding only NetPace's packages. On the Apple silicon runner the installer also fetches a .NET host package, so the check failed before it ran the tool. The feed is now added to nuget.org rather than replacing it, which is how a user's install resolves. RED: publish-tool.yml on 0.28.0-rc3 (run 39571348028), pack-native (osx-arm64): "microsoft.netcore.app.host.osx-x64 is not found in NuGet feeds .../verify-feed", exit 1, publish skipped. GREEN so far: with the same feed layout, `dotnet tool install netpace --version 0.28.0-rc3 --add-source <feed>` installs locally on linux-x64 and reports 0.28.0-rc3. The real proof is the next rc's run on both Mac runners, which no local machine can stand in for. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01HHFKaobLjyxWYBrHZUt1sv * Refs #434: map NetPace packages to the local feed in the Mac check Review finding: with nuget.org added as a source, a re-run after a partial push could install the already-pushed copy of this tag's RID package instead of the one just built. A step-local nuget.config now maps NetPace and NetPace.* to the local feed alone, leaving nuget.org for everything else. Locally, mapping NetPace to an empty feed refuses 0.28.0-rc2 although nuget.org holds it, and the step's own script, extracted from the workflow, installs the packed rc3 tool and passes. The comment and RELEASING.md now state the host-package request as observed rather than explained. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01HHFKaobLjyxWYBrHZUt1sv --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> 0.28.0-rc3macOS Native AOT (#410) * Refs #407: build macOS Native AOT on Mac runners macOS was the only supported platform without a Native AOT build. Both osx RIDs now join the AOT archive matrix and the pack-native tool-package matrix, each on a Mac runner of its own architecture, so the release publishes 18 archives and all six RID packages carry a native binary. Native AOT cannot cross-compile between operating systems, so the macOS packages can no longer be cross-packed from ubuntu-latest. The two macOS RIDs share a runner OS, so the runner guard also compares uname -m; and because the publish job's install check only ever exercises linux-x64, each Mac installs and runs the package it has just packed. Breaking change: macOS tool-package users get a native binary instead of a framework-dependent build — same command, same output, no longer dependent on the SDK's runtime. RED/GREEN: the real gate is a tagged release run on Mac runners, which no local machine can stand in for. The current cross-pack asked for the AOT the issue requires fails here (`dotnet pack -r osx-arm64 -p:PublishAot=true` -> "Platform linker ('clang') not found in PATH"; on ubuntu-latest the SDK's cross-OS guard fires instead). The gates that do run locally are green after the change: `dotnet build ./src` (0 warnings), `dotnet test ./src` (844 passed), `scripts/tool-package.tests.sh` (37 passed — every one of the six platforms still installs and runs), `scripts/traceability-check.sh`. Co-Authored-By: Claude Opus 5 <[email protected]> * Refs #407: apply /verify review findings Correct the macOS Native AOT claims and comments the branch left behind, and harden two release steps the change newly exposes. - resources/nuget/README.tool.md still told macOS users their install was framework-dependent. It is packed as the tool package's nuget.org README, so the next tag would have published a landing page contradicting the packages it describes. - Scope the "nothing else runs a macOS binary" claim to this workflow: release-binaries.yml smoke-tests both macOS AOT archives on the same tag. - Correct the gate-4 note: Windows and linux-arm64 share the same unexecuted-binary gap, so macOS was not the only one. - Describe the real consequence of a swapped Mac runner. --runtime is passed explicitly, so a swap cross-compiles and runs under Rosetta rather than packing one RID from the other's binary. - Attribute the per-architecture Mac runners to the smoke test rather than to the cross-OS limitation, which only forces a Mac. - Pack the verification wrapper into a feed of its own, so the package the job uploads stays the file the Native AOT pack produced. - Set COPYFILE_DISABLE=1 on tar: Apple's tar otherwise writes a sibling ._netpace member, which would break the one-entry archive contract. - Name the macOS netpace.dSYM folder in the two symbol comments that still listed only .dbg and .pdb. - Follow the records convention: Supersedes in the new record, replacing the in-place note in the superseded one. Co-Authored-By: Claude Opus 5 <[email protected]> * Refs #407: prove release changes with an rc tag; semver tags only PR review Major 1. The documented non-semver test tag (test-archive-whitelist-0.0.1) can never build: NuGet rejects a non-semver Version at restore, before compiling, and a numeric fallback for AssemblyVersion alone does not get past it (reproduced locally with the workflow's own -p: properties). Its one use, in May, failed the archive build. - release-binaries.yml and publish-nuget.yml now trigger on the same semver-shaped tags as publish-tool.yml, whose filter 0.28.0-rc1/rc2 already proved. A tag of any other shape starts nothing. - RELEASING.md: a new Release tags section replaces the test-tag guidance: prove a release-pipeline change with the next release candidate, which publishes as a prerelease. - The macOS change-intent record's proof plan uses the next rc tag. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01HHFKaobLjyxWYBrHZUt1sv * Refs #407: publish NetPace.Core on every release tag publish-nuget.yml skipped the library when src/NetPace.Core was unchanged since the nearest earlier tag. After an rc that tag is the rc, so the stable release that follows it can skip the stable library. Making "tag an rc" the routine proof for pipeline changes makes that path routine. The diff also never saw src/Directory.Build.props or src/Directory.Packages.props. RED: the workflow's own check script, run for 0.28.0 at the head of main (04c47e2), printed "NetPace.Core unchanged since 0.28.0-rc2 — skipping NuGet pack/push." and set changed=false, although NetPace.Core changed between 0.27.0 and that commit. GREEN: the check job is gone. publish-nuget.yml has a single publish job with no needs or if, so every semver tag packs and pushes NetPace.Core. The YAML parses and scripts/link-check.sh passes. The real proof is the next tag's run. What breaks, and for whom: NetPace.Core gets a new NuGet version on every release, including CLI-only ones, so library consumers see updates whose content is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01HHFKaobLjyxWYBrHZUt1sv * Refs #407: apply /verify review findings Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01HHFKaobLjyxWYBrHZUt1sv --------- Co-authored-by: Claude Opus 5 <[email protected]> 0.28.0-rc2Live Speed Beside Bars (#417) * Refs #409: show the live speed beside each progress bar While a download or upload runs in the default output at an interactive terminal, the average speed since that test began is shown beside its progress bar, formatted exactly as the result line formats it and following --unit, --unit-system and --unit-scale. Nothing is shown until the first data arrives, and when a test completes the figure is replaced with the one its returned result reports, so the number watched is the number given. Output that is not going to an interactive terminal is untouched, as are the minimal, CSV and JSON formats. Co-Authored-By: Claude Opus 5 <[email protected]> * Refs #409: document the live speed beside the progress bars Describe the live figure in the user guide, and record why the interactive display is snapshotted as one final screen rather than as the sequence of redraws. Co-Authored-By: Claude Opus 5 <[email protected]> * Refs #409: apply /verify review findings Review A over the branch diff: five reporting reviewers, a code-simplifier pass and /review-slop. Fixed: - The stubs made the 100% progress report exactly equal the result, so a final-frame capture could not tell Report from Settle and both writer call sites were deletable with the suite green. The climb now stops short of the result's byte count, so a run that never settles the figure shows a different number from the result line. Deleting Settle fails 6 tests. - LiveSpeedColumn's figures dictionary was written from the measurement thread and read by Spectre's refresh thread with no synchronisation; it is now a ConcurrentDictionary. - The climb schedule was duplicated verbatim in SpeedTestStub and ScriptedSpeedTester; it now lives once in SpeedTestProgressClimb, each caller keeping its own pacing. - Added the Core test for the stub progress behaviour this branch changed, and the missing case for the elapsed-time half of Report's guard. - Corrected two doc claims the code does not make: the figure is not "formatted exactly as the result line" (the result line also carries a failure note), and the guard does not promise "never a zero speed" (a fixed scale renders 0 Gbps). - Replaced snapshot-restating assertions with the relation the scenario promises: the live figure equals the figure the result line reports. - Recorded the known gap in the change-intent record: nothing observes that the writer reports during a run. Co-Authored-By: Claude Opus 5 <[email protected]> * Refs #409: say a percentage-only provider shows the result's figure on completion Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Co-authored-by: Frank Ray <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> 0.28.0-rc1Prerelease Tags (#404) * Refs #403: report the prerelease suffix in --version netpace --version and the diagnostic log read the numeric assembly version, which cannot carry a prerelease suffix, so a 0.27.0-rc1 build would report 0.27.0. Both now read the informational version through one AppVersion helper, without the source revision the SDK appends after '+'. RED: tool-package.tests.sh packed and installed 99.99.99-rc.1 and the command reported 99.99.99; AppVersionTests did not compile. GREEN: tool-package.tests.sh 37 passed; dotnet test 850 passed; a linux-x64 AOT publish at 9.9.9-rc1 has no warnings and reports 9.9.9-rc1. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * Refs #403: give a prerelease tag's numeric part to the numeric versions All three release workflows passed the tag unchanged to AssemblyVersion and FileVersion, which accept numbers alone, so a prerelease tag failed every workflow at its first compile. Each Extract version step now also outputs the tag's numeric part, and only those two properties take it. publish-nuget.yml's packed-library check compares each version against the part it now carries. RELEASING.md gains a Prerelease tags section. RED: dotnet build src with all four versions set to 0.27.0-rc1, as main's workflows pass them, fails with CS7034/CS7035 - the error in run 39029047502. GREEN: with AssemblyVersion/FileVersion set to 0.27.0 the build has 0 warnings and dotnet run -- --version reports 0.27.0-rc1. actionlint 1.7.7 reports nothing on the changed lines. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> 0.27.0Dotnet Tool Package (#394) * Refs #388: publish NetPace as a .NET tool `dotnet tool install -g NetPace` now installs the release, `dotnet tool update -g NetPace` moves to the latest, and `dnx NetPace` runs it once without installing. The console project packs as a RID-specific tool: Windows and Linux (x64, ARM64) carry the Native AOT binary, packed on the same native runners that build the AOT archives; macOS carries a framework-dependent build. Every tag publishes the set, whether or not NetPace.Core changed. RED: scripts/tool-package.tests.sh reported 2 passed, 19 failed — "Version 99.99.99 of package netpace is not found in NuGet feeds" from both the install and the dnx run, and no package for any RID. scripts/traceability-check.sh reported FAIL for both of #388's labelled scenarios. GREEN: the matrix reports 21 passed, 0 failed; dotnet build src is clean with 0 warnings and dotnet test src reports 493 + 325 passed, 0 failed. Co-Authored-By: Claude Opus 5 <[email protected]> * Refs #388: report the pack log only against the pack Co-Authored-By: Claude Opus 5 <[email protected]> * Refs #388: apply /verify review findings Gate the tool package on a semver-shaped tag. The workflow triggers on `*`, and `dotnet pack` cannot parse a tag like test-archive-whitelist-0.0.1 as a package version; because attach-to-release needs build-cross-platform, that pack failure would have taken the release archives down with a tag that used to publish them fine. Make the "Verify a Native AOT package arrived" step verify that. It tested the filename and printed a size it never compared, so four framework- dependent packages would have passed every gate -- both forms set Runner="executable" and the install check runs where the runtime exists. It now reads each package's tools/ entries. Push the RID packages before the wrapper. The wrapper carries no nuspec dependencies, so a part-way push left it live on nuget.org pointing at packages nobody published. Upload the RID package by exact filename with if-no-files-found: error; the default warns and reports success. Cover `dotnet tool update`, an acceptance criterion with no test anywhere, and open all six RID packages rather than five by filename alone. Capture the settings extraction's own exit status, which was discarded so that seven cases reported `rc=0 output:[]`. Correct the prose the review found false: the --version example named the one release with no tool package, the documented dnx form prompts and fails non-interactively, the symbol-file multiplier disagreed between two files and was wrong in both (measured ~2.5x), the matrix header claimed all six released packages are AOT, and the install gate was described as spanning a set it checks one RID of. Drop the issue number from a workflow comment. Co-Authored-By: Claude Opus 5 <[email protected]> * Refs #388: publish the tool package from its own workflow Moves the tool-package pack and publish out of release-binaries.yml into publish-tool.yml, triggered only by semver-shaped tags. Packing inside the archive matrix let a tool-package failure withhold the release archives, and the shared any-tag trigger needed a check-tag job plus conditions on every tool step. release-binaries.yml is back to its main-branch form. Install, update and dnx examples now give the lowercase id users type (netpace), matching the lowercase command; the PackageId stays NetPace. tool-package.tests.sh installs, updates and runs via dnx by that lowercase id, and the release install gate does the same. Verification: - bash scripts/tool-package.tests.sh: 34 passed, 0 failed - dotnet build src: 0 warnings; dotnet test src: 843 passed - actionlint 1.7.7 on publish-tool.yml: only the known windows-11-arm runner-label gap, the same label main already uses Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * Refs #388: judge the native packages exactly as they are pushed The Native AOT shape check now runs last, immediately before the push, over the feed as it will be published. Before, it ran straight after the artifact download, so the macOS and wrapper packs that write into the same feed afterwards could in principle replace an AOT package unseen. CreateRidSpecificToolPackages is a real SDK property (Microsoft.NET.PackTool.targets, SDK 10.0.112): packing the wrapper with it set to false produced only NetPace.<ver>.nupkg, listing all six RIDs with no binary. The reorder makes the gate independent of that holding on future 10.0.x SDKs. The count-failure message now says where to adjust, and RELEASING.md names re-running the failed run as the recovery. Verification: actionlint 1.7.7 on publish-tool.yml reports only the known windows-11-arm runner-label gap. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]> 0.26.0Diagnostics (#365) * Refs #268: add --diagnostics, a per-request diagnostic stream Diagnostics describing how a run went are written to the error stream, separate from the result, in every output format. The result stream is byte-identical with and without the switch, so a script piping --csv or --json cannot be broken by adding it. NetPace.Core surfaces per-request detail that was previously discarded: every request of a download, upload, latency measurement, screening pass and upload redirect probe is reported as a RequestDiagnostic, carrying the time it started, its address, outcome, bytes, duration and - where it did not succeed - the whole exception chain's messages plus the outermost exception type. ISpeedTestService gains five overloads taking a second IProgress<RequestDiagnostic>, with no default implementations. Records are buffered during the run and flushed once the progress display has completed, so per-request console I/O neither perturbs the measurement nor shreds the live display. Co-Authored-By: Claude Opus 5 <[email protected]> * Refs #268: document --diagnostics for users README's --help block matches the new option, and USER_GUIDE gains "Diagnosing a failure with --diagnostics" - the redirection example, a table of what each record type says, and what is deliberately not recorded per request. Co-Authored-By: Claude Opus 5 <[email protected]> * Refs #268: drop redundant diagnostics null-checks ReportProgress and ReportRequestFailure already return on a null reporter, and the enclosing guard in GenericTestSpeedAsync had already decided it, so the inner checks only restated their callers. Co-Authored-By: Claude Opus 5 <[email protected]> * Refs #268: apply /verify review findings Review A (five clean-context reviewers plus a slop pass and the simplifier) over the branch diff. Fixes the confirmed defects: - screening numbered each candidate's requests from one while the consumer brackets the whole pass in one scope, so seq identified nothing within test=screening; one counter now spans the pass - a failed diagnostic write escaped recorder.Flush() and, from ExecuteAsync's finally, replaced the in-flight exception and turned a completed measurement into exit 1 - the upload probe composed its redirect target inside a catch-all, so a malformed Location header was recorded as a failed request naming the transport for a fault never on the wire - a tab in a value was neither escaped nor quoted, so the record stopped parsing as key=value pairs - a rejected latency response reported bytes=0 though its body had arrived - doc statements that the code did not honour: the probe body, the clock read a null scope was said to skip, BytesProcessed on an aborted transfer, FailureReason where no exception was involved, Flush's contract, the recorder's concurrency rationale, test.end's bytes total, and the USER_GUIDE omissions list, which did not mention the recorded probe Adds the tests those branches lacked: the screening rejection, the latency rejection, screening sequence distinctness, a multi-hop probe's numbering, caller cancellation during a download, --loop with --diagnostics, a run that fails outright, and an unwritable diagnostic stream. Co-Authored-By: Claude Opus 5 <[email protected]> * Refs #268: list the diagnostics overloads in the NuGet README The API Overview block now matches ISpeedTestService: adds the four overloads taking an IProgress<RequestDiagnostic>, and drops the int-size download/upload overloads the interface no longer has. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * Refs #268: give --quiet and --file their own sentence in the user guide They decide whether and where the result appears, so they no longer trail the result-shaping paragraph about units and timestamps. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * Refs #268: state the stub's diagnostics behaviour once, at class level The same remark sat on all five diagnostics overloads; one class-level remark says it once, matching SpeedTestMock. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * Refs #268: match the binary's casing in the --diagnostics help example The compiled binary is NetPace, and the name is case-sensitive outside Windows, so 'netpace --json --diagnostics ...' failed when copied. RED: help snapshot updated first, Should_Display_Help failed x3; GREEN after the Program.cs description change. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * Refs #268: match the binary's casing in CLAUDE.md and RELEASING.md Lowercase 'netpace' invocations predate this branch; same fix as the help text, so a copied command runs on case-sensitive platforms. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * Refs #268: allow a test seam to share one file in the C# style guide The one-class-per-file rule now names the existing exception: an interface, its production implementation and its stub may share the interface's file, as IClock, IWaiter, IClientInfoProvider and IDelayProvider already do and this branch's two new providers follow. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * Refs #268: let a test seam's file hold more than one stub IClock.cs, the example the exception cites, holds two stubs. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * Refs #268: tighten the diagnostics tests found weak in review - Ceiling test asserted only over every record, so it passed on an empty list; it now requires the single ceiling record. - Byte-budget test held requests on a 250 ms timer racing the first read; they now never answer, so only the budget's cancellation ends them, bounded by HangGuard. Core suite green 10/10 runs. - Every_OutputFormat_ProducesTheSameDiagnostics now compares each format's records with the default format's, line for line. - Collect's doc comment moved from a test back onto Collect. - FaultySpeedTester's old screening overload delegates to the new one instead of duplicating its body. Mutation check: suppressing the ceiling record, and dropping CSV's upload diagnostics, each failed exactly the test meant to catch it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]> 0.25.0Upload Redirect 307 (#245) * Fix upload reporting 0 bps against HTTPS-migrated Ookla servers Ookla is migrating its fleet to HTTPS. A migrated server answers a plain-HTTP upload POST with a 307 to its HTTPS endpoint, sending that redirect after ~64 KB and closing the request stream. Since 0.14.0 (#69), the upload body has been streamed in 8 KB chunks rather than handed over as one buffered ByteArrayContent. A streaming body cannot survive that mid-write teardown: it dies with "Unable to write data to the transport connection", so .NET never reads the 307 and never follows it. Every upload request failed, reporting 0 bps. Downloads were unaffected throughout - a GET carries no body, so it replays across the redirect for free. That asymmetry is what made the bug look server-specific rather than transport-shaped. Resolve the upload endpoint once, up front, with an empty-bodied POST: a redirect is decided by scheme and host rather than payload, so it draws the same answer with nothing to write and nothing to tear down. Sending no bytes also keeps the probe out of the measurement, and the per-chunk streaming that #69 introduced for its memory fix is retained. Verified against speedtest-bracknell.vodafone.co.uk (a migrated server): 0 bps / 30 of 30 requests failed, now 176.44 Mbps. Co-Authored-By: Claude Opus 5 <[email protected]> * Address review: relocate resolver, cover probe-failure fallback Move ResolveUploadUrlAsync out of #region Static Functions - it is an instance method and was the only one among five static helpers, in a region whose name advertises the opposite. Cover the best-effort fallback. It is a contract stated in both the XML docs and the PR body with nothing exercising it, and the failure mode if it regresses is this bug's own history: a silent 0 bps. The test was confirmed to fail when the fallback is removed, so it is not vacuous. Only the configured URL is mocked, so a resolution yielding anything else leaves the uploads unanswered. Document why IsRedirect treats permanent and temporary redirects alike: an HTTPS migration is as likely to announce itself with a 301 as with the 307 that prompted this, and resolving an address does not carry the method-rewriting semantics that replaying a request would. Co-Authored-By: Claude Opus 5 <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]> PreviousNext
|
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |