-
Notifications
You must be signed in to change notification settings - Fork 4k
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
chore(core): allow the bundler to re-use pre-existing bundler output (revisited) #9576
Conversation
Title does not follow the guidelines of Conventional Commits. Please adjust title before merge. |
@jogold Here's that PR for the progress I promised this afternoon. It probably looks familiar in a lot of ways. :) |
@misterjoshua I think this will close #9406? cc @jogold |
This PR will help to speed up the creation of separate assets and lambda layers that might be bundled with After this PR is merged, I imagine that it would be possible to change |
This looks good! Can you merge the latest changes from master? Local bundling has been added. |
@jogold I've merged changes from master and resolved a small conflict. CI is green. I'm looking over the |
…nd remove pragma" This reverts commit 6642935.
It looks like there's interesting behaviour surrounding |
…g a bundling asset hash
Co-authored-by: Jonathan Goldwasser <[email protected]>
Co-authored-by: Jonathan Goldwasser <[email protected]>
Co-authored-by: Jonathan Goldwasser <[email protected]>
Co-authored-by: Jonathan Goldwasser <[email protected]>
…nd bundled SOURCE hash types
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
@eladb I see that in master, this PR's associated commit has a red X for failing build. Is there anything I need to do to help? |
seems like the the error is in |
specifically lib/log-retention-provider/index.ts:6:10 - error TS2305: Module '"../../node_modules/aws-sdk/lib/config"' has no exported member 'RetryDelayOptions'. |
@BryanPan342 I see that as well, but while building locally - this is new. I'm not sure how this PR could have impacted that. AWS SDK just released a new version, however, and TypeScript types were referenced. I wonder if this is related?
|
#9994 i updated the dependency it seems to work locally now but we shall see what happens with code-build runs it |
ah @misterjoshua i think ur right they moved the |
The change introduced in aws#9576 did not handle the "staging disabled" case. As a consequence, when bundling the staged path was always relative. Revert to the behavior that was present before this change: when staging is disabled the staged path is absolute (whether bundling or not). Closes aws#10367
The change introduced in aws#9576 did not handle the "staging disabled" case. As a consequence, when bundling the staged path was always relative. Revert to the behavior that was present before this change: when staging is disabled the staged path is absolute (whether bundling or not). Closes aws#10367
…0507) The change introduced in #9576 did not handle the "staging disabled" case. As a consequence, when bundling the staged path was always relative. Revert to the behavior that was present before this change: when staging is disabled the staged path is absolute (whether bundling or not). Closes #10367 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
This PR changes
AssetStaging
so that the bundler will re-use pre-existing output. Before, the bundler would re-run Docker without considering pre-existing assets, which was slow. Now, when handling aSOURCE
hash type, the bundler detects and returns pre-existing asset output without re-running Docker. For all other hash types, the bundler outputs to an intermediate directory before calculating asset hashes, then renames the intermediate directory into its final location.This PR revisits #8916 which originally closed #8882. Here are some details from the previous PR which have been addressed in this PR:
-error
suffix)throws with assetHash and not CUSTOM hash type
as docker is no longer run before the AssetStaging props are validated.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license