-
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
[release/9.0] BinaryFormatter tests improvements #107540
Conversation
* Remove package references from library tests These tests should be referencing the product assemblies so that they test latest and not old bits. * Reference the OOB version of SRSF and make sure it's copied
…otnet#106858) * respect AppContext switch (which is currently enabled for all projects in the root Directory.Build.props file) * add project reference to all test projects that need working BF (and were being skipped for a while) * adjust to changes from dotnet#104202: EqualityComparer<string>.Default is mapped to StringEqualityComparer, but serialized as GenericEqualityComparer<string>
…t freed in the meantime, fixes dotnet#104905 (dotnet#106967)
* enable the BinaryFormatter tests in System.Runtime.Serialization.Formatters.Tests * add new test project, where the flag is disabled and it runs only 3 tests in total that ensure that * The SerializationGuard is no longer activated since BF was moved to the OOB package, the tests need to reflect that.
I agree we want better coverage of these in 9.0. If the fixes are test/infra only then we can treat as
Yeah, that's my biggest concern here - is that we batch up all the related test or infra changes necessary. Once ready, make sure you run the optional pipelines that broke before. |
Tagging subscribers to this area: @dotnet/area-infrastructure-libraries |
/azp list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving as tell-mode.
@adamsitnik unfortunately the CI just finished with failures in tvos and ios arm64 that seem related to this change:
Can you please address the failure and retarget this PR to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related CI failure.
cc @ivanpovazan I will add those to this PR. |
…undle when AOTing on Helix (dotnet#107079) * Do not treat assembly.pdb/xml files as native files to bundle * Bundle satellite assemblies as well
/backport to release/9.0-rc2 |
Started backporting to release/9.0-rc2: https://github.com/dotnet/runtime/actions/runs/10894273351 |
Great catch, apologies for missing it.
Thanks a lot @ericstj ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Maybe just for reference included the needed mono CI changes in the PR description for clarity (so it is not lost in the comments)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ericstj !
With what we have right now in
release/9.0
, most of theBinaryFormatter
tests are skipped.Backporting the following PRs is going to fix that: