Repository navigation
[libraries] Add ConditionalFact to wasm failing tests - #37822
Conversation
|
Tagging subscribers to this area: @safern, @ViktorHofer |
9ef2081 to
eb8c22e
Compare
29f35ae to
e7851ce
Compare
akoeplinger
left a comment
There was a problem hiding this comment.
A few build failures to fix, looks good otherwise.
There was a problem hiding this comment.
there's a build failure in this file because it doesn't have using System; at the top so the PlatformDetection type isn't found.
There was a problem hiding this comment.
Some other files also don't have using System; at the top, like src/libraries/System.Reflection.Metadata/tests/Utilities/AbstractMemoryBlockTests.cs and src/libraries/System.Collections.Concurrent/tests/ConcurrentDictionary/ConcurrentDictionaryTests.cs. Does RedactedLogValueIntegrationTest.cs need it specifically because its namespace is not part of Systems?
There was a problem hiding this comment.
Yes, correct. You can see it in this example: https://sharplab.io/#v2:EYLgtghgzgLgpgJwDQxASwDYB8B2ExxQAOEAxnAAQCyapCA9lPQGYwB0AYvfRQN4CwAKAoiKAAQDM4gEwUAwnyGjl4qWIAs1ABQBKRcJWGxARgCcWgEQALOBgz0LOgNxLDFAL6uRnwT6F4CYjJKEzYaOkYWdi4eAQMRSRl5fTdVcU0qXRTU0RNza1t7Rxd4lR9lH3cgA
There was a problem hiding this comment.
Is PlatformDetection.IsThreadingSupported considered just as some common approach to disable all the failing tests at the moment regardless the area?
There was a problem hiding this comment.
It's used for all tests that rely on starting new threads since WebAssembly doesn't support more than one thread. We have an exception with a message like "Cannot start threads on this runtime" when someone tries to start a new thread .
There was a problem hiding this comment.
This particular Console test fails with PNSE. If we use conditional fact then I need to close #37645
There was a problem hiding this comment.
I don't know which approach is preferred, but I can remove this change if #37645 is preferred. This PR was based solely off the failing test list, without looking into the test failures, so it could be that other tests fail with PNSE as well.
There was a problem hiding this comment.
Hmm we should only disable tests in this PR that failed with the "Cannot start threads on this runtime", not any PNSE, since we use PNSE for other cases that have nothing to do with threading. Thanks @MaximLipnin for noticing it.
6300f89 to
340be0c
Compare
…ependencyCheckTest
…st and fix DependencyCheckTest ConditionalFact
340be0c to
113928a
Compare
| public class DependencyCheckTest | ||
| { | ||
| [ConditionalFact(Helpers.OdbcNotAvailable)] | ||
| public static bool IsObdcNotAvailableAndThreadingSupported => Helpers.CheckOdbcNotAvailable() && PlatformDetection.IsThreadingSupported; |
|
@mdh1418 do the current disabled tests are only tests that fail with: |
|
@safern I believe so. Others (@vargaz and @akoeplinger ) have grepped the failures for |
This PR looks to skip tests failing on wasm browser by adding
ConditionalFactattributes to the failing tests based off of failing test names here