Skip to content

AWSLambdaPackager inconsistently fails #419

Open
@MahdiBM

Description

@MahdiBM

Expected behavior

not failures

Actual behavior

Sometimes fails in GitHub Actions when Penny is trying to deploy the lambdas.
A retry is usually enough to get things working.
Penny doesn't use any caching in CI so it's just 2 different runs can end up with different results.

Steps to reproduce

Example CI run: https://github.com/vapor/penny-bot/actions/runs/11441929639/job/31968609354

Failure logs (first try): logs_29885706142.zip
Success logs (second try): logs_29885706142.1.zip

This is what the CI is doing:

for name in ${{ steps.find_package_names.outputs.names }}; do
  swift package archive \
    --output-path ./zips \
    --products "${name}"
  aws s3api put-object \
    --bucket penny-lambdas-store \
    --key "${name}.zip" \
    --body ./zips/${name}/${name}.zip
done

If possible, minimal yet complete reproducer code (or URL to code)

No response

What version of this project (swift-aws-lambda-runtime) are you using?

1.0.0-alpha.3

Swift version

swift:6.0-amazonlinux2

Amazon Linux 2 docker image version

No response

Metadata

Metadata

Assignees

Labels

kind/bugFeature doesn't work as expected.platform/linuxLinux platform specific issues.status/triageCollecting information required to triage the issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions