chore: workaround AWS AMI failures, disable Azure uploader

Fixes #7513

AWS image uploads recently consistently fail in some regions, which
blocks the release process. Allow to skip some AMIs if they fail to
upload.

Disable Azure until #7512 is resolved.

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
This commit is contained in:
Andrey Smirnov 2023-07-26 16:56:17 +04:00
parent 4cd7623cf7
commit ffa48ac803
No known key found for this signature in database
GPG Key ID: 7B26396447AB6DFD
2 changed files with 10 additions and 7 deletions

View File

@ -243,7 +243,9 @@ func (au *AWSUploader) registerAMIArch(ctx context.Context, region string, svc *
return retry.ExpectedError(fmt.Errorf("task status not found")) return retry.ExpectedError(fmt.Errorf("task status not found"))
}) })
if err != nil { if err != nil {
return err log.Printf("WARNING: aws: ignoring failure to import snapshot into %s/%s: %s", region, arch, err)
return nil //nolint:nilerr
} }
log.Printf("aws: import into %s/%s, snapshot ID %q", region, arch, snapshotID) log.Printf("aws: import into %s/%s, snapshot ID %q", region, arch, snapshotID)

View File

@ -92,13 +92,14 @@ func run() error {
return aws.Upload(ctx) return aws.Upload(ctx)
}) })
g.Go(func() error { // disabled until https://github.com/siderolabs/talos/issues/7512 is resolved
azure := AzureUploader{ // g.Go(func() error {
Options: DefaultOptions, // azure := AzureUploader{
} // Options: DefaultOptions,
// }
return azure.AzureGalleryUpload(ctx) // return azure.AzureGalleryUpload(ctx)
}) // })
if err = g.Wait(); err != nil { if err = g.Wait(); err != nil {
return fmt.Errorf("failed: %w", err) return fmt.Errorf("failed: %w", err)