Repository navigation
Port caching of method discovery to main - #4133
Conversation
|
@manfred-brands I was going to ask you for a review on this, but I would instead like to ask for some help :)
|
|
@stevenaw I didn't have time today, will look at it tomorrow. |
|
Thanks @manfred-brands No rush at all. My setup is acting up and I was having a hard time debugging it myself |
|
@stevenaw I have traced this to nunit 4.0 specific code introduced with #3926 where it calls unconstrained I then looked where else we called As Nunit now only interrogates know attributes, it will never trigger any exception from bad behaving 3rd party attributes. |
|
See my changes on top of your changes #4137 |
|
Thanks once again for all your help with this @manfred-brands |
|
@nunit/framework-team Is anyone up to reviewing this? It's a large PR but is mostly cherry picks and should sync a few large pieces of work between the two branches |
|
@stevenaw @manfred-brands This PR is rather big, but it is migration to 4.0 branch. I tried to look at the changes here, but there is simply too much. I believe you two have to agree if this looks ok or not, and then we just merge it in. What could possibly go wrong? |
🙂 |
|
Ok, then I suggest we just need to fix the merge conflicts and then we merge it, right ? |
|
That makes sense to me. |
|
I tried to merge this, but the conflicts are not that simple. The OSPlatformTranslator is complaining, and there also seems to be a ton of name clashes. I think it is best if either of you do this: @manfred-brands or @stevenaw . |
|
I will see if I can sort out the conflicts. |
Co-authored-by: Mikkel Nylander Bundgaard <mikkelbu@users.noreply.github.com>
We should only retrieve the attributes we deal with as others can throw exceptions.
3b5c64e to
0e495d1
Compare
|
I have rebased the branch and solved the merge conflicts. Then added three more commits:
Can someone @stevenaw or @OsirisTerje give this a final review? |
618806c to
aeed2b0
Compare
|
Thanks for this @manfred-brands !
Ah, I had been a little afraid of something like this. I noticed we simply added a null check. Based on your checking in this PR, should we instead add the reference back (in separate PR) or is it alright as-is? |
|
This PR looks ok to me. There's been a lot of catch-up it's had to do over the last while, and now that it's caught up I think it'd be great to merge it in. @OsirisTerje Are you able to approve? I'm unable to as I've created this PR. |
I could not see this in this PR, so I assume it was done somewhere else. If it fails on some platforms, we better add it back. I noticed we do refer to that assembly in this PR (by reflection). Its better to be safe than sorry wrt to this. |
|
@OsirisTerje I suspect the runtime/reflection issue could be from #4335 . I can spin up a PR to add it back, with a test for the used functionality |
|
@OsirisTerje @stevenaw If something uses async methods, System.Runtime should be loaded. If not we don't care. |
Fixes #4053
Fixes #4096 in main
Fixes #4107 in main
Fixes #4426
Migrates: