Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/8.0] Make Options source gen support Validation attributes having constructor with array parameters #91934

Merged
merged 4 commits into from
Sep 14, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 12, 2023

Backport of #91915 to release/8.0

/cc @tarekgh

Customer Impact

.NET 8.0 introduces the Options Validation Source Generator, the change here addressing a specific scenario involving validation attribute constructors that utilize arrays, including those using the params keyword. The cloud native team encountered an issue where the source generator would throw an exception, resulting in the failure to generate any code and disrupting the build process. This fix is crucial to ensure the successful completion of the feature and remove obstacles for source generator users.

Testing

It passed all regression tests and I have added more tests to cover the new cases we are fixing.

Risk

Low because we didn't change any handling in the already supported cases. The change here is an addition to cover the new case.

IMPORTANT: If this backport is for a servicing release, please verify that:

  • The PR target branch is release/X.0-staging, not release/X.0.

  • If the change touches code that ships in a NuGet package, you have added the necessary package authoring and gotten it explicitly reviewed.

@ghost
Copy link

ghost commented Sep 12, 2023

Tagging subscribers to this area: @dotnet/area-extensions-options
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #91915 to release/8.0

/cc @tarekgh

Customer Impact

Testing

Risk

IMPORTANT: If this backport is for a servicing release, please verify that:

  • The PR target branch is release/X.0-staging, not release/X.0.

  • If the change touches code that ships in a NuGet package, you have added the necessary package authoring and gotten it explicitly reviewed.

Author: github-actions[bot]
Assignees: -
Labels:

area-Extensions-Options

Milestone: -

@tarekgh tarekgh added this to the 8.0.0 milestone Sep 12, 2023
@tarekgh tarekgh self-assigned this Sep 12, 2023
@tarekgh tarekgh added the Servicing-consider Issue for next servicing release review label Sep 12, 2023
@tarekgh
Copy link
Member

tarekgh commented Sep 12, 2023

@ericstj could you please have a look and approve it if you have no concern with the change? Thanks!

@ericstj ericstj changed the title [release/8.0] Make Options source gen support Validation attributes having constructor with params Parameter [release/8.0] Make Options source gen support Validation attributes having constructor with array Parameter Sep 12, 2023
@ericstj ericstj changed the title [release/8.0] Make Options source gen support Validation attributes having constructor with array Parameter [release/8.0] Make Options source gen support Validation attributes having constructor with array parameters Sep 12, 2023
Copy link
Member

@ericstj ericstj left a comment

Choose a reason for hiding this comment

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

I agree with the scenario here just had a couple questions.

Co-authored-by: Eric StJohn <[email protected]>
Copy link
Member

@jeffhandley jeffhandley left a comment

Choose a reason for hiding this comment

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

Looks good to me and has my support for RC2

Copy link
Member

@ericstj ericstj left a comment

Choose a reason for hiding this comment

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

LGTM, @artl93 this is ready for your approval.

@artl93
Copy link
Member

artl93 commented Sep 13, 2023

Otherwise, M2 Approved.

@artl93 artl93 added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Sep 13, 2023
@carlossanlop carlossanlop merged commit 5c03c88 into release/8.0 Sep 14, 2023
107 of 108 checks passed
@carlossanlop carlossanlop deleted the backport/pr-91915-to-release/8.0 branch September 14, 2023 00:08
@radical radical mentioned this pull request Sep 26, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Oct 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Extensions-Options Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants