Retry expired release-asset downloads and pin the canonical org (fixes CI 618 jwt:expired)
Fixes the Build and Test failure on main (adce569) and on every open PR:
LinML.Catalog.Tests.ElfFloorTests.PublishedTrtRtxWsl2Pin_IsWithinTheGlibcFloor_AndCarriesItsVersion [FAIL]
System.Net.Http.HttpRequestException : Response status code does not indicate success: 618 (jwt:expired).
Cause
The asset is fine; it downloads and matches its SHA-256. The failure comes from how GitHub serves release downloads:
github.com/<org>/LinML/releases/download/...replies with a 302 torelease-assets.githubusercontent.com. That URL is signed with a JWT whosenbfandexpare 300 seconds apart.- GitHub caches that redirect. The token I was handed had been issued 42s before my request. So a client can receive a signed URL that is already near, or past, its expiry, and the asset host then answers with the non-standard
618 jwt:expired.
PluginInstaller treated that as a hard failure on the first attempt. CI hit it repeatedly at 09:04 and 09:35 UTC while the same URL worked from my machine. So it's transient, but it fails every PR's required check while it lasts.
There was a second problem in the same pin. It used the pre-rename org mesalimllc. That only works while GitHub keeps redirecting the old name, and it adds an extra cached hop to every download. The SHA-256 check stops a swapped archive from being used, but the pin should still point at the real org.
Fix
- Retry:
PluginInstallerretries transient statuses (618,408,429,5xx) up to 3 attempts with a short backoff. Each retry requests the pinned URL again, so it follows a freshly issued redirect instead of replaying the expired one. Non-transient statuses such as 401, 403 and 404 still fail immediately, and the last failure is reported unchanged. - Canonical org: the TRT-RTX WSL2 and MIGraphX plugin pins,
scripts/fetch-ep-plugins.sh,scripts/install.sh(default repo and help text), and the README's download commands and releases link now useMesilimLLC. The assets and their SHA-256 pins are unchanged.ScriptPinAgreementTestskeeps the scripts and the C# pins in agreement.
Left out on purpose: README badges, other doc links and the Go module path (github.com/mesalimllc/LinML/bindings/go). Changing the module path would break existing Go importers, so it needs its own decision.
Verification
PluginInstallerRetryTests(13 new cases):- a 618 followed by 200 installs, and both requests go to the pinned URL;
- a persistent 503 stops after 3 attempts with the 503;
- a 404 is never retried;
- the transient-status table;
- the pins use the canonical org.
- Catalog 172, CLI 232 and Runtime.Onnx 43 tests pass.
- The CI-failing test, run for real in WSL Ubuntu with
LINML_CATALOG_NETWORK_TESTS=1:PublishedTrtRtxWsl2Pin_IsWithinTheGlibcFloordownloads from the canonical URL, verifies the SHA-256 and passes the ELF gate. 26/26 pass, includingScriptPinAgreementTests.
š¤ Generated with Claude Code