Skip to content

Move to .NET 10 P5 SDK and Arcade 10 SDK - #78925

Merged
JoeRobich merged 16 commits into
mainfrom
dev/jorobich/cleanup-nuget-config
Jul 9, 2025
Merged

JoeRobich merged 16 commits into
mainfrom
dev/jorobich/cleanup-nuget-config

Conversation

@JoeRobich

@JoeRobich JoeRobich commented Jun 11, 2025 •

Copy link
Copy Markdown
Member

Restores the previous move to .NET 10 P5 changes and brings in Arcade 10 SDK.

Targets a specific build of Arcade 10 SDK because later builds introduce bootstrap failures.

@RikkiGibson

Copy link
Copy Markdown
Member

It looks like there are some package version issues in the correctness leg

@JoeRobich JoeRobich changed the title Cleanup nuget.config Update Arcade and cleanup nuget.config Jun 11, 2025
@JoeRobich
JoeRobich marked this pull request as ready for review June 11, 2025 21:54
@JoeRobich
JoeRobich requested a review from a team as a code owner June 11, 2025 21:54
@JoeRobich
JoeRobich requested a review from RikkiGibson June 11, 2025 21:54
@RikkiGibson

Copy link
Copy Markdown
Member

What's going on with the Build_Unix_Debug leg?

@RikkiGibson

Copy link
Copy Markdown
Member

Correctness_Bootstrap_Build_Default is also deeply broken, there are almost 150k lines of "System.Object not defined" type of errors, despite the restore seemingly not reporting any complaints.

- script: ./eng/build.sh --ci --restore --prepareMachine --binaryLog --configuration ${{ parameters.configuration }}
displayName: Restore

- script: ./eng/build.sh --ci --build --publish --pack --prepareMachine --binaryLog --skipDocumentation --configuration ${{ parameters.configuration }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If we don't test these steps they will end up bitrotting. I'd prefer to keep them.

@JoeRobich JoeRobich Jun 12, 2025 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ran into a issue where a package required for publish wasn't being downloaded because we do not restore with the --publish option. Most straight forward fix is to simply not publish but we can also just add the publish option to the restore.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Guess I'll push back a little and say that nothing ensures the publish and pack options do anything here. They could silently do nothing here and there would be no failure. If we want to avoid regressions, I think we would want to add correctness tests to verify these options do what they are told.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sure, but I would prefer we have a min-bar of making sure the commands can run without failure.

@RikkiGibson RikkiGibson mentioned this pull request Jun 12, 2025
@JoeRobich
JoeRobich force-pushed the dev/jorobich/cleanup-nuget-config branch from 4ac82dc to 541e14c Compare June 12, 2025 20:47
@JoeRobich
JoeRobich requested review from a team as code owners June 12, 2025 21:26
@JoeRobich JoeRobich changed the title Update Arcade and cleanup nuget.config Move to .NET 10 P5 SDK and Arcade 10 SDK Jun 12, 2025
@RikkiGibson RikkiGibson self-assigned this Jun 13, 2025
Comment thread global.json
{
"sdk": {
"version": "9.0.106",
"version": "10.0.100-preview.5.25277.114",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this change locking us to preview 5 or is it moving us to Arcade 10 which will update the SDK when it chooses? Right now that is latest (pretty sure). That has a cadence of roughly every two weeks. If that is what we intend to sign up for that's okay (will need some messaging though). Just want to make sure we're on the same page with what this is doing.

@JoeRobich JoeRobich Jun 13, 2025 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Since we cannot opt out of SDK updates from Arcade, what we have done for some servicing branches is to downgrade the SDK in the Arcade update PR. That would be my suggestion here. Add back the policy to automatically block Arcade PRs that modify the SDK, which we used to have with FabricBot.

{
"taskType": "trigger",
"capabilityId": "IssueResponder",
"subCapability": "PullRequestResponder",
"version": "1.0",
"config": {
"conditions": {
"operator": "and",
"operands": [
{
"name": "isActivitySender",
"parameters": {
"user": "dotnet-maestro[bot]"
}
},
{
"name": "isAction",
"parameters": {
"action": "opened"
}
},
{
"name": "bodyContains",
"parameters": {
"bodyPattern": "Updates sdk.version"
}
}
]
},
"eventType": "pull_request",
"eventNames": [
"pull_request",
"issues",
"project_card"
],
"actions": [
{
"name": "requestChangesPullRequest",
"parameters": {
"comment": "This PR changes the .NET SDK version. Review required from @dotnet/roslyn-infrastructure before merging.\nTasks:\n- [ ] Getting Started Documentation has been updated\n- [ ] NuGet dependency version updated to match version shipping in SDK"
}
}
],
"taskName": "Require PR approval before merging SDK change"
}
},

Comment thread src/Compilers/.editorconfig Resolved
internal partial interface IDesignerAttributeDiscoveryService : IWorkspaceService
{
public interface ICallback
interface ICallback

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why did we remove an accessor here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

because the rule says "no redundant accessibility modifiers in interfaces" and "public" is redundant.

@CyrusNajmabadi CyrusNajmabadi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ide code changes LGTM. i have no idea about anything related to the "eng" directory :)

@RikkiGibson RikkiGibson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

holding until InfraSwat is ready to take this.

@RikkiGibson

RikkiGibson commented Jun 19, 2025 •

Copy link
Copy Markdown
Member

We have some RPS counters in a recent insertion which require more data to decide if there is a real problem or not. I would like to wait to see if our upcoming build inserts cleanly, before taking this. Thanks! https://dev.azure.com/dnceng/internal/_build/results?buildId=2733703&view=results

@JoeRobich

Copy link
Copy Markdown
Member Author

/azp run roslyn-integration-CI

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@CyrusNajmabadi

Copy link
Copy Markdown
Contributor

@JoeRobich any luck with this?

@jaredpar

jaredpar commented Jul 8, 2025

Copy link
Copy Markdown
Member

@JoeRobich are you able to reprooduce this failure locally? There is not really any info to go off of in the test run that I could see.

@JoeRobich
JoeRobich force-pushed the dev/jorobich/cleanup-nuget-config branch from cba0b1e to 4fa17b1 Compare July 8, 2025 04:36
Comment thread azure-pipelines-integration.yml Resolved
@JoeRobich

Copy link
Copy Markdown
Member Author

@JoeRobich are you able to reprooduce this failure locally? There is not really any info to go off of in the test run that I could see.

I have not been able to run integration tests locally. Trying to workout what is going on with my DevBox.

I have looked at the Screenshots artifacts from the failing run and see that the locale seems to be misconfigured during the CSharpInteractive WorkspaceClearedAfterReset test. It is expecting "Stack overflow." Since the test is checking error strings in this way it should be using the UseCultureAttribute.
image

In BasicRename we have a test failing due to the cursor not moving to the end of the identifier after a rename. In NewDocumentFormatting we have a test failing because the Error List is not clearing when a new project is opened.

I had moved the CI image to use the scouting queue meaning 17.14.7. I've reverted that change to see if these issues exist when running on 17.14.5.

@JoeRobich

Copy link
Copy Markdown
Member Author

OK, so more failures on 17.14.5.

Looking at BasicRename and it seems like the cursor location is a known problem that we tried to work around. TrueException is a XunitException so not sure why this isn't working for us.

try
{
// This is the expected behavior
await TestServices.EditorVerifier.TextEqualsAsync(@"
Imports System
Public Class CustomAttribute$$
Inherits Attribute
End Class", HangMitigatingCancellationToken);
}
catch (XunitException)
{
// But sometimes we get this instead
await TestServices.EditorVerifier.TextEqualsAsync(@"
Imports System
Public Class CustomA$$ttribute
Inherits Attribute
End Class", HangMitigatingCancellationToken);
}

image

@JoeRobich

Copy link
Copy Markdown
Member Author

Still seeing the Interactive test fail as in #78925 (comment) even with the UseCulture("en-US") attribute. It makes me think the interactive is running OOP and may not share the locale of the process that launched it. @tmat

@tmat

tmat commented Jul 8, 2025

Copy link
Copy Markdown
Member

@JoeRobich Any idea why would the behavior be different now?

@JoeRobich

Copy link
Copy Markdown
Member Author

@JoeRobich Any idea why would the behavior be different now?

Perhaps these VM images have the system culture set differently. I know for both the LSP and BuildHost we pass along locale so that logging matches the process that launched them.

@tmat

tmat commented Jul 9, 2025

Copy link
Copy Markdown
Member

We do that as well here:

var remoteService = await TryStartProcessAsync(Options.HostPath, Options.Culture, Options.UICulture, cancellationToken).ConfigureAwait(false);

@JoeRobich

Copy link
Copy Markdown
Member Author

We do that as well here

@tmat I was sure hoping we did. =) Unfortunately that makes what we are seeing even more bizarre. I don't know what explains this
image

@RikkiGibson
RikkiGibson dismissed their stale review July 9, 2025 17:30

no longer blocking this.

@RikkiGibson

Copy link
Copy Markdown
Member

@dibarbet for visibility

@JoeRobich
JoeRobich merged commit 5622568 into main Jul 9, 2025
@dotnet-policy-service dotnet-policy-service Bot added this to the Next milestone Jul 9, 2025
@RikkiGibson
RikkiGibson deleted the dev/jorobich/cleanup-nuget-config branch July 10, 2025 17:16
@RikkiGibson RikkiGibson modified the milestones: Next, 18.0 P1 Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants