Repository navigation
Serialization reenable tests - #118507
Merged
StephenMolloy merged 7 commits intoAug 12, 2025
Merged
Serialization reenable tests#118507
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request re-enables previously disabled serialization tests by removing or modifying [ActiveIssue] attributes across multiple test files. The changes indicate that platform-specific issues (particularly on iOS/tvOS and browser/WASM platforms) have been resolved or the test conditions have been refined to be more specific about when tests should be skipped.
Key changes include:
- Removal of iOS/tvOS-specific test skips for DataContractSerializer tests (issue #60462)
- Consolidation of aggressive trimming-related test attributes to be more targeted
- Correction of issue reference URLs to include full GitHub links
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| ExporterTypesTests.cs | Consolidated ActiveIssue attributes for aggressive trimming and WASI platforms |
| ExporterApiTests.cs | Simplified ActiveIssue to target only aggressive trimming builds, commented out platform-specific variants |
| XmlDictionaryWriterTest.cs | Removed browser/MonoAOT-specific test skip |
| DataContractSerializerStressTests.cs | Removed Mono runtime-specific test skip |
| DataContractSerializer.cs | Removed multiple iOS/tvOS test skips and updated issue URLs to full GitHub links |
| RoundTripTest.cs | Refined trimming-related test attributes and added explanatory comments |
| XmlSerializerTests.cs | Removed tvOS-specific skips for collection tests and updated issue URL format |
| XmlSerializerTests.RuntimeOnly.cs | Removed multiple platform-specific test skips |
Comments suppressed due to low confidence (7)
Contributor
Author
|
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
|
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
This was referenced Aug 8, 2025
Contributor
Author
|
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
|
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
mconnew
reviewed
Aug 8, 2025
mconnew
reviewed
Aug 8, 2025
mconnew
reviewed
Aug 8, 2025
mconnew
reviewed
Aug 8, 2025
This was referenced Aug 19, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates test attributes in several serialization-related test files, primarily by removing or modifying
[ActiveIssue]annotations. These changes generally indicate that previously failing or skipped tests (due to platform-specific issues) are now considered stable enough to run, or the scope of the issues has been refined. The most important changes are grouped below:Platform Issue Attribute Removals (Test Enablement):
[ActiveIssue]attributes from many tests inDataContractSerializer.csthat previously skipped them on iOS/tvOS due to issue [tvOS] System.Runtime.Serialization.Xml.ReflectionOnly.Tests: System.ExecutionEngineException : Attempting to JIT compile method while running in aot-only mode. #60462, enabling these tests to run on those platforms. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12][ActiveIssue]attributes from several tests inXmlSerializerTests.RuntimeOnly.csthat were previously skipped due to issues Xml_TypeWithReadOnlyMyCollectionProperty failing on CI #1395 and [tvOS] System.Runtime.Serialization.Xml.ReflectionOnly.Tests: System.ExecutionEngineException : Attempting to JIT compile method while running in aot-only mode. #60462, enabling them for all platforms. [1] [2] [3]Platform Issue Attribute Updates (Issue Reference Correction):
[ActiveIssue("34072", TestRuntimes.Mono)]to[ActiveIssue("https://github.com/dotnet/runtime/issues/34072", TestRuntimes.Mono)]in bothXmlSerializerTests.csandDataContractSerializer.csfor better issue tracking. [1] [2] [3]Test Coverage Improvements for Immutable/ReadOnly Collections:
[ActiveIssue]attributes from tests for read-only and immutable collections inXmlSerializerTests.cs, enabling these tests on tvOS. [1] [2]Test Attribute Refinement and Commentary:
RoundTripTest.cs, refined[ActiveIssue]attributes to more accurately reflect trimming-related issues and added commentary about inconsistent test results on browser/wasm/Mono-CoreCLR combinations. [1] [2]These changes collectively improve test coverage and reliability across multiple platforms by re-enabling tests and providing clearer issue tracking.