Skip to content

Add S3 upload retry with exponential backoff #5

@aynaash

Description

@aynaash

Summary

Individual S3 asset uploads can fail silently — the current code logs a warning but continues. Failed uploads should be retried with exponential backoff.

Current Behavior

In aws_s3.go, upload failures are logged as warnings:

shared.SharedLogger.Warn("Failed to upload %s: %v", key, err)

Expected Behavior

  • Retry failed uploads up to 3 times
  • Use exponential backoff: 1s → 2s → 4s
  • After 3 failures, return an error (not just a warning)
  • Log retry attempts: "Retrying upload for %s (attempt %d/3)"

Files to Modify

  • cli/internal/serverless/aws_s3.go — Wrap the PutObject call in a retry loop

Difficulty: Easy · Language: Go

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions