Skip to content

[master] Update dependencies from mono/linker#47709

Merged
marek-safar merged 5 commits intomasterfrom
darc-master-5f52e578-14f8-4808-8cf7-bb796d37745f
Feb 4, 2021
Merged

[master] Update dependencies from mono/linker#47709
marek-safar merged 5 commits intomasterfrom
darc-master-5f52e578-14f8-4808-8cf7-bb796d37745f

Conversation

@dotnet-maestro
Copy link
Contributor

@dotnet-maestro dotnet-maestro bot commented Feb 1, 2021

This pull request updates the following dependencies

From https://github.com/mono/linker

  • Subscription: a4e95b65-ca48-441c-403f-08d8446ddbba
  • Build: 20210203.1
  • Date Produced: 2/3/2021 5:53 PM
  • Commit: faf9cc056e4c6481ba3c061521477185e37a1fce
  • Branch: refs/heads/master

Microsoft.NET.ILLink.Tasks
 From Version 6.0.0-alpha.1.21079.1 -> To Version 6.0.0-alpha.1.21101.1
@ghost
Copy link

ghost commented Feb 1, 2021

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@ghost
Copy link

ghost commented Feb 1, 2021

Tagging subscribers to this area: @ViktorHofer
See info in area-owners.md if you want to be subscribed.

Issue Details

This pull request updates the following dependencies

From https://github.com/mono/linker

  • Subscription: a4e95b65-ca48-441c-403f-08d8446ddbba
  • Build: 20210201.1
  • Date Produced: 2/1/2021 1:50 PM
  • Commit: a30fc47b91a5794c3dfa82ea1e1a2127bdeccf98
  • Branch: refs/heads/master
Author: dotnet-maestro[bot]
Assignees: -
Labels:

area-Infrastructure

Milestone: -

Microsoft.NET.ILLink.Tasks
 From Version 6.0.0-alpha.1.21079.1 -> To Version 6.0.0-alpha.1.21101.2
@marek-safar
Copy link
Contributor

@mateoatr please resolve the IL2026 issues to unblock the merge

@vitek-karas
Copy link
Member

I have a fix for the linker issue in dotnet/linker#1798

After that change there are 3 new warnings (and some duplicates) which are valid and will need to be baselined (and eventually fixed):

F:\dotnet\runtime2\src\libraries\System.Data.Common\src\System\Data\ColumnTypeConverter.cs(96,21): Trim analysis warning IL2026: System.Data.ColumnTypeConverter.ConvertTo(ITypeDescriptorContext,CultureInfo,Object,Type): Using method 'System.Type.GetType(String,Func<AssemblyName,Assembly>,Func<Assembly,String,Boolean,Type>,Boolean)' which has 'RequiresUnreferencedCodeAttribute' which can break functionality when trimming application code. The type might be removed.
F:\dotnet\runtime2\src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.Core.cs(84,17): Trim analysis warning IL2026: System.Resources.ResourceReader.InitializeBinaryFormatter(): Using method 'System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream)' which has 'RequiresUnreferencedCodeAttribute' which can break functionality when trimming application code. BinaryFormatter serialization is not trim compatible because the Type of objects being processed cannot be statically discovered..
F:\dotnet\runtime2\src\libraries\System.Security.Cryptography.Primitives\src\System\Security\Cryptography\CryptoConfigForwarder.cs(20,13): Trim analysis warning IL2026: System.Security.Cryptography.CryptoConfigForwarder.BindCreateFromName(): Using method 'System.Security.Cryptography.CryptoConfig.CreateFromName(String)' which has 'RequiresUnreferencedCodeAttribute' which can break functionality when trimming application code. The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead..
  • The ColumnTypeConverter one is actually a reflection reference to Type.GetType - no idea why it's needed.
  • The ResourceReader one is a reflection reference to BinaryFormatter - this should be addressed by Resolve ILLink warnings for System.Resources.ResourceManager #47778
  • The CryptoConfigForwarder is a reflection reference to CryptoConfig.CreateFromName - this will probably just need to get the same RequiresUnreferenceCode and then deal with the fallout from that.

@vitek-karas
Copy link
Member

dotnet/linker#1798 has been merged. A new build should update this PR (I assume) and the number of warnings should reduce substantially. Then we will need to baseline the new warnings in the PR.

Microsoft.NET.ILLink.Tasks
 From Version 6.0.0-alpha.1.21079.1 -> To Version 6.0.0-alpha.1.21103.1
@marek-safar
Copy link
Contributor

@mateoatr could you add the 4 unique ones to the baseline?

@vitek-karas there is still a lot of duplicated warnings

@vitek-karas
Copy link
Member

Some of them look like duplicates but they're not:

ColumnTypeConverter.cs(96,21):  ... 'System.Type.GetType(String,Func<AssemblyName,Assembly>,Func<Assembly,String,Boolean,Type>,Boolean,Boolean)'
ColumnTypeConverter.cs(96,21):  ... 'System.Type.GetType(String,Func<AssemblyName,Assembly>,Func<Assembly,String,Boolean,Type>,Boolean)'
ColumnTypeConverter.cs(96,21):  ... 'System.Type.GetType(String,Func<AssemblyName,Assembly>,Func<Assembly,String,Boolean,Type>)'
ColumnTypeConverter.cs(96,21):  ... 'System.Type.GetType(String)' which has 'RequiresUnreferencedCodeAttribute'
ColumnTypeConverter.cs(96,21):  ... 'System.Type.GetType(String,Boolean)'

There does seem to be duplication on top of them though - I haven't seen it locally though.

Mateo Torres Ruiz and others added 2 commits February 4, 2021 09:34
…thub.com:dotnet/runtime into darc-master-5f52e578-14f8-4808-8cf7-bb796d37745f
@marek-safar marek-safar merged commit bbf9b67 into master Feb 4, 2021
@marek-safar marek-safar deleted the darc-master-5f52e578-14f8-4808-8cf7-bb796d37745f branch February 4, 2021 13:05
@ghost ghost locked as resolved and limited conversation to collaborators Mar 6, 2021
@danmoseley danmoseley added area-codeflow for labeling automated codeflow and removed area-Infrastructure labels Jul 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-codeflow for labeling automated codeflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants