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] Fix calling existing ctor with MethodInvoker; share tests with invokers #90968

Merged
merged 2 commits into from
Aug 25, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 23, 2023

Backport of #90796 to release/8.0

/cc @jkotas @steveharter

Customer Impact

Refactored existing MethodInfo\ConstructorInfo tests so they can also run under the new invoker classes MethodInvoker\ConstructorInvoker which revealed a bug that fixed with this PR. The new MethodInvoker\ConstructorInvoker feature added in .NET 8.0 preview 7. These fixes should be ported to .NET 8 since they only affect the new APIs added in Preview 7 and will avoid a breaking change in .NET 9.

Testing

The refactored tests are new for MethodInvoker\ConstructorInvoker case, now all those unit tests are running under the MethodInvoker\ConstructorInvoker feature and all passing.

Risk

Low - the fix is well tested with the new refactored unit tests.

@ghost
Copy link

ghost commented Aug 23, 2023

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

Issue Details

Backport of #90796 to release/8.0

/cc @jkotas @steveharter

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-System.Reflection

Milestone: -

@carlossanlop
Copy link
Member

@steveharter @jkotas can you please fill out the template, get an approval and a sign-off?

@jkotas
Copy link
Member

jkotas commented Aug 24, 2023

@buyaa-n Could you please push it through the .NET 8.0 process since Steve is OOF?

@buyaa-n buyaa-n requested a review from ericstj August 24, 2023 04:14
@buyaa-n buyaa-n added the Servicing-consider Issue for next servicing release review label Aug 24, 2023
@buyaa-n
Copy link
Member

buyaa-n commented Aug 24, 2023

@buyaa-n Could you please push it through the .NET 8.0 process since Steve is OOF?

Sure, the template updated, added the Servicing-consider label so that it can go through tactics tomorrow CC @jeffhandley

@carlossanlop
Copy link
Member

Backports to RC2, before the snap, only require M2 approval. @jeffhandley

@jeffhandley
Copy link
Member

I'm deferring to @ericstj on this one. It'll get reviewed within the next couple business days.

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 discussed this with @steveharter last week and support this change. This is fixing a significant bug in a brand new 8.0 feature.

@steveharter
Copy link
Member

@carlossanlop please merge. Thanks

@carlossanlop carlossanlop added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Aug 25, 2023
@carlossanlop carlossanlop added this to the 8.0.0 milestone Aug 25, 2023
@carlossanlop carlossanlop merged commit 562a16a into release/8.0 Aug 25, 2023
172 of 177 checks passed
@carlossanlop carlossanlop deleted the backport/pr-90796-to-release/8.0 branch August 25, 2023 22:09
@ghost ghost locked as resolved and limited conversation to collaborators Sep 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Reflection Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants