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

[automated] Merge branch 'release/9.0.2xx' => 'main' #44540

Open
wants to merge 390 commits into
base: main
Choose a base branch
from

Conversation

github-actions[bot]
Copy link
Contributor

I detected changes in the release/9.0.2xx branch which have not been merged yet to main. I'm a robot and am configured to help you automatically keep main up to date, so I've opened this PR.

This PR merges commits made on release/9.0.2xx by the following committers:

  • tmat
  • v-wuzhai
  • dotnet-maestro[bot]
  • MiYanni
  • marcpopMSFT
  • Evangelink
  • baronfel
  • github-actions[bot]
  • invalid-email-address
  • dotnet-bot
  • javiercn
  • rainersigwald
  • mthalman
  • MichaelSimons
  • Sergio0694
  • manodasanW

Instructions for merging from UI

This PR will not be auto-merged. When pull request checks pass, complete this PR by creating a merge commit, not a squash or rebase commit.

merge button instructions

If this repo does not allow creating merge commits from the GitHub UI, use command line instructions.

Instructions for merging via command line

Run these commands to merge this pull request from the command line.

git fetch
git checkout release/9.0.2xx
git pull --ff-only
git checkout main
git pull --ff-only
git merge --no-ff release/9.0.2xx

# If there are merge conflicts, resolve them and then run git merge --continue to complete the merge
# Pushing the changes to the PR branch will re-trigger PR validation.
git push https://github.com/dotnet/sdk HEAD:merge/release/9.0.2xx-to-main
or if you are using SSH
git push [email protected]:dotnet/sdk HEAD:merge/release/9.0.2xx-to-main

After PR checks are complete push the branch

git push

Instructions for resolving conflicts

⚠️ If there are merge conflicts, you will need to resolve them manually before merging. You can do this using GitHub or using the command line.

Instructions for updating this pull request

Contributors to this repo have permission update this pull request by pushing to the branch 'merge/release/9.0.2xx-to-main'. This can be done to resolve conflicts or make other changes to this pull request before it is merged.

git checkout -b merge/release/9.0.2xx-to-main main
git pull https://github.com/dotnet/sdk merge/release/9.0.2xx-to-main
(make changes)
git commit -m "Updated PR with my changes"
git push https://github.com/dotnet/sdk HEAD:merge/release/9.0.2xx-to-main
or if you are using SSH
git checkout -b merge/release/9.0.2xx-to-main main
git pull [email protected]:dotnet/sdk merge/release/9.0.2xx-to-main
(make changes)
git commit -m "Updated PR with my changes"
git push [email protected]:dotnet/sdk HEAD:merge/release/9.0.2xx-to-main

Contact .NET Core Engineering (dotnet/dnceng) if you have questions or issues.
Also, if this PR was generated incorrectly, help us fix it. See https://github.com/dotnet/arcade/blob/main/.github/workflows/scripts/inter-branch-merge.ps1.

v-wuzhai and others added 30 commits October 17, 2024 22:44
…darc-release/9.0.1xx-9be7fcf3-a6b8-41c4-bb19-c227a790cc42
…darc-release/9.0.1xx-810c7077-36c8-436d-a5ea-f69f774689a9
…darc-release/9.0.1xx-3b7e6a16-256c-45e1-ac74-b0b44dbf2c51
…darc-release/9.0.1xx-d1aab1c8-3abc-4e74-93c3-5717c8d6c5b1
…017.9

Microsoft.SourceBuild.Intermediate.roslyn , Microsoft.CodeAnalysis , Microsoft.CodeAnalysis.CSharp , Microsoft.CodeAnalysis.CSharp.CodeStyle , Microsoft.CodeAnalysis.CSharp.Features , Microsoft.CodeAnalysis.CSharp.Workspaces , Microsoft.CodeAnalysis.Workspaces.MSBuild , Microsoft.Net.Compilers.Toolset , Microsoft.Net.Compilers.Toolset.Framework
 From Version 4.13.0-1.24517.8 -> To Version 4.13.0-1.24517.9
…18.1

Microsoft.SourceBuild.Intermediate.razor , Microsoft.AspNetCore.Mvc.Razor.Extensions.Tooling.Internal , Microsoft.CodeAnalysis.Razor.Tooling.Internal , Microsoft.NET.Sdk.Razor.SourceGenerators.Transport
 From Version 9.0.0-preview.24517.1 -> To Version 9.0.0-preview.24518.1
…1018.2

Microsoft.SourceBuild.Intermediate.msbuild , Microsoft.Build , Microsoft.Build.Localization
 From Version 17.13.0-preview-24517-05 -> To Version 17.13.0-preview-24518-02
…1017.6

Microsoft.SourceBuild.Intermediate.msbuild , Microsoft.Build , Microsoft.Build.Localization
 From Version 17.12.3-preview-24504-01 -> To Version 17.12.5-preview-24517-06
…ence-packages build 20241017.1

Microsoft.SourceBuild.Intermediate.source-build-reference-packages
 From Version 9.0.0-alpha.1.24511.3 -> To Version 9.0.0-alpha.1.24517.1
…1018.3

Microsoft.SourceBuild.Intermediate.msbuild , Microsoft.Build , Microsoft.Build.Localization
 From Version 17.13.0-preview-24518-02 -> To Version 17.13.0-preview-24518-03
…018.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.MSBuild , Microsoft.Net.Compilers.Toolset , Microsoft.Net.Compilers.Toolset.Framework
 From Version 4.13.0-1.24517.9 -> To Version 4.13.0-1.24518.1
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
@v-wuzhai
Copy link
Member

v-wuzhai commented Nov 1, 2024

@dotnet/source-build-internal Could you take a look at the sdk-source-build failures?

@ellahathaway
Copy link
Member

Build error is

##[error]/vmr/src/sdk/src/BuiltInTools/AspireService/Helpers/CertGenerator.cs(38,24): error CS0433: (NETCORE_ENGINEERING_TELEMETRY=Build) The type 'X509CertificateLoader' exists in both 'Microsoft.Bcl.Cryptography, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' and 'System.Security.Cryptography, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

I'm investigating/

@ellahathaway
Copy link
Member

ellahathaway commented Nov 1, 2024

Build error is

##[error]/vmr/src/sdk/src/BuiltInTools/AspireService/Helpers/CertGenerator.cs(38,24): error CS0433: (NETCORE_ENGINEERING_TELEMETRY=Build) The type 'X509CertificateLoader' exists in both 'Microsoft.Bcl.Cryptography, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' and 'System.Security.Cryptography, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

I'm investigating/

@bartonjs - I think you're familiar with this code. Would the correct fix here be to remove the reference to System.Security.Cryptography.X509Certificates.4.3.0 and remove the using System.Security.Cryptography line from https://github.com/dotnet/sdk/blob/main/src/BuiltInTools/AspireService/Helpers/CertGenerator.cs?

I've determined that the type X509CertificateLoader moved to Microsoft.Bcl.Cryptography, but the using directive for System.Security.Cryptography is pulling in the 9.0 version which also contains X509CertificateLoader. I'm unsure if bumping System.Security.Cryptography from 9.0 to 10.0 would fix this issue, or if that's even doable. If so, maybe we should try that?

@bartonjs
Copy link
Member

bartonjs commented Nov 1, 2024

Would the correct fix here be to remove the reference to System.Security.Cryptography.X509Certificates.4.3.0

You should definitely remove the reference to that, unless you're building for .NET Core 1.0.

and remove the using System.Security.Cryptography line

Definitely not. The type is in the namespace regardless of what assembly it's in.

I've determined that the type X509CertificateLoader moved to Microsoft.Bcl.Cryptography,

No. It's exposed in Microsoft.Bcl.Cryptography for downlevel targets. You should only reference that library if you are building against .NET Standard, .NET Framework, or want to use the new loader on .NET 8.

The library has a .NET 9 target that says the type in Microsoft.Bcl.Cryptography has moved to System.Security.Cryptography.dll (part of the default reference set for .NET 9, so you shouldn't need any package references for it). Getting a duplicate type reference is... unexpected, that suggests either a) we messed up package authoring, or b) you've done something other than normal nuget package references.

exists in both 'Microsoft.Bcl.Cryptography, Version=10.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'

Why do you have a reference to Microsoft.Bcl.Cryptography v10? That doesn't exist yet...

@ellahathaway
Copy link
Member

ellahathaway commented Nov 1, 2024

Thanks for the response.

Why do you have a reference to Microsoft.Bcl.Cryptography v10? That doesn't exist yet...

We're currently building 10.0 in source-build, so the 10.0 version is expected; Source-build builds the latest versions of packages, with downstream repos consuming the versions of the packages built by upstream repos (so long as the package version is not pinned in the downstream repo and the package is defined in Versions.Details.xml with an associated version prop in Versions.props). You can see the 10.0 version of the package produced here in the build.

Based on @bartonjs response, I think that fixing this issue is beyond the scope of source-build. @tmat - I see that you added the use of the certificate loader in src/BuiltInTools/AspireService/Helpers/CertGenerator.cs. Can you please TAL? Thanks!

@mthalman
Copy link
Member

mthalman commented Nov 6, 2024

Getting this same X509CertificateLoader error in #44685.

@v-wuzhai
Copy link
Member

@marcpopMSFT Could you take a look at the failures here?

@marcpopMSFT
Copy link
Member

@tmat the watch tests appear to be hanging in every leg they are running in:
dotnet-watch.Tests: [Long Running Test] 'Microsoft.DotNet.Watcher.Tests.ApplyDeltaTests.Aspire', Elapsed: 00:43:35

@marcpopMSFT
Copy link
Member

@dotnet/product-construction VMR failing to sync because of an outdated patch.

Comment on lines +7 to +8
<add key="darc-pub-dotnet-aspnetcore-3cc83de" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-aspnetcore-3cc83de3/nuget/v3/index.json" />
<add key="darc-pub-dotnet-runtime-d398172" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/darc-pub-dotnet-runtime-d3981726/nuget/v3/index.json" />
Copy link
Member

Choose a reason for hiding this comment

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

Should this change get reverted?

@ViktorHofer
Copy link
Member

#44972 fixes that. The problem is that the nuget-client -> sdk (main) subscription was stale. I just updated it to the VS 17.13 channel. So, release/9.0.2xx was using newer dependencies than main.

@v-wuzhai
Copy link
Member

@tmat Looks like the dotnet watch tests have failed. Can you take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.