test(all) Add concurrent Lambda invocation tests#1112
Merged
darklight3it merged 4 commits intomainfrom Mar 10, 2026
Merged
Conversation
48ad1ab to
16a9888
Compare
1fa1878 to
38f2ca7
Compare
harness test.
bd33a05 to
09a0a5b
Compare
jlizen
approved these changes
Mar 6, 2026
Collaborator
jlizen
left a comment
There was a problem hiding this comment.
Seems good, I guess the dmelfi/multi-concurrency branch is temporary? Is there a reason it can't go to main?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
📬 Issue #, if available:
✍️ Description of changes:
This PR adds end-to-end concurrent testing for the
basic-lambda-concurrentexample using the Lambda Managed Instance (LMI) runtime mode.What changed
GitHub Actions (
.github/workflows/dockerized-test.yml)dockerized-test-concurrentjob that builds onlybasic-lambda-concurrent, creates a Docker network, and runs the concurrent scenarios via the actionNew example behavior (
examples/basic-lambda-concurrent/src/main.rs)HandlerErrortype withFrom<HandlerError> for Diagnostic, giving cleanerrorType: "HandlerError"in error responses instead of the mangled type name fromtype_name_of_valAWS_LAMBDA_MAX_CONCURRENCYvalueErr(HandlerError(...))for{"command": "fail"}payloadsNew test scenarios (
test/dockerized/scenarios/concurrent_scenarios.py)concurrent_happy_path: fires 10 unique commands concurrently, asserts all succeedconcurrent_error_isolation: fires 9 failing requests + 1 valid survivor concurrently, asserts the survivor still succeeds despite the errorsMakefile
build-test-runnertargettest-dockerized-concurrenttarget with Docker network setup for DinDTEST_RUNNER_BRANCHvariable (defaulting tomain, overridable via.env) controls which branch of the test runner is clonedIMPORTANT
🔏 By submitting this pull request
cargo +nightly fmt.cargo clippy --fix.