-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Clean up usings in test cases assembly #88678
Conversation
Tagging subscribers to 'linkable-framework': @eerhardt, @vitek-karas, @LakshanF, @sbomer, @joperezr, @marek-safar Issue DetailsThe main goal here is to get rid of the unused Rather than hunt down the 10-20 files that were problematic I ran Rider's namespace clean up functionality on
|
There's something weird about the test assembly. VS refuses to cleanup any usings (it behaves as if all of them are necessary even though if I remove one which is unused everything works). And apparently Rider goes to the other extreme and removes even those which are needed (as seen by the failing tests). Oh well :-( |
Tests with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the cleanup!
...Mono.Linker.Tests.Cases/Attributes.Debugger/DebuggerDisplayAttributeOnAssemblyUsingTarget.cs
Outdated
Show resolved
Hide resolved
@vitek-karas I don't understand what the |
It's a check which looks through all of the failures and matches them against known bugs. It needs to wait for all the runs to finish - unfortunately the wasi leg seems to be stuck. I'll give it a bit more time and if that doesn't help we can merge regardless as nothing else seems to be failing. |
The main goal here is to get rid of the unused `System.Linq` usings. These cause problems for our UnityLinker tests that run against mono class libraries as it requires an additional reference. We could work around it by referencing everything in the mono class libraries, which is what illink does during it's tests. That said, some of the files had a lot of unnecessary usings and I don't think it's a bad thing to clean them up anyways. Rather than hunt down the 10-20 files that were problematic I ran Rider's namespace clean up functionality on `Mono.Linker.Tests.Cases`
Test failures are unrelated. Most of the failures have since been fixed by #88751. |
The main goal here is to get rid of the unused
System.Linq
usings. These cause problems for our UnityLinker tests that run against mono class libraries as it requires an additional reference. We could work around it by referencing everything in the mono class libraries, which is what illink does during it's tests. That said, some of the files had a lot of unnecessary usings and I don't think it's a bad thing to clean them up anyways.Rather than hunt down the 10-20 files that were problematic I ran Rider's namespace clean up functionality on
Mono.Linker.Tests.Cases