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
Sign stage times out uploading signatures when signing many images #2168
The Sign stage intermittently fails when signing many images because an in-flight signature PUT is canceled by a 10s per-request timeout. It only passes when the whole stage is re-run.
Polly.Timeout.TimeoutRejectedException: The operation didn't complete within the allowed timeout of '00:00:10'. Execution Time: 10005ms
HTTP PUT .../dotnet/aspnet/manifests/sha256:abc123...
at OrasDotNetService.PushSignatureAsync ... line 132
at ImageSigningService.SignImagesAsync ... line 110
The uploads themselves during signing are small. Payload size is not the cause. The failure is a transient/slow registry response under load: the image-builder-oras-timeout handler in src/ImageBuilder/ImageBuilder.cs applies AddTimeout(TimeSpan.FromSeconds(10)), a total per-attempt timeout, and ImageSigningService.SignImagesAsync pushes all signatures concurrently via Parallel.ForEachAsync. When one PUT exceeds 10s, it is canceled.
The Polly retry does not recover it because retryOptions.DisableForUnsafeHttpMethods() disables retries for PUT/POST, so the request is logged as Handled: 'False' and the command fails outright, requiring manual re-run.
We should make signature uploads resilient to transient registry slowness so the stage does not depend on a re-run. Possible directions worth investigating (not prescriptive):
bound parallelism during signing
enabling retries for idempotent digest-addressed writes
inactivity-based request timeout (allow unlimited timeout as long as bytes are actively being uploaded)
Activity
dagood commentedon Jul 8, 2026
I just encountered this in go-images, I believe: https://dev.azure.com/dnceng/internal/_build/results?buildId=3017643&view=logs&j=eb152c84-000f-56ed-b49a-f2793cf28d8d&s=67b9031e-a4cf-5184-081e-42f1eef6e2be&t=f060855b-230d-5c44-06d8-69c4d11b5bea&l=5271.
dagood commentedon Jul 8, 2026
My retry did quickly get past signing, though, so it's not blocking us.
Only handle immediate symptom of dotnet#2168
imagebuilder: Retry lifecycle artifact manifest push timeouts (#2267)