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:
Build integration tests step failing its unit test
https://github.com/awslabs/aws-lambda-rust-runtime/actions/runs/14964429921/job/42031762957
For this one, we don't want to actually run the test during non-integ-test workflow runs, just build the package. Tweaking the workflow config to accomplish that.
Clippy failure due to large enum variant
https://github.com/jlizen/aws-lambda-rust-runtime/actions/runs/15074705748/job/42379333173
We have what is essentially a handrolled futures::future::MaybeDone in our runtime's tower service. We need this in order to model the case where we can't call the inner service at all because of a failure to process the lambda invocation into a lambda event, in which case the future is immediately ready, and then its output is fairly large since it is handing the caller a new http request to make to the runtime.
I think boxing is probably the right choice here, to avoid the error handling path bloating the happy path's variant to be 10x the size it needs to be. Most users would presumably prefer their happy path to be a bit more efficient at the cost of an extra allocation on an unhappy path that should be infrequent and will anyway fail the overall invocation (and possibly kill their runtime).
Technically
MaybeDone
would be slightly more efficient by saving us an Option, but it so trivial that it's not worth the refactor.🔏 By submitting this pull request
cargo +nightly fmt
.cargo clippy --fix
.