-
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
Test failure: System.Runtime.Serialization.Formatters.Tests.BinaryFormatterTests/ValidateAgainstBlobs(obj: CookieContainer { Capacity = 10, Count = 1, MaxCookieSize = 1024, PerDomainCapacity = 5 }, blobs: [... #22562
Test failure: System.Runtime.Serialization.Formatters.Tests.BinaryFormatterTests/ValidateAgainstBlobs(obj: CookieContainer { Capacity = 10, Count = 1, MaxCookieSize = 1024, PerDomainCapacity = 5 }, blobs: [... #22562
Comments
@joperezr Mac issue I mentioned I decoded and I see @ViktorHofer says The good thing: The serialization payload isn’t missing any fields, all names are in it. Only the value at the end of the payload is missing: en-US. After a quick look it seems like en-US is the value of the field m_name in CompareInfo. I don’t know why it is missing in the payload only for OSX. Was this the first time it failed? Maybe this has to do with some production code differences of CompareInfo on OSX? |
Ask @ViktorHofer if you need help |
I can't repro this on my Mac, I have |
I checked the RuntimeInformation of the test that @danmosemsft added, and here are the differences: RuntimeInfo of my machine (test passes)
Runtime Info on Helix (tests do not pass)
|
@ViktorHofer there are similar errors on Windows 10 and Fedora, in the 2.0 branch (not nesc same cause) |
Yes I'm investigating and was following up on that here: dotnet/corefx#21734 If I don't find the root cause by today I will just disable this one blob sanity check for CookieContainer. I still think it's somehow related to reflection... |
@tarekgh we get different results when serializing a CookieContainer object which has a CompareInfo object in it on OSX. The serialized blob doesn't contain the m_name field value: https://www.diffchecker.com/wIO3OQ2U This is the serialized object: Any idea why this is happening? As you can read above this isn't happening on Darwin 16.6 but on Darwin 16.4. |
are we running on exactly same environment? I mean I am seeing in the original serialization data en-US is used. Are we using exactly the same on OSX? could be the used culture is the Invariant which has empty string name? |
Yes, it's the same test which passed on Windows but failed on OSX (Darwin 16.4). I'm not 100% sure which Culture is used for the CookieContainer. Will check later. |
I saw this cookiecontainer failure on a Unix run yesterday.. |
Could be. But what I'm asking Tarek here is about the missing field name value. If you saw the test falling it could be something else in the blob. |
I can't find the Unix failure now -- it was in a PR. I see SortedList failing in 2.0 now (I guess this run had the change to skip CookieContainer):
|
Aha, here's the CookieContainer failure showing up in Windows 10 and in Fedora 26 (before you disabled the check, obviusly) |
Assinging to @ViktorHofer since he was looking into this. |
Yes, but I'm currently at an internal event. I can look into it earliest by Sunday. |
@safern The log you posted is a different issue (AdjustmentRule type, not CookieContainer type). |
You're right. Deleting my comment. |
The failure now is @tarekgh 's workaround in ae66307 looks like it was for @ViktorHofer @tarekgh do we need to add TimeZoneInfo itself as a workaround? |
@ViktorHofer may need to investigate why we are getting this serialization failure and possibly fix the test. We decided the code unification effort will not be done for UWP6.0 |
Moved out of UWP milestone. |
Code unification of TimeZoneInfo is a non goal for UWP6.0 but for .NET Core 2.1. The test wasn't failing before and I am not sure why it's failing now. So the required work here is to
I'm on it. |
Found the failure. The Culture=neutral casing is different (which I fixed a while ago). Stored blob: Runtime generated blob: I'm not exactly sure which codebase the UWP F5 tests are picking up as both coreclr and corert TimeZoneInfo versions have the lower cased |
I thought the F5 tests would use the coreclr release/uwp6.0 branch: https://github.com/dotnet/coreclr/blob/release/uwp6.0/src/mscorlib/src/System/TimeZoneInfo.cs#L32 |
I can't repro that locally. It seems to be somehow related to a CI package mismatch. Closing for now. |
@ViktorHofer decoded, basically same as I noted above earlier,
On OSX both versions, the en-US is expected but it is not present causing the test to fail. |
It's a long standing issue now... Do we have OSX 10.12/10.13 machines I can connect to? I don't have one myself. I will probably also need help from @tarekgh. |
@ViktorHofer let me know how I can help you here |
I assume @tarekgh has a machine as he has some other 10.13 issues to take care of. If not Priya does. |
I don't have 10.13 machine but we had a remote which can be used. I'll communicate the details to @ViktorHofer |
@ViktorHofer do you know if this run has your fix? |
The PR was merged 22 hours ago so I expect the fix to be in it. But setting the culture helped because CookieContainer isn't failing anymore! Now DataTable is failing, I just discovered that the serialized xml contains a line which stores the culture:
I need to update the stored blobs. I don't know why that only fails on OSX. |
most likely is the OSX machine doesn't have en-US as the user language and instead, we use invariant. |
So should I instead use Invariant for all the tests? |
You need to ensure having the same culture used in the serialized stream and when the test runs. If you can enforce specific culture in the serialized stream and have the same culture used in test validation that will guarantee same results. choosing Invariant is good. |
@tarekgh why is OSX always behaving differently? Now with InvariantCulture the difference is the following: Stored DataSet blob line: Runtime generated DataSet blob line: |
Looking at the code the check !dt.Locale.Equals(CultureInfo.CurrentCulture) I believe the OSX run has current culture is invariant which will cause setting _dsElement.SetAttribute(Keywords.MSD_USECURRENTLOCALE, Keywords.MSDNS, Keywords.TRUE); Your test has to handle this as the type is producing different serialization data depending on the current culture. |
BTW @ViktorHofer maybe improve ValidateAgainstBlobs to log the decoded blobs .. would be easier since I don't thikn we've seen the last of ValidateAgainstBlobs... |
Opened on behalf of @danmosemsft
The test
System.Runtime.Serialization.Formatters.Tests.BinaryFormatterTests/ValidateAgainstBlobs(obj: CookieContainer { Capacity = 10, Count = 1, MaxCookieSize = 1024, PerDomainCapacity = 5 }, blobs: [...
has failed.The stored blob for type System.Net.CookieContainer is outdated and needs to be updated.
Stored blob: AAEAAAD/////AQAAAAAAAAAMAgAAAElTeXN0ZW0sIFZlcnNpb249NC4wLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5BQEAAAAaU3lzdGVtLk5ldC5Db29raWVDb250YWluZXIGAAAADW1fZG9tYWluVGFibGUPbV9tYXhDb29raWVTaXplDG1fbWF4Q29va2llcxVtX21heENvb2tpZXNQZXJEb21haW4HbV9jb3VudA5tX2ZxZG5NeURvbWFpbgMAAAAAARxTeXN0ZW0uQ29sbGVjdGlvbnMuSGFzaHRhYmxlCAgICAIAAAAJAwAAAAAEAAAKAAAABQAAAAEAAAAGBAAAAAAEAwAAABxTeXN0ZW0uQ29sbGVjdGlvbnMuSGFzaHRhYmxlBwAAAApMb2FkRmFjdG9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ZW1zBV9zaXplCF92ZXJzaW9uBQAACAgJGAAAAAEAAAABAAAAEBgAAAAEAAAACRkAAAANAwUZAAAAEVN5c3RlbS5OZXQuQ29va2llFQAAAAltX2NvbW1lbnQMbV9jb21tZW50VXJpD21fY29va2llVmFyaWFudAltX2Rpc2NhcmQIbV9kb21haW4RbV9kb21haW5faW1wbGljaXQJbV9leHBpcmVzBm1fbmFtZQZtX3BhdGgPbV9wYXRoX2ltcGxpY2l0Bm1fcG9ydA9tX3BvcnRfaW1wbGljaXQLbV9wb3J0X2xpc3QIbV9zZWN1cmUKbV9odHRwT25seQttX3RpbWVTdGFtcAdtX3ZhbHVlCW1fdmVyc2lvbgttX2RvbWFpbktleQ9Jc1F1b3RlZFZlcnNpb24OSXNRdW90ZWREb21haW4BBAQAAQAAAQEAAQAHAAAAAQABAAAKU3lzdGVtLlVyaQIAAAAYU3lzdGVtLk5ldC5Db29raWVWYXJpYW50AgAAAAEBDQEBCAEBDQgBAQIAAAAJBAAAAAoF5f///xhTeXN0ZW0uTmV0LkNvb2tpZVZhcmlhbnQBAAAAB3ZhbHVlX18ACAIAAAABAAAAAAYcAAAACTEyNy4wLjAuMQAAAAAAAAAAAAYdAAAABW5hbWUxCRMAAAAACQQAAAABCgAAgFhsCQ2+tQgGIAAAAAV2YWx1ZQAAAAAJBwAAAAAACw==
Expected: True
Actual: False
Build : Master - 20170626.01 (Core Tests)
Failing configurations:
The text was updated successfully, but these errors were encountered: