-
Notifications
You must be signed in to change notification settings - Fork 36
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
Uploaded file must be a non-empty zip is a problem for many recent versions #1017
Comments
Thanks for reporting!
Hmm, that's interesting and annoying. I can see that all versions from 3.1.1 to 3.1.4 have the bootstrap files published. This indicates to me a different cause than the previous issue(s). I also cannot replicate it, whereas with the old root cause I could. Could you check two more versions for me? I'd like to rule out/in if the new feature in 3.1.0 could be the culprit. Also can you post the exact error logs. Assuming they are similar to the previously posted logs, there might still be subtle differences that give us a hint.
Yes. This is the same as #222. We don't currently have a timeline for this. |
@mrgrain I've just tried that version and 3.0.154 is okay and 3.1.0 is not, so it looks like your new 3.1.0 feature could be the issue. Here's my deploy logs:
|
Not quite the same, I think. What I'm suggesting is a smaller task, simply taking out all the pre-built functionality, and making the build work the way it does today when When you say "We are planning on replacing the current approach with something else." in #478 (comment), are you referring to #222, or to this library being replaced entirely? |
I was referring to us being aware that the pre-built lambdas are a pain, i.e. #222 Long-term, we believe publishing an image directly to a named ECR (instead of a asset ECR first and then copying the image) is something that is worth exploring for core AWS CDK. However that wouldn't necessarily capture all use cases of this package anyway. |
Thanks for confirming. This line is the only thing on the PR that vaguely has anything to do with it. But I don't really understand yet how and why this would effect anything. 🤔 |
@mrgrain I don't understand either. And actually, it looks like something a little different to #478 may be going on, because if you look at the releases, they include bootstrap and bootstrap.sha256, whereas the broken releases #478 refers to do not include those files (which is why they were broken). |
I am having the same issue. I will stick with 3.0.154 for now! |
This issue was discussed extensively via #478. The issue was closed because "Later versions should work. We are planning on replacing the current approach with something else.".
However, there is no clear timeframe for what will replace this, and in the meantime, this issue is getting worse. I just tried versions 3.1.1 to 3.1.4, and all of them suffered the issue.
The root cause of this issue appears to be the logic that allows a prebuilt version of the Lambda to be downloaded from Github instead of built locally, and indeed these versions work when I set the environment variable
NO_PREBUILT_LAMBDA=1
.My suggestion is still to rip out the prebuilt lambda functionality entirely, or at least disable it by default. I think that recommendation is even stronger if this package is to be replaced, as clearly the underlying issues with the prebuilt lambda will not be fixed.
The text was updated successfully, but these errors were encountered: