Integrate upstream changes v2#24
Closed
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supersedes the previous PR #23 where I squashed the upstream changes instead of merged all commits as is.
Motivation
The official AWS lambda-runtime-init received some upstream updates (typically merged in big blobs from their internal repository). We should update our customized
localstackversion to support the latest features (e.g., response streaming) and updates (e.g., the new Golang version). Beyond smaller doc updates, the main updates were:Background
Internal docs: https://www.notion.so/localstack/Update-RIE-with-upstream-changes-for-response-streaming-18a303b503c54f958cfbee5841ef5402?pvs=4
Changes
Integrates the upstream changes from the AWS
lambda-runtime-initrepo and adjusts the API accordingly (see documented commit log for details).👉 Custom LocalStack changes
git show 6c95d75Testing
Test against the LocalStack test suite.
🧪 The localstack branch
integrate-lambda-init-upstream-changescontains some improved tests for therequest_idpropagation issue. For example:tests.aws.services.lambda_.test_lambda.TestRequestIdHandling.test_request_id_invokeI tested other categories including:
tests.aws.services.lambda_.test_lambda.TestLambdaBaseFeaturestests.aws.services.lambda_.test_lambda.TestRequestIdHandlingTODO
uuidnot being replaced in the testtests.aws.services.lambda_.test_lambda.TestLambdaFeatures.test_invocation_with_qualifierlocalstackbranch back as a quickfix because rebasing again is terrible with so many conflicts 😢