Skip to content

Serialization reenable tests - #118507

Merged
StephenMolloy merged 7 commits into
dotnet:mainfrom
StephenMolloy:Serialization-Reenable-Tests
Aug 12, 2025
Merged

StephenMolloy merged 7 commits into
dotnet:mainfrom
StephenMolloy:Serialization-Reenable-Tests

Conversation

@StephenMolloy

Copy link
Copy Markdown
Contributor

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):

Platform Issue Attribute Updates (Issue Reference Correction):

  • Updated [ActiveIssue("34072", TestRuntimes.Mono)] to [ActiveIssue("https://github.com/dotnet/runtime/issues/34072", TestRuntimes.Mono)] in both XmlSerializerTests.cs and DataContractSerializer.cs for better issue tracking. [1] [2] [3]

Test Coverage Improvements for Immutable/ReadOnly Collections:

  • Removed [ActiveIssue] attributes from tests for read-only and immutable collections in XmlSerializerTests.cs, enabling these tests on tvOS. [1] [2]

Test Attribute Refinement and Commentary:

  • In 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.

@StephenMolloy StephenMolloy added this to the 10.0.0 milestone Aug 8, 2025
@StephenMolloy StephenMolloy self-assigned this Aug 8, 2025
Copilot AI review requested due to automatic review settings August 8, 2025 00:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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)

@StephenMolloy

Copy link
Copy Markdown
Contributor Author

/azp run runtime-extra-platforms

@azure-pipelines

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

@StephenMolloy

Copy link
Copy Markdown
Contributor Author

/azp run runtime-extra-platforms

@azure-pipelines

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

@StephenMolloy

Copy link
Copy Markdown
Contributor Author

/azp run runtime-extra-platforms

@azure-pipelines

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

@StephenMolloy

Copy link
Copy Markdown
Contributor Author

/azp run runtime-extra-platforms

@azure-pipelines

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

@mconnew mconnew 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.

:shipit:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants