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

[release/8.0] Update dependencies from dotnet/roslyn #92149

Merged

Conversation

dotnet-maestro[bot]
Copy link
Contributor

@dotnet-maestro dotnet-maestro bot commented Sep 15, 2023

This pull request updates the following dependencies

From https://github.com/dotnet/roslyn

  • Subscription: ac2d12d7-7c98-40fe-ec67-08db9e4ff4ff
  • Build: 20230918.4
  • Date Produced: September 19, 2023 2:57:05 AM UTC
  • Commit: a19fe34b7266ab7638a12c2b54748d89d35a21a7
  • Branch: refs/heads/main

…915.1

Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 4.8.0-3.23462.10 -> To Version 4.8.0-3.23465.1
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-codeflow for labeling automated codeflow label Sep 15, 2023
…915.2

Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 4.8.0-3.23462.10 -> To Version 4.8.0-3.23465.2
…915.4

Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 4.8.0-3.23462.10 -> To Version 4.8.0-3.23465.4
…915.5

Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 4.8.0-3.23462.10 -> To Version 4.8.0-3.23465.5
@carlossanlop
Copy link
Member

@ericstj this roslyn deps update is broken. Who can take a look at source generator and interceptors-related failures?

The failure is:

/__w/1/s/src/libraries/Microsoft.Extensions.Logging.Configuration/src/Microsoft.Extensions.Configuration.Binder.SourceGeneration/Microsoft.Extensions.Configuration.Binder.SourceGeneration.ConfigurationBindingGenerator/BindingExtensions.g.cs(33,10): error CS9137: The 'interceptors' experimental feature is not enabled in this namespace. Add '<InterceptorsPreviewNamespaces>$(InterceptorsPreviewNamespaces);Microsoft.Extensions.Configuration.Binder.SourceGeneration</InterceptorsPreviewNamespaces>' to your project. [/__w/1/s/src/libraries/Microsoft.Extensions.Logging.Configuration/src/Microsoft.Extensions.Logging.Configuration.csproj::TargetFramework=net8.0]
##[error]/mnt/vss/_work/1/s/src/libraries/Microsoft.Extensions.Logging.Configuration/src/Microsoft.Extensions.Configuration.Binder.SourceGeneration/Microsoft.Extensions.Configuration.Binder.SourceGeneration.ConfigurationBindingGenerator/BindingExtensions.g.cs(33,10): error CS9137: (NETCORE_ENGINEERING_TELEMETRY=Build) The 'interceptors' experimental feature is not enabled in this namespace. Add '<InterceptorsPreviewNamespaces>$(InterceptorsPreviewNamespaces);Microsoft.Extensions.Configuration.Binder.SourceGeneration</InterceptorsPreviewNamespaces>' to your project.
 

@carlossanlop carlossanlop added the blocked Issue/PR is blocked on something - see comments label Sep 16, 2023
@layomia
Copy link
Contributor

layomia commented Sep 18, 2023

@carlossanlop I'll push a fix.

@ericstj
Copy link
Member

ericstj commented Sep 18, 2023

The fix here is to find all the projects with https://github.com/search?q=repo%3Adotnet%2Fruntime%20InterceptorsPreview&type=code

And make them instead use

<InterceptorsPreviewNamespaces>$(InterceptorsPreviewNamespaces);Microsoft.Extensions.Configuration.Binder.SourceGeneration</InterceptorsPreviewNamespaces>

Probably need the same in the PR that's pulling this Roslyn version into MAIN as well.

@carlossanlop carlossanlop self-assigned this Sep 18, 2023
Copy link
Member

@ericstj ericstj left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thank you, @carlossanlop

@carlossanlop carlossanlop added Servicing-approved Approved for servicing release and removed blocked Issue/PR is blocked on something - see comments labels Sep 18, 2023
…918.1

Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 4.8.0-3.23462.10 -> To Version 4.8.0-3.23468.1
@ericstj
Copy link
Member

ericstj commented Sep 18, 2023

It looks like the test helpers also need to specify the new property:

CSharpParseOptions parseOptions = new CSharpParseOptions(langVersion).WithFeatures(new[] { new KeyValuePair<string, string>("InterceptorsPreview", "") });

This is why the tests are failing here. It's because they are running the new compiler which doesn't seem to like having only the Feature set.

@ericstj
Copy link
Member

ericstj commented Sep 18, 2023

@RikkiGibson can you tell us how our tests should set InterceptorsPreviewNamesapaces? I couldn't find a public API for this like there was for WithFeatures

I see, I think we can use Features API.

We need

CSharpParseOptions parseOptions = new CSharpParseOptions(langVersion).WithFeatures(new[] 
  { 
    new KeyValuePair<string, string>("InterceptorsPreview", ""),
    new KeyValuePair<string, string>("InterceptorsPreviewNamespaces", "Microsoft.Extensions.Configuration.Binder.SourceGeneration"),
  });

carlossanlop and others added 3 commits September 18, 2023 16:25
…918.3

Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 4.8.0-3.23462.10 -> To Version 4.8.0-3.23468.3
Copy link
Member

@ericstj ericstj left a comment

Choose a reason for hiding this comment

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

LGTM

@ericstj
Copy link
Member

ericstj commented Sep 19, 2023

This looks like it's good to go, if Roslyn would just stop building to update this PR 😆

dotnet-maestro bot and others added 2 commits September 19, 2023 03:56
…918.4

Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.Net.Compilers.Toolset
 From Version 4.8.0-3.23462.10 -> To Version 4.8.0-3.23468.4
@carlossanlop
Copy link
Member

Still seeing one failure related to the interceptors, unfortunately. I'll take a look tomorrow.

The Tensors failure is unrelated, seems it was introduced here: #92245

@mmitche I haven't snapped rc2 due to this PR and a few other PRs that came in late, but will work on it tomorrow first thing in the morning.

@carlossanlop
Copy link
Member

carlossanlop commented Sep 19, 2023

Ok the KnownBuildError just tagged this failure as known since May: #86532

So we can merge this finally, before the but adds more commits.

And the other failure is Tensors, unrelated to this, and will be fixed with #92270

@carlossanlop carlossanlop merged commit 1881071 into release/8.0 Sep 19, 2023
178 of 188 checks passed
@carlossanlop carlossanlop deleted the darc-release/8.0-721ff3c5-df31-4a0e-8909-5ece5fcb9d04 branch September 19, 2023 16:09
@radical radical mentioned this pull request Sep 26, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Oct 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-codeflow for labeling automated codeflow Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants