Draft
Conversation
added 6 commits
February 20, 2026 00:08
…ies when called in the dockerfile.
…d the custom entrypoint. Changing test-rie signature.
0fb86a2 to
b414e80
Compare
b414e80 to
2b40b80
Compare
jlizen
reviewed
Feb 20, 2026
| run: docker build . -t local/test -f Dockerfile.rie | ||
|
|
||
| - name: Run tests | ||
| uses: aws/containerized-test-runner-for-aws-lambda@v1 |
Collaborator
There was a problem hiding this comment.
Does this action exist? The ci is failing to find it, and I don't see references elsewhere on the Internet.
I wonder if the existing test-rie workflow is close to what you want here, and could be adapted?
Seems like the main thing missing would be a small script to translate the request mappings into curl requests that assert against the response? Along with some parameterizing to feed in the proper lambda binary and test assets to the dockerfile?
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:
N/A
✍️ Description of changes:
This PR adds Docker-based testing infrastructure using AWS's
containerized-test-runner-for-aws-lambda, enabling automated testing of Lambda functions in a containerized environment that closely mirrors the AWS Lambda execution environment.The PR introduces a
test-dockerizedMakefile target that runs test suites defined intest/dockerized/*.jsonfiles. These test suites specify handlers to test (from the examples directory), request payloads, and expected response assertions with optional jq transforms for validation.The infrastructure reuses Lambda binaries from the
/examplesfolder as test handlers, demonstrating the concept with an initial test case forbasic-lambda. Additional tests and multi-concurrency scenarios can be added by creating new test suite JSON files.A GitHub Actions workflow provides CI/CD integration for automated testing on pull requests.
Testing
Run dockerized tests locally:
Run RIE tests:
make test-rie HANDLERS_TO_BUILD="basic-lambda basic-sqs" make test-rieBuild specific examples:
EXAMPLES="basic-lambda basic-lambda-concurrent" make build-examples🔏 By submitting this pull request
cargo +nightly fmt.cargo clippy --fix.