Skip to content

[wasm] Misc tests related fixes - #73884

Merged
radical merged 10 commits into
dotnet:mainfrom
radical:misc-fixes
Aug 14, 2022
Merged

radical merged 10 commits into
dotnet:mainfrom
radical:misc-fixes

Conversation

@radical

@radical radical commented Aug 13, 2022 •

Copy link
Copy Markdown
Member
  • Disable subtlecrypto tests
  • Improve build times for runtime packs, in case of Wasm.Build.Tests
  • Fix incremental builds for the above
  • Fix running samples on threaded builds
  • Don't run only smoke tests for EAT. This will help in catching trimming errors
  • Fix trimming errors with tests

Fixes #73872
Fixes #73901

@radical radical added arch-wasm WebAssembly architecture test-enhancement Improvements of test source code area-Build-mono labels Aug 13, 2022
@ghost ghost assigned radical Aug 13, 2022
@ghost

ghost commented Aug 13, 2022

Copy link
Copy Markdown

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details
  • Disable subtlecrypto tests
  • Improve build times for runtime packs, in case of Wasm.Build.Tests
  • Fix incremental builds for the above
  • Fix running samples on threaded builds
Author: radical
Assignees: -
Labels:

arch-wasm, test-enhancement, area-Build-mono

Milestone: -

@radical

radical commented Aug 13, 2022

Copy link
Copy Markdown
Member Author

/azp run runtime-wasm

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@radical radical mentioned this pull request Aug 13, 2022
8 tasks done
@radical radical changed the title [wasm] Misc fixes [wasm] Misc tests, and build fixes Aug 13, 2022
@radical radical changed the title [wasm] Misc tests, and build fixes [wasm] Misc tests related fixes Aug 13, 2022
@radical
radical marked this pull request as ready for review August 13, 2022 12:08
@radical
radical requested review from akoeplinger, eerhardt, lewing and steveisok and removed request for lewing and pavelsavara August 13, 2022 12:08
- Building, and running all the tests for EAT case will help catch
linker errors that can slip through.
@radical
radical requested a review from lambdageek August 13, 2022 15:18
@radical

radical commented Aug 13, 2022

Copy link
Copy Markdown
Member Author

/azp run runtime-wasm

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@radical
radical removed the request for review from lambdageek August 13, 2022 15:19
@radical
radical requested review from maraf and pavelsavara August 13, 2022 15:19
@radical radical added this to the 7.0.0 milestone Aug 13, 2022
@radical

radical commented Aug 13, 2022

Copy link
Copy Markdown
Member Author

I want to land this for 7.0 .

@radical

radical commented Aug 13, 2022

Copy link
Copy Markdown
Member Author

/azp run runtime-wasm

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@radical

radical commented Aug 13, 2022

Copy link
Copy Markdown
Member Author

This fixes trimming errors on main too.

@lambdageek lambdageek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(primarily looked at the tasks, but the rest also makes sense to me)

@lambdageek

Copy link
Copy Markdown
Member
Starting:    System.Runtime.Serialization.Json.ReflectionOnly.Tests.dll
[19:15:51] fail: [FAIL] DataContractJsonSerializerTests.DCJS_VerifyDateTimeForFormatStringDCJsonSerSettings
[19:15:51] info: System.InvalidOperationException : No set method for property 'UtcDateTime' in type 'System.Runtime.Serialization.DateTimeOffsetAdapter'.
[19:15:51] info:    at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
[19:15:51] info:    at DataContractJsonSerializerTests.SerializeAndDeserialize[DateTimeOffset](DateTimeOffset value, String baseline, DataContractJsonSerializerSettings settings, Func`1 serializerFactory, Boolean skipStringCompare)
[19:15:51] info:    at System.Reflection.MethodInvoker.InterpretedInvoke(Object , Span`1 , BindingFlags )
[19:15:52] fail: [FAIL] DataContractJsonSerializerTests.DCJS_ClassWithDatetimeOffsetTypeProperty
[19:15:52] info: System.InvalidOperationException : No set method for property 'UtcDateTime' in type 'System.Runtime.Serialization.DateTimeOffsetAdapter'.
[19:15:52] info:    at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
[19:15:52] info:    at DataContractJsonSerializerTests.SerializeAndDeserialize[TypeWithDateTimeOffsetTypeProperty](TypeWithDateTimeOffsetTypeProperty value, String baseline, DataContractJsonSerializerSettings settings, Func`1 serializerFactory, Boolean skipStringCompare)
[19:15:52] info:    at System.Reflection.MethodInvoker.InterpretedInvoke(Object , Span`1 , BindingFlags )
[19:15:52] info: Finished:    System.Runtime.Serialization.Json.ReflectionOnly.Tests.dll

haven't seen these before

@radical

radical commented Aug 14, 2022

Copy link
Copy Markdown
Member Author

The failures are caused because:

  1. main has trimming errors, which we fixed here ([wasm] Tests failing to build with trimming #73901)
  2. And we are now (as of this PR) running all the EAT tests, which then reveals the errors that you mentioned caused by trimming.

@radical

radical commented Aug 14, 2022 •

Copy link
Copy Markdown
Member Author

There is a new linker update PR open (#73894), and this might be better solved over there.
So, w.r.t the linker issues:

  • this PR makes the situation slightly better but doesn't fully fix it.
  • does not make it worse!

I think we can merge this (on red). And I'll follow up in the other PR to fix all the linker issues.

@radical
radical merged commit 7d986fa into dotnet:main Aug 14, 2022
@radical
radical deleted the misc-fixes branch August 14, 2022 01:30
@ghost ghost locked as resolved and limited conversation to collaborators Sep 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasm WebAssembly architecture area-Build-mono test-enhancement Improvements of test source code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[wasm] Tests failing to build with trimming Test failure: WasmTestOnBrowser-subtlecrypto-System.Security.Cryptography.Tests

4 participants