Skip to content

Remove RequiresPreviewFeatures attribute for Lambda Response Streaming#2467

Open
normj wants to merge 3 commits into
devfrom
normj/stream-ga
Open

Remove RequiresPreviewFeatures attribute for Lambda Response Streaming#2467
normj wants to merge 3 commits into
devfrom
normj/stream-ga

Conversation

@normj

@normj normj commented Jul 8, 2026

Copy link
Copy Markdown
Member

Issue #, if available:
#1635

Description of changes:
The Lambda response streaming changes have been deployed to the .NET managed runtimes so the RequiresPreviewFeatures attribute can be removed and the feature can be considered GA.

Some tests need some clean up because they were making incorrection assertions. The source was correct so no changes in what has been shipped. I'm tracking down separately how the tests were able to successfully merged into dev while failing.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

…g now that the changes have been deployed to the managed runtime.
@normj normj requested review from a team as code owners July 8, 2026 01:16
@normj normj requested review from GarrettBeatty and philasmar July 8, 2026 01:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes RequiresPreviewFeatures gating from Lambda response streaming and related APIs now that the capability is considered GA, and updates affected unit tests to assert the correct HTTP API v2 prelude shape.

Changes:

  • Removed RequiresPreviewFeatures attributes (and related preview-message constants) from response streaming and structured logging surfaces.
  • Updated response streaming tests to validate HTTP API v2 prelude behavior using single-value Headers (joining multi-values with ", "), and removed preview-attribute assertions.
  • Added an .autover change entry to publish the GA/preview-attribute removal in changelogs.

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 13 comments.

Show a summary per file
File Description
Libraries/test/Amazon.Lambda.AspNetCoreServer.Test/StreamingResponseBodyFeatureTests.cs Drops preview attribute usage in tests for streaming response body feature.
Libraries/test/Amazon.Lambda.AspNetCoreServer.Test/StreamingFunctionHandlerAsyncTests.cs Removes preview attributes and the test that asserted preview-only gating.
Libraries/test/Amazon.Lambda.AspNetCoreServer.Test/ResponseStreamingPropertyTests.cs Updates assertions to match HTTP API v2 prelude Headers behavior.
Libraries/test/Amazon.Lambda.AspNetCoreServer.Test/BuildStreamingPreludeTests.cs Updates prelude tests to validate Headers (v2) instead of MultiValueHeaders.
Libraries/test/Amazon.Lambda.AspNetCoreServer.Hosting.Tests/ResponseStreamingPropertyTests.cs Removes preview attribute from hosting-level response streaming property tests.
Libraries/test/Amazon.Lambda.AspNetCoreServer.Hosting.Tests/ResponseStreamingHostingTests.cs Removes preview attribute from hosting integration tests.
Libraries/src/Amazon.Lambda.Core/ResponseStreaming/LambdaResponseStreamFactory.cs Removes preview gating from response streaming factory API and message constant.
Libraries/src/Amazon.Lambda.Core/ResponseStreaming/LambdaResponseStream.cs Removes preview gating from the streaming Stream implementation.
Libraries/src/Amazon.Lambda.Core/ResponseStreaming/HttpResponseStreamPrelude.cs Removes preview gating from the HTTP prelude type.
Libraries/src/Amazon.Lambda.Core/LambdaLogger.cs Removes preview gating from ConfigureStructuredLogging.
Libraries/src/Amazon.Lambda.AspNetCoreServer/Internal/StreamingResponseBodyFeature.cs Removes preview gating from ASP.NET Core streaming response feature implementation.
Libraries/src/Amazon.Lambda.AspNetCoreServer/ApplicationLoadBalancerFunction.cs Removes preview attribute from streaming prelude builder override point.
Libraries/src/Amazon.Lambda.AspNetCoreServer/APIGatewayProxyFunction.cs Removes preview attribute from streaming prelude builder (REST API variant).
Libraries/src/Amazon.Lambda.AspNetCoreServer/APIGatewayHttpApiV2ProxyFunction.cs Removes preview attribute from streaming prelude builder (HTTP API v2 variant).
Libraries/src/Amazon.Lambda.AspNetCoreServer/AbstractAspNetCoreFunction.cs Removes preview-gating attributes and the preview message constant from base surface.
Libraries/src/Amazon.Lambda.AspNetCoreServer.Hosting/HostingOptions.cs Removes preview attribute from hosting option EnableResponseStreaming.
.autover/changes/9e75413c-9cb6-4521-aaca-09b557fff2b3.json Adds changelog messages for GA promotion / preview-attribute removal.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .autover/changes/9e75413c-9cb6-4521-aaca-09b557fff2b3.json
Comment thread .autover/changes/9e75413c-9cb6-4521-aaca-09b557fff2b3.json
Comment thread Libraries/src/Amazon.Lambda.Core/LambdaLogger.cs
Comment thread Libraries/test/Amazon.Lambda.AspNetCoreServer.Test/BuildStreamingPreludeTests.cs Outdated
@GarrettBeatty

Copy link
Copy Markdown
Contributor

the changes seem fine - i think you still need to update run-unit-tests target in buildtools/build.proj so it runs these tests right?

},
{
"Name": "Amazon.Lambda.Annotations",
"Type": "Minor",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i dont see any annotation changes in this pr but i see it in the changefile?

"Name": "Amazon.Lambda.PowerShellHost",
"Type": "Minor",
"ChangelogMessages": [
"Updated Amazon.Lambda.Core dependency to include Lambda Response Streaming support."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you missing some csproj updates or somthing somewhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants