Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
| ... | ... |
@@ -556,6 +556,13 @@ func getCDIManager(specDirs []string) (*cdidevices.Manager, error) {
|
| 556 | 556 |
if err := cdiCache.Refresh(); err != nil {
|
| 557 | 557 |
return nil, err |
| 558 | 558 |
} |
| 559 |
+ if errs := cdiCache.GetErrors(); len(errs) > 0 {
|
|
| 560 |
+ for dir, errs := range errs {
|
|
| 561 |
+ for _, err := range errs {
|
|
| 562 |
+ log.L.Warnf("CDI setup error %v: %+v", dir, err)
|
|
| 563 |
+ } |
|
| 564 |
+ } |
|
| 565 |
+ } |
|
| 559 | 566 |
return cdiCache, nil |
| 560 | 567 |
}() |
| 561 | 568 |
if err != nil {
|
| ... | ... |
@@ -63,7 +63,7 @@ require ( |
| 63 | 63 |
github.com/miekg/dns v1.1.61 |
| 64 | 64 |
github.com/mistifyio/go-zfs/v3 v3.0.1 |
| 65 | 65 |
github.com/mitchellh/copystructure v1.2.0 |
| 66 |
- github.com/moby/buildkit v0.20.0 |
|
| 66 |
+ github.com/moby/buildkit v0.20.1 |
|
| 67 | 67 |
github.com/moby/docker-image-spec v1.3.1 |
| 68 | 68 |
github.com/moby/ipvs v1.1.0 |
| 69 | 69 |
github.com/moby/locker v1.0.1 |
| ... | ... |
@@ -206,7 +206,7 @@ require ( |
| 206 | 206 |
github.com/tinylib/msgp v1.1.8 // indirect |
| 207 | 207 |
github.com/tonistiigi/dchapes-mode v0.0.0-20241001053921-ca0759fec205 // indirect |
| 208 | 208 |
github.com/tonistiigi/fsutil v0.0.0-20250113203817-b14e27f4135a // indirect |
| 209 |
- github.com/tonistiigi/go-actions-cache v0.0.0-20250219102945-1a5174abd055 // indirect |
|
| 209 |
+ github.com/tonistiigi/go-actions-cache v0.0.0-20250228231703-3e9a6642607f // indirect |
|
| 210 | 210 |
github.com/tonistiigi/go-csvvalue v0.0.0-20240710180619-ddb21b71c0b4 // indirect |
| 211 | 211 |
github.com/tonistiigi/units v0.0.0-20180711220420-6950e57a87ea // indirect |
| 212 | 212 |
github.com/tonistiigi/vt100 v0.0.0-20240514184818-90bafcd6abab // indirect |
| ... | ... |
@@ -383,8 +383,8 @@ github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:F |
| 383 | 383 |
github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= |
| 384 | 384 |
github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= |
| 385 | 385 |
github.com/mndrix/tap-go v0.0.0-20171203230836-629fa407e90b/go.mod h1:pzzDgJWZ34fGzaAZGFW22KVZDfyrYW+QABMrWnJBnSs= |
| 386 |
-github.com/moby/buildkit v0.20.0 h1:aF5RujjQ310Pn6SLL/wQYIrSsPXy0sQ5KvWifwq1h8Y= |
|
| 387 |
-github.com/moby/buildkit v0.20.0/go.mod h1:HYFUIK+iGDRxRgdphZ9Nv0y1Fz7mv0HrU7xZoXx217E= |
|
| 386 |
+github.com/moby/buildkit v0.20.1 h1:sT0ZXhhNo5rVbMcYfgttma3TdUHfO5JjFA0UAL8p9fY= |
|
| 387 |
+github.com/moby/buildkit v0.20.1/go.mod h1:Rq9nB/fJImdk6QeM0niKtOHJqwKeYMrK847hTTDVuA4= |
|
| 388 | 388 |
github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3Nl2EsFP0= |
| 389 | 389 |
github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo= |
| 390 | 390 |
github.com/moby/ipvs v1.1.0 h1:ONN4pGaZQgAx+1Scz5RvWV4Q7Gb+mvfRh3NsPS+1XQQ= |
| ... | ... |
@@ -554,8 +554,8 @@ github.com/tonistiigi/dchapes-mode v0.0.0-20241001053921-ca0759fec205 h1:eUk79E1 |
| 554 | 554 |
github.com/tonistiigi/dchapes-mode v0.0.0-20241001053921-ca0759fec205/go.mod h1:3Iuxbr0P7D3zUzBMAZB+ois3h/et0shEz0qApgHYGpY= |
| 555 | 555 |
github.com/tonistiigi/fsutil v0.0.0-20250113203817-b14e27f4135a h1:EfGw4G0x/8qXWgtcZ6KVaPS+wpWOQMaypczzP8ojkMY= |
| 556 | 556 |
github.com/tonistiigi/fsutil v0.0.0-20250113203817-b14e27f4135a/go.mod h1:Dl/9oEjK7IqnjAm21Okx/XIxUCFJzvh+XdVHUlBwXTw= |
| 557 |
-github.com/tonistiigi/go-actions-cache v0.0.0-20250219102945-1a5174abd055 h1:ocuqZe/ImPTYgDocnHTDOTBachfQ9m0JxvP4uGeDtBE= |
|
| 558 |
-github.com/tonistiigi/go-actions-cache v0.0.0-20250219102945-1a5174abd055/go.mod h1:h0oRlVs3NoFIHysRQ4rU1+RG4QmU0M2JVSwTYrB4igk= |
|
| 557 |
+github.com/tonistiigi/go-actions-cache v0.0.0-20250228231703-3e9a6642607f h1:q/SWz3Bz0KtAsqaBo73CHVXjaz5O8PDnmD2JHVhgYnE= |
|
| 558 |
+github.com/tonistiigi/go-actions-cache v0.0.0-20250228231703-3e9a6642607f/go.mod h1:h0oRlVs3NoFIHysRQ4rU1+RG4QmU0M2JVSwTYrB4igk= |
|
| 559 | 559 |
github.com/tonistiigi/go-archvariant v1.0.0 h1:5LC1eDWiBNflnTF1prCiX09yfNHIxDC/aukdhCdTyb0= |
| 560 | 560 |
github.com/tonistiigi/go-archvariant v1.0.0/go.mod h1:TxFmO5VS6vMq2kvs3ht04iPXtu2rUT/erOnGFYfk5Ho= |
| 561 | 561 |
github.com/tonistiigi/go-csvvalue v0.0.0-20240710180619-ddb21b71c0b4 h1:7I5c2Ig/5FgqkYOh/N87NzoyI9U15qUPXhDD8uCupv8= |
| ... | ... |
@@ -815,6 +815,7 @@ func toDispatchState(ctx context.Context, dt []byte, opt ConvertOpt) (*dispatchS |
| 815 | 815 |
target.image.OSFeatures = append([]string{}, platformOpt.targetPlatform.OSFeatures...)
|
| 816 | 816 |
} |
| 817 | 817 |
} |
| 818 |
+ target.image.Platform = platforms.Normalize(target.image.Platform) |
|
| 818 | 819 |
|
| 819 | 820 |
return target, nil |
| 820 | 821 |
} |
| ... | ... |
@@ -5,7 +5,10 @@ import ( |
| 5 | 5 |
"context" |
| 6 | 6 |
"encoding/json" |
| 7 | 7 |
"io" |
| 8 |
+ "time" |
|
| 8 | 9 |
|
| 10 |
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore" |
|
| 11 |
+ "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" |
|
| 9 | 12 |
"github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/blob" |
| 10 | 13 |
"github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/blockblob" |
| 11 | 14 |
"github.com/pkg/errors" |
| ... | ... |
@@ -45,8 +48,18 @@ func (c *Cache) reserveV2(ctx context.Context, key string) (string, error) {
|
| 45 | 45 |
return cr.SignedUploadURL, nil |
| 46 | 46 |
} |
| 47 | 47 |
|
| 48 |
+var azureOptions = &blockblob.ClientOptions{
|
|
| 49 |
+ ClientOptions: azcore.ClientOptions{
|
|
| 50 |
+ Retry: policy.RetryOptions{
|
|
| 51 |
+ MaxRetries: 10, |
|
| 52 |
+ MaxRetryDelay: 2 * time.Minute, |
|
| 53 |
+ RetryDelay: 10 * time.Second, |
|
| 54 |
+ }, |
|
| 55 |
+ }, |
|
| 56 |
+} |
|
| 57 |
+ |
|
| 48 | 58 |
func (c *Cache) uploadV2(ctx context.Context, url string, b Blob) error {
|
| 49 |
- client, err := blockblob.NewClientWithNoCredential(url, nil) |
|
| 59 |
+ client, err := blockblob.NewClientWithNoCredential(url, azureOptions) |
|
| 50 | 60 |
if err != nil {
|
| 51 | 61 |
return errors.WithStack(err) |
| 52 | 62 |
} |
| ... | ... |
@@ -62,7 +75,7 @@ func (c *Cache) uploadV2(ctx context.Context, url string, b Blob) error {
|
| 62 | 62 |
|
| 63 | 63 |
func (ce *Entry) downloadV2(ctx context.Context) ReaderAtCloser {
|
| 64 | 64 |
return toReaderAtCloser(func(offset int64) (io.ReadCloser, error) {
|
| 65 |
- client, err := blockblob.NewClientWithNoCredential(ce.URL, nil) |
|
| 65 |
+ client, err := blockblob.NewClientWithNoCredential(ce.URL, azureOptions) |
|
| 66 | 66 |
if err != nil {
|
| 67 | 67 |
return nil, errors.WithStack(err) |
| 68 | 68 |
} |
| ... | ... |
@@ -755,7 +755,7 @@ github.com/mitchellh/hashstructure/v2 |
| 755 | 755 |
# github.com/mitchellh/reflectwalk v1.0.2 |
| 756 | 756 |
## explicit |
| 757 | 757 |
github.com/mitchellh/reflectwalk |
| 758 |
-# github.com/moby/buildkit v0.20.0 |
|
| 758 |
+# github.com/moby/buildkit v0.20.1 |
|
| 759 | 759 |
## explicit; go 1.22.0 |
| 760 | 760 |
github.com/moby/buildkit/api/services/control |
| 761 | 761 |
github.com/moby/buildkit/api/types |
| ... | ... |
@@ -1175,7 +1175,7 @@ github.com/tonistiigi/dchapes-mode |
| 1175 | 1175 |
github.com/tonistiigi/fsutil |
| 1176 | 1176 |
github.com/tonistiigi/fsutil/copy |
| 1177 | 1177 |
github.com/tonistiigi/fsutil/types |
| 1178 |
-# github.com/tonistiigi/go-actions-cache v0.0.0-20250219102945-1a5174abd055 |
|
| 1178 |
+# github.com/tonistiigi/go-actions-cache v0.0.0-20250228231703-3e9a6642607f |
|
| 1179 | 1179 |
## explicit; go 1.22 |
| 1180 | 1180 |
github.com/tonistiigi/go-actions-cache |
| 1181 | 1181 |
# github.com/tonistiigi/go-archvariant v1.0.0 |