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/10.0.1xx-preview1] Update dependencies from dotnet/roslyn #46353

Conversation

dotnet-maestro[bot]
Copy link
Contributor

@dotnet-maestro dotnet-maestro bot commented Jan 28, 2025

This pull request updates the following dependencies

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

  • Subscription: dc4d990b-600a-40ce-9d08-da4830215579
  • Build: 20250203.1
  • Date Produced: February 3, 2025 8:58:51 PM UTC
  • Commit: 001d331188b5dfa9e69b56387a8a3527e69c8a58
  • Branch: refs/heads/main

…127.5

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.CodeAnalysis.CSharp.CodeStyle , Microsoft.CodeAnalysis.CSharp.Features , Microsoft.CodeAnalysis.CSharp.Workspaces , Microsoft.CodeAnalysis.Workspaces.Common , Microsoft.CodeAnalysis.Workspaces.MSBuild , Microsoft.Net.Compilers.Toolset , Microsoft.Net.Compilers.Toolset.Framework
 From Version 4.14.0-1.25070.2 -> To Version 4.14.0-1.25077.5
dotnet-maestro bot and others added 7 commits January 28, 2025 20:15
…128.1

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.CodeAnalysis.CSharp.CodeStyle , Microsoft.CodeAnalysis.CSharp.Features , Microsoft.CodeAnalysis.CSharp.Workspaces , Microsoft.CodeAnalysis.Workspaces.Common , Microsoft.CodeAnalysis.Workspaces.MSBuild , Microsoft.Net.Compilers.Toolset , Microsoft.Net.Compilers.Toolset.Framework
 From Version 4.14.0-1.25070.2 -> To Version 4.14.0-1.25078.1
…128.2

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.CodeAnalysis.CSharp.CodeStyle , Microsoft.CodeAnalysis.CSharp.Features , Microsoft.CodeAnalysis.CSharp.Workspaces , Microsoft.CodeAnalysis.Workspaces.Common , Microsoft.CodeAnalysis.Workspaces.MSBuild , Microsoft.Net.Compilers.Toolset , Microsoft.Net.Compilers.Toolset.Framework
 From Version 4.14.0-1.25070.2 -> To Version 4.14.0-1.25078.2
…128.3

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.CodeAnalysis.CSharp.CodeStyle , Microsoft.CodeAnalysis.CSharp.Features , Microsoft.CodeAnalysis.CSharp.Workspaces , Microsoft.CodeAnalysis.Workspaces.Common , Microsoft.CodeAnalysis.Workspaces.MSBuild , Microsoft.Net.Compilers.Toolset , Microsoft.Net.Compilers.Toolset.Framework
 From Version 4.14.0-1.25070.2 -> To Version 4.14.0-2.25078.3
…128.5

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.CodeAnalysis.CSharp.CodeStyle , Microsoft.CodeAnalysis.CSharp.Features , Microsoft.CodeAnalysis.CSharp.Workspaces , Microsoft.CodeAnalysis.Workspaces.Common , Microsoft.CodeAnalysis.Workspaces.MSBuild , Microsoft.Net.Compilers.Toolset , Microsoft.Net.Compilers.Toolset.Framework
 From Version 4.14.0-1.25070.2 -> To Version 4.14.0-2.25078.5
…129.1

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.CodeAnalysis.CSharp.CodeStyle , Microsoft.CodeAnalysis.CSharp.Features , Microsoft.CodeAnalysis.CSharp.Workspaces , Microsoft.CodeAnalysis.Workspaces.Common , Microsoft.CodeAnalysis.Workspaces.MSBuild , Microsoft.Net.Compilers.Toolset , Microsoft.Net.Compilers.Toolset.Framework
 From Version 4.14.0-1.25070.2 -> To Version 4.14.0-2.25079.1
…129.2

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.CodeAnalysis.CSharp.CodeStyle , Microsoft.CodeAnalysis.CSharp.Features , Microsoft.CodeAnalysis.CSharp.Workspaces , Microsoft.CodeAnalysis.Workspaces.Common , Microsoft.CodeAnalysis.Workspaces.MSBuild , Microsoft.Net.Compilers.Toolset , Microsoft.Net.Compilers.Toolset.Framework
 From Version 4.14.0-1.25070.2 -> To Version 4.14.0-2.25079.2
@mmitche mmitche requested review from a team as code owners January 30, 2025 00:16
@ViktorHofer
Copy link
Member

Same failures as in #46195. cc @adamsitnik (System.CommandLine related?)

@adamsitnik
Copy link
Member

Same failures as in #46195. cc @adamsitnik (System.CommandLine related?)

That is correct, it's S.CL update from dotnet/roslyn#76948. It was merged to main and I was not expecting it to be backported to P1.

…130.2

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.CodeAnalysis.CSharp.CodeStyle , Microsoft.CodeAnalysis.CSharp.Features , Microsoft.CodeAnalysis.CSharp.Workspaces , Microsoft.CodeAnalysis.Workspaces.Common , Microsoft.CodeAnalysis.Workspaces.MSBuild , Microsoft.Net.Compilers.Toolset , Microsoft.Net.Compilers.Toolset.Framework
 From Version 4.14.0-1.25070.2 -> To Version 4.14.0-2.25080.2
…130.1

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.CodeAnalysis.CSharp.CodeStyle , Microsoft.CodeAnalysis.CSharp.Features , Microsoft.CodeAnalysis.CSharp.Workspaces , Microsoft.CodeAnalysis.Workspaces.Common , Microsoft.CodeAnalysis.Workspaces.MSBuild , Microsoft.Net.Compilers.Toolset , Microsoft.Net.Compilers.Toolset.Framework
 From Version 4.14.0-1.25070.2 -> To Version 4.14.0-2.25080.1
…130.3

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.CodeAnalysis.CSharp.CodeStyle , Microsoft.CodeAnalysis.CSharp.Features , Microsoft.CodeAnalysis.CSharp.Workspaces , Microsoft.CodeAnalysis.Workspaces.Common , Microsoft.CodeAnalysis.Workspaces.MSBuild , Microsoft.Net.Compilers.Toolset , Microsoft.Net.Compilers.Toolset.Framework
 From Version 4.14.0-1.25070.2 -> To Version 4.14.0-2.25080.3
…130.4

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.CodeAnalysis.CSharp.CodeStyle , Microsoft.CodeAnalysis.CSharp.Features , Microsoft.CodeAnalysis.CSharp.Workspaces , Microsoft.CodeAnalysis.Workspaces.Common , Microsoft.CodeAnalysis.Workspaces.MSBuild , Microsoft.Net.Compilers.Toolset , Microsoft.Net.Compilers.Toolset.Framework
 From Version 4.14.0-1.25070.2 -> To Version 4.14.0-2.25080.4
…130.5

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.CodeAnalysis.CSharp.CodeStyle , Microsoft.CodeAnalysis.CSharp.Features , Microsoft.CodeAnalysis.CSharp.Workspaces , Microsoft.CodeAnalysis.Workspaces.Common , Microsoft.CodeAnalysis.Workspaces.MSBuild , Microsoft.Net.Compilers.Toolset , Microsoft.Net.Compilers.Toolset.Framework
 From Version 4.14.0-1.25070.2 -> To Version 4.14.0-2.25080.5
…130.6

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.CodeAnalysis.CSharp.CodeStyle , Microsoft.CodeAnalysis.CSharp.Features , Microsoft.CodeAnalysis.CSharp.Workspaces , Microsoft.CodeAnalysis.Workspaces.Common , Microsoft.CodeAnalysis.Workspaces.MSBuild , Microsoft.Net.Compilers.Toolset , Microsoft.Net.Compilers.Toolset.Framework
 From Version 4.14.0-1.25070.2 -> To Version 4.14.0-2.25080.6
…130.7

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.CodeAnalysis.CSharp.CodeStyle , Microsoft.CodeAnalysis.CSharp.Features , Microsoft.CodeAnalysis.CSharp.Workspaces , Microsoft.CodeAnalysis.Workspaces.Common , Microsoft.CodeAnalysis.Workspaces.MSBuild , Microsoft.Net.Compilers.Toolset , Microsoft.Net.Compilers.Toolset.Framework
 From Version 4.14.0-1.25070.2 -> To Version 4.14.0-2.25080.7
@ViktorHofer
Copy link
Member

@jaredpar this needs the revert that we talked about in Tactics.

…130.8

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.CodeAnalysis.CSharp.CodeStyle , Microsoft.CodeAnalysis.CSharp.Features , Microsoft.CodeAnalysis.CSharp.Workspaces , Microsoft.CodeAnalysis.Workspaces.Common , Microsoft.CodeAnalysis.Workspaces.MSBuild , Microsoft.Net.Compilers.Toolset , Microsoft.Net.Compilers.Toolset.Framework
 From Version 4.14.0-1.25070.2 -> To Version 4.14.0-2.25080.8
…review1-0e5aba59-fb1b-474d-8c96-ec8b4b9a472f
@lewing
Copy link
Member

lewing commented Jan 31, 2025

Picking up the latest preview1 flow should resolve the workload failure

dotnet-maestro bot and others added 6 commits January 31, 2025 23:02
…131.1

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.CodeAnalysis.CSharp.CodeStyle , Microsoft.CodeAnalysis.CSharp.Features , Microsoft.CodeAnalysis.CSharp.Workspaces , Microsoft.CodeAnalysis.Workspaces.Common , Microsoft.CodeAnalysis.Workspaces.MSBuild , Microsoft.Net.Compilers.Toolset , Microsoft.Net.Compilers.Toolset.Framework
 From Version 4.14.0-1.25070.2 -> To Version 4.14.0-2.25081.1
…131.2

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.CodeAnalysis.CSharp.CodeStyle , Microsoft.CodeAnalysis.CSharp.Features , Microsoft.CodeAnalysis.CSharp.Workspaces , Microsoft.CodeAnalysis.Workspaces.Common , Microsoft.CodeAnalysis.Workspaces.MSBuild , Microsoft.Net.Compilers.Toolset , Microsoft.Net.Compilers.Toolset.Framework
 From Version 4.14.0-1.25070.2 -> To Version 4.14.0-2.25081.2
…131.3

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.CodeAnalysis.CSharp.CodeStyle , Microsoft.CodeAnalysis.CSharp.Features , Microsoft.CodeAnalysis.CSharp.Workspaces , Microsoft.CodeAnalysis.Workspaces.Common , Microsoft.CodeAnalysis.Workspaces.MSBuild , Microsoft.Net.Compilers.Toolset , Microsoft.Net.Compilers.Toolset.Framework
 From Version 4.14.0-1.25070.2 -> To Version 4.14.0-2.25081.3
…131.4

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.CodeAnalysis.CSharp.CodeStyle , Microsoft.CodeAnalysis.CSharp.Features , Microsoft.CodeAnalysis.CSharp.Workspaces , Microsoft.CodeAnalysis.Workspaces.Common , Microsoft.CodeAnalysis.Workspaces.MSBuild , Microsoft.Net.Compilers.Toolset , Microsoft.Net.Compilers.Toolset.Framework
 From Version 4.14.0-1.25070.2 -> To Version 4.14.0-2.25081.4
…203.1

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.CodeAnalysis.CSharp.CodeStyle , Microsoft.CodeAnalysis.CSharp.Features , Microsoft.CodeAnalysis.CSharp.Workspaces , Microsoft.CodeAnalysis.Workspaces.Common , Microsoft.CodeAnalysis.Workspaces.MSBuild , Microsoft.Net.Compilers.Toolset , Microsoft.Net.Compilers.Toolset.Framework
 From Version 4.14.0-1.25070.2 -> To Version 4.14.0-2.25103.1
Copy link
Member

@ViktorHofer ViktorHofer left a comment

Choose a reason for hiding this comment

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

I went ahead and added a patch to revert the System.CommandLine change in the VMR to unblock the source-build leg.

…review1-0e5aba59-fb1b-474d-8c96-ec8b4b9a472f
@ViktorHofer
Copy link
Member

@dotnet/source-build presumably we need this PR for Preview 1 as it brings in 250 commits from roslyn. Can you please take a look at the failures?

@mthalman
Copy link
Member

mthalman commented Feb 4, 2025

The build error is in the stage 2 source build leg and is caused by using the latest version of the SDK to build the VMR. That has exposed some code in the razor repo that is violating some new code analysis logic introduced in that version of the SDK. Someone from razor needs to resolve these code issues. cc @davidwengier, @DustinCampbell

@DustinCampbell
Copy link
Member

The build error is in the stage 2 source build leg and is caused by using the latest version of the SDK to build the VMR. That has exposed some code in the razor repo that is violating some new code analysis logic introduced in that version of the SDK. Someone from razor needs to resolve these code issues. cc @davidwengier, @DustinCampbell

This looks to me like a bug in the code analysis. The Razor code appears to be correct. Below is an example of the code that is being flagged. The analyzer is reporting that "keys" is not used and can be removed, but that is clearly not true. Perhaps the analyzer failed to consider assignments to element access expressions? cc @jaredpar because it seems like Roslyn is bringing in a broken analyzer.

private bool ComputeIdentityKeys<TElement>(IReadOnlyList<TElement> items, Span<SortKey<T>> keys)
{
    Debug.Assert(typeof(TElement) == typeof(T));

    var isOutOfOrder = false;
    var count = items.Count;

    var previousKey = (T)(object)items[0]!;
    keys[0] = new(Index: 0, previousKey);

    for (var i = 1; i < count; i++)
    {
        var currentKey = (T)(object)items[i]!;
        keys[i] = new(Index: i, currentKey);

        if (!isOutOfOrder)
        {
            if (!AreInSortedOrder(currentKey, previousKey))
            {
                // Continue processing to finish converting elements to keys. However, we can stop comparing keys.
                isOutOfOrder = true;
            }

            previousKey = currentKey;
        }
    }

    return !isOutOfOrder;
}

@ViktorHofer
Copy link
Member

cc @CyrusNajmabadi

@jaredpar
Copy link
Member

jaredpar commented Feb 4, 2025

@arunchndr, @sharwell as the failure is IDE0060.

@arunchndr
Copy link
Member

Sam is looking at it

@sharwell
Copy link
Member

sharwell commented Feb 5, 2025

@DustinCampbell I cannot reproduce the failure in Roslyn unit tests for the affected analyzer. It also appears to not be reproduced in the normal build (just source build). Can we suppress it there until we can get an isolated repro case?

@DustinCampbell
Copy link
Member

I'll have to defer to @jaredpar to suppress the warning. I honestly have no idea how to update the Razor compiler sources used by source build.

FWIW, thiis can be reproed with the latest Visual Studio IntPreview using the Razor repo.

  1. Clone https;//github.com/dotnet/razor
  2. Restore.cmd
  3. Open Razor.sln in Visual Studio.
  4. Open SortHelper`1.cs.

The same warnings reported in this PR appear in the editor:

image

@jaredpar
Copy link
Member

jaredpar commented Feb 6, 2025

I'll have to defer to @jaredpar to suppress the warning.

I don't have concerns with suppressing it here as a mechanism to get code flow working again. But I want to make sure we're following up in the IDE to understand what is happening here. Cause this seems to be a regression of some sorts and want to sort it out before it hits customers.

@sharwell, @arunchndr do we have a tracking issue on IDE that we can reference in the suppression?

@marcpopMSFT
Copy link
Member

darc created a separate PR #46518 but all the conversation is here.

@ViktorHofer
Copy link
Member

This one didn't make it in time for P1. Let's continue the discussion in #46546 (main).

@nagilson
Copy link
Member

This did not make it in time.

@nagilson nagilson closed this Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-CodeFlow untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.