Uh oh!
There was an error while loading. Please reload this page.
Remove unnecessary "return 100"s from tests - #89550
Conversation
ghost
commented
Jul 27, 2023
Tagging subscribers to this area: @dotnet/area-system-reflection-metadata Issue DetailsNote: contains #89521Add XUnitWrapperGenerator check for test methods that always return 100 and change them to void.
|
ghost
commented
Jul 27, 2023
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch Issue DetailsNote: contains #89521Add XUnitWrapperGenerator check for test methods that always return 100 and change them to void.
|
markples
commented
Jul 28, 2023
This should be ready @trylek@jkoritzinsky@TIHan cc @dotnet/jit-contrib. The actual change is small. Tests are almost entirely changing to void and very occasionally something related to that. I've scanned the entire diff though of course I'm the author. |
There was a problem hiding this comment.
For a future PR, I think it's worthwhile moving these checks into a separate analyzer instead of doing them as part of the source generator. If we do them in an analyzer, we can get better performance at build time and we could use better tools (like the IOperation APIs) to validate these sorts of scenarios.
There was a problem hiding this comment.
I like this idea but mainly did it this way because I'm unfamiliar with all of this and couldn't easily figure out how to set anything up (primarily copying and pasting in this file). So I'll either need a template for doing so or more time to turn the docs/bing chat into something real.
markples
commented
Jul 28, 2023
/azp run runtime-coreclr outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
markples
commented
Aug 8, 2023
new analyzer means a race condition with newly added tests (audit commits and/or rerun old test jobs) |
trylek
commented
Aug 22, 2023
I have rebased this against the current main, the change is passing locally for me, I plan to merge it in once I find the lab results reasonable. |
trylek
commented
Aug 22, 2023
/azp run runtime-coreclr outerloop |
trylek
commented
Aug 22, 2023
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
1 similar comment
|
Azure Pipelines successfully started running 1 pipeline(s). |
trylek
commented
Aug 22, 2023
Just like in the previous case runtime and outerloop are clean and runtime-extra-platforms, while not clean, doesn't look any worse than in any other runs, merging in. |
Add XUnitWrapperGenerator check for test methods that always return 100 and change them to void.