Skip to content

Mark generated Lambda Annotations code - #2625

Open
gibkim wants to merge 1 commit into
aws:masterfrom
gibkim:fix/annotations-generated-code-2588
Open

gibkim wants to merge 1 commit into
aws:masterfrom
gibkim:fix/annotations-generated-code-2588

Conversation

@gibkim

@gibkim gibkim commented Nov 26, 2026

Copy link
Copy Markdown

Issue #, if available:

Fixes #2588.

Description of changes:

Mark generated Lambda handlers and the executable bootstrap with a descriptive auto-generated header. Add GeneratedCode to both generated classes and their entry points, and ExcludeFromCodeCoverage to the classes. The tool name and version come from the source generator assembly.

Update the T4 templates, their checked-in C# counterparts, and the expected generated sources. The only snapshot changes are the header and attributes.

Testing: Two existing source-generation tests reproduced the missing metadata on the base. All 593 source-generator tests pass on each of .NET 8 and .NET 10, and the generator builds for netstandard2.0.

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

@gibkim
gibkim requested review from a team as code owners November 26, 2026 23:17

This branch has not been deployed

No deployments
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.

Annotate auto-generated code

2 participants