Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWSLambdaPackager inconsistently fails #419

Open
MahdiBM opened this issue Oct 27, 2024 · 1 comment
Open

AWSLambdaPackager inconsistently fails #419

MahdiBM opened this issue Oct 27, 2024 · 1 comment
Assignees
Labels
packager The SwiftPM archive plugin

Comments

@MahdiBM
Copy link
Contributor

MahdiBM commented Oct 27, 2024

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

@sebsto sebsto self-assigned this Nov 7, 2024
@sebsto
Copy link
Contributor

sebsto commented Nov 7, 2024

Hey @MahdiBM . I'm sorry you're experiencing such intermittent error.

From what I understand, your CI runs in a swift:6.0:amazonlinux2 container and uses the 1.0.0-alpha.3 branch of the runtime.
Is this correct ?

Did you observe this behaviour with Swift 5.x also ?

Would it be possible to submit another trace produced with the --verbose flag ?

  swift package archive --verbose  \
    --output-path ./zips \
    --products "${name}"

@sebsto sebsto added the packager The SwiftPM archive plugin label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packager The SwiftPM archive plugin
Projects
None yet
Development

No branches or pull requests

2 participants