-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Fix unconditional success in CLR tests #100905
Fix unconditional success in CLR tests #100905
Conversation
Test introduced in dotnet#100289 failed the build of CLR tests for e.g. RISC-V: ``` /runtime/src/tests/Loader/classloader/explicitlayout/Regressions/100220/Runtime_100220.cs(15,23): error XUW1002: Tests should not unconditionally return 100. Convert to a void return. ```
Question for @tomeksowi and any others who have hit these - what are you doing to expose this? Are you possibly running on a branch with a very old dotnet/main? I believe that #91235 disabled the analyzers due to the addition of |
@markples for both cases when I fixed similar ones our CI built latest main branch from scratch in clean cloned repo, so all nugets and sdk were downloaded during build. Maybe the way we build has some effect, but I'm not exactly sure right now for which configuration we've observed this. It probably was smth like #97791 (comment). |
Thank you @gbalykov - the BuildAsStandalone is the difference. To be clear, this isn't incorrect on your part, but it is different from the CI jobs and most local builds. It's useful to know this because it is consistent with my theory above. |
Test introduced in dotnet#100289 failed the build of CLR tests for e.g. RISC-V: ``` /runtime/src/tests/Loader/classloader/explicitlayout/Regressions/100220/Runtime_100220.cs(15,23): error XUW1002: Tests should not unconditionally return 100. Convert to a void return. ```
Test introduced in #100289 failed the build of CLR tests for e.g. RISC-V:
Part of #84834, cc @dotnet/samsung