-
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
Tests in System.Data.Common crash on uapaot #21453
Comments
I can fix SqlDateTimeTest (not a contributor yet) |
@sjoerdverweij missed your post. That would be welcome except there is no way for ocmmunity folk to run uapaot tests... perhaps you'd like to make a different contribution? |
These tests still fail while running with TargetGroup=uapaot |
So far we have the following findings:
Add this to System.Private.Xml.csproj
|
@saurabh500 could you please take a look and fix this? |
@safern are you talking about reverting the PR which enable this test or a real fix? I am stuck at figuring out how to make System.Data.COmmon build with System.Private.Xml instead of the System.Xml.ReaderWriter. Any clues? |
I'm talking about a real fix. Will not revert the PR as the DateTimeTest seems to be fixed. I'm just confirming locally.
Not that come to my mind now but @joperezr might know. |
System.Data.Tests.SqlTypes.SqlDateTimeTest.GetTypeTest is indeed fixed. I don't see it failing anymore. Updating the issue description |
A little context here : I have already tried using ProjectReference to include the System.Private.Xml.csproj in the System.Data.Common.csproj (after removing the System.Xml.ReaderWriter) dependency. However I get compilation errors for all the Xml namespaces. |
Well, System.Xml.ReaderWriter is a contract assembly and System.Private.Xml is the implementation of that contract. Do you need an internal type or something that only exists at runtime for this? If so, you basically have to move all of your dependencies to be implementation assemblies instead. For an example of this, you can take a look at the implementation project of System.Collections, which builds against implementations instead of contracts. I can help you accomplish this offline if you'd like. |
@joperezr I need to change System.Private.Xml to expose an internal function for uapaot. That's why I need to change this dependency to compile System.Data.Common against System.Private.Xml.csproj I don't think I need to change all my dependencies to implementation. I could verify it by adding
and compiling with However the problems arise when I use a Condition on the above ItemGroup
Msbuild /v:d /p:TargetGroup=uapaot shows the TG being set to uap instead of uapaot |
The plan is to make the changes so that they are specific only to uapaot. |
I believe that you have fixed this by looking at the email thread we have going on, but let me know if I can be of any help in here. |
@saurabh500 you closed this from your PR but I didn't see that you re-enabled the tests in your PR. Could you please re-enabled them? |
Ah ok. I was working with a fork before you disabled the tests again. So in my workspace I always had the tests enabled. I should have rebased. |
The following tests crash on uapaot:
The text was updated successfully, but these errors were encountered: