Skip to content
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

[master] Update dependencies from mono/linker #15955

Merged

Conversation

dotnet-maestro[bot]
Copy link
Contributor

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

This pull request updates the following dependencies

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

  • Subscription: 9ac01057-d33d-4509-c9e1-08d846b6e5b9
  • Build: 20210224.3
  • Date Produced: 2/24/2021 11:49 AM
  • Commit: 6b3a3050c70577bd1b3fd7611eef56679e22a4f1
  • Branch: refs/heads/main

Microsoft.NET.ILLink.Analyzers , Microsoft.NET.ILLink.Tasks
 From Version 6.0.100-preview.2.21118.1 -> To Version 6.0.100-preview.2.21118.3
@dotnet-issue-labeler
Copy link

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.

Microsoft.NET.ILLink.Analyzers , Microsoft.NET.ILLink.Tasks
 From Version 6.0.100-preview.2.21118.1 -> To Version 6.0.100-preview.2.21118.4
Microsoft.NET.ILLink.Analyzers , Microsoft.NET.ILLink.Tasks
 From Version 6.0.100-preview.2.21118.1 -> To Version 6.0.100-preview.2.21122.1
sbomer added a commit to sbomer/sdk that referenced this pull request Feb 23, 2021
Using the same property that suppresses the linker warnings. Includes a
manual dependency update to unblock dotnet#15955.
sbomer added a commit to sbomer/sdk that referenced this pull request Feb 23, 2021
Using the same property that suppresses the linker warnings. Includes a
manual dependency update to unblock dotnet#15955.
@marek-safar
Copy link
Contributor

�/datadisks/disk1/work/B8C80A25/p/d/sdk/6.0.100-ci/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.ILLink.targets(91,32): error MSB4022: The result "" of evaluating the value "$(ILLinkTasksAssembly)" of the "AssemblyFile" attribute in element is not valid.

@ViktorHofer there seem to be several failures caused by the linker target change. Could you look into that or should we revert your change?

@ViktorHofer
Copy link
Member

Yes, will take a look

Microsoft.NET.ILLink.Analyzers , Microsoft.NET.ILLink.Tasks
 From Version 6.0.100-preview.2.21118.1 -> To Version 6.0.100-preview.2.21124.1
@akoeplinger
Copy link
Member

Looks like there are new test failures now, e.g.

    Microsoft.NET.Publish.Tests.GivenThatWeWantToRunILLink.ILLink_can_treat_warnings_not_as_errors(targetFramework: "net5.0") [FAIL]
      The command output did not contain expected result: warning IL2075
      
      File Name: C:\h\w\B68209A4\p\d\dotnet.exe
      Arguments: msbuild /t:Publish C:\h\w\B68209A4\t\dotnetSdkTests\ccodqq25.ewt\ILLink_can_tr---39A8EECA\AnalysisWarnings\AnalysisWarnings.csproj /restore /p:RuntimeIdentifier=win10-x64 /p:SelfContained=true /p:PublishTrimmed=true /p:SuppressTrimAnalysisWarnings=false /p:TreatWarningsAsErrors=true /p:WarningsNotAsErrors=IL2075
      Exit Code: 1
      StdOut:
      Microsoft (R) Build Engine version 16.10.0-preview-21122-01+f0eebf287 for .NET
      Copyright (C) Microsoft Corporation. All rights reserved.
      
        Determining projects to restore...
        Restored C:\h\w\B68209A4\t\dotnetSdkTests\ccodqq25.ewt\ILLink_can_tr---39A8EECA\AnalysisWarnings\AnalysisWarnings.csproj (in 248 ms).
        You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
      C:\h\w\B68209A4\t\dotnetSdkTests\ccodqq25.ewt\ILLink_can_tr---39A8EECA\AnalysisWarnings\AnalysisWarnings.cs(21,13): error IL2026: Using method 'System.Type.GetType(string)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. The type might be removed. [C:\h\w\B68209A4\t\dotnetSdkTests\ccodqq25.ewt\ILLink_can_tr---39A8EECA\AnalysisWarnings\AnalysisWarnings.csproj]
      C:\h\w\B68209A4\t\dotnetSdkTests\ccodqq25.ewt\ILLink_can_tr---39A8EECA\AnalysisWarnings\AnalysisWarnings.cs(10,9): error IL2026: Using method 'Program.IL_2026()' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Testing analysis warning IL2026. [C:\h\w\B68209A4\t\dotnetSdkTests\ccodqq25.ewt\ILLink_can_tr---39A8EECA\AnalysisWarnings\AnalysisWarnings.csproj]

Microsoft.NET.ILLink.Analyzers , Microsoft.NET.ILLink.Tasks
 From Version 6.0.100-preview.2.21118.1 -> To Version 6.0.100-preview.2.21124.2
Microsoft.NET.ILLink.Analyzers , Microsoft.NET.ILLink.Tasks
 From Version 6.0.100-preview.2.21118.1 -> To Version 6.0.100-preview.2.21124.3
@joeloff
Copy link
Member

joeloff commented Feb 24, 2021

Are those failures related to the linker changes?

@sbomer
Copy link
Member

sbomer commented Feb 24, 2021

Those failures should be addressed by #16021. (Yes, they are because we started getting additional warnings from the linker Roslyn analyzer with dotnet/linker#1844)

@marek-safar
Copy link
Contributor

@sbomer could you commit relevant NotHaveStdOutContaining fixes to this PR so we can merge it before 16201 ?

@sbomer
Copy link
Member

sbomer commented Feb 24, 2021

@marek-safar I don't think we should take the update without 16021 because it breaks the scenario tests are validating (that these warnings are suppressed by default). It also looks like the I need to make one more test fix for the windows legs - so it might be faster to get the update in as part of 16021 anyway. If I get blocking feedback on that change and we really need it now, I can temporarily disable the failing tests here to unblock it.

@marek-safar
Copy link
Contributor

@sbomer you could disable the tests temporary too

@sbomer
Copy link
Member

sbomer commented Feb 24, 2021

I'll disable the tests if #16021 doesn't go in by EOD

sbomer added a commit that referenced this pull request Feb 24, 2021
* Suppress illink roslyn analyzer warnings

Using the same property that suppresses the linker warnings. Includes a
manual dependency update to unblock #15955.

* Update package

* Fix test failures on desktop MSBuild

- Filter for more specific log messages. Otherwise the MSBuild output
  which for some reason is more verbose on Windows will contain the
  string IL2026.
- Work around issues passing semicolon-delimited properties as
  command-line arguments.
@dotnet-maestro dotnet-maestro bot merged commit 481c149 into master Feb 25, 2021
@dotnet-maestro dotnet-maestro bot deleted the darc-master-95a9c5ed-3b71-470c-b711-60c4c3e3f339 branch February 25, 2021 11:58
sbomer added a commit to sbomer/sdk that referenced this pull request Mar 1, 2021
Using the same property that suppresses the linker warnings. Includes a
manual dependency update to unblock dotnet#15955.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants