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
ci: add retry and fail-fast to install-wdk NuGet QFE resolution (#624)
When `install-wdk` receives a 3-part WDK version like `10.0.26100` with
NuGet source, it must resolve a QFE suffix because NuGet WDK packages
only exist as 4-part versions (e.g. `10.0.26100.1882`). The previous
fallback paths silently used the bare 3-part version on API timeout or
when no versions matched, guaranteeing a downstream "package not found"
failure. This was hit in PR #593 where a 30s NuGet API timeout caused
the action to try installing the non-existent `Microsoft.Windows.WDK.x64
10.0.26100`.
Replaces the silent fallbacks with a retry loop (3 attempts, exponential
backoff) that only retries transient errors (timeouts, network failures,
HTTP 429/5xx) and fails fast on non-transient errors like no matching
versions for the base version. Includes the last exception message in
the final error for easier CI diagnosis.
throw "Failed to resolve QFE version for $inputVersion after $maxAttempts attempts. NuGet WDK packages only exist with 4-part versions (e.g. $inputVersion.1882). Specify a full version or ensure the NuGet API (https://api.nuget.org) is reachable. Last error: $lastErrorMsg"
0 commit comments