Skip to content

Conversation

@dibarbet
Copy link
Member

@dibarbet dibarbet commented Jul 28, 2025

This allows us to support test signing in PR validation builds.

VS cloudbuild will not build with test signed packages (nuget reports certificate errors related to expiration), and we have no way in an insertion to specify that the PR should be queued with specific parameters to disable the errors.

Instead, we can simply not sign the nuget packages (while still signing the contents to make sure subsequent steps like ngen see strong named dlls).

val build - https://dev.azure.com/devdiv/DevDiv/_git/VS/pullrequest/657144

@dibarbet dibarbet force-pushed the dev/dibarbet/test_sign_nuget branch from 4990ffc to 8edc5e4 Compare July 29, 2025 01:32
@dibarbet dibarbet force-pushed the dev/dibarbet/test_sign_nuget branch from ec2e56a to 6130770 Compare July 29, 2025 18:04
@dibarbet dibarbet changed the title Sign contents of nupkg, but not the nupkg itself In PR validation, test sign contents of nupkg, but not the nupkg itself Jul 29, 2025
@dibarbet dibarbet marked this pull request as ready for review July 30, 2025 18:17
@dibarbet dibarbet requested a review from a team as a code owner July 30, 2025 18:17
}

function GetPublishData() {
function GetPublishData([string]$branchName = "main") {
Copy link
Member Author

Choose a reason for hiding this comment

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

this now pulls publish data from the branch we're on. this does mean that release branch configurations will have to be updated on the release branch, but that doesn't seem unreasonable to me.

this makes it 10x easier to test changes that require test branches.

Copy link
Member

Choose a reason for hiding this comment

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

Would this also allow us to run the official build pipeline on any branch? In other words, will we be able to deprecate the "PR validation" pipeline and have one pipeline for both (like we have in Razor) after this PR?

Copy link
Member Author

Choose a reason for hiding this comment

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

Would this also allow us to run the official build pipeline on any branch? In other words, will we be able to deprecate the "PR validation" pipeline and have one pipeline for both (like we have in Razor) after this PR?

Yes and no. We can now pull the publishdata from the branch itself, which allows us to test official build changes (particularly publishing) on other branches. However incoming signing requirements mean that there are special requirements to queue builds on the official pipeline.

So general VS PR validations must be test signed and must be done from a different pipeline. We will have to split the Razor build into two separate pipelines soon.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm actually going to revert this change. there is more that is needed to actually pull the publishdata from the branch, and I'd rather do it all together (insertion still pulls from main).

@dibarbet dibarbet merged commit 160f268 into main Aug 1, 2025
28 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Aug 1, 2025
@RikkiGibson RikkiGibson modified the milestones: Next, 18.0 P1 Aug 19, 2025
@dibarbet dibarbet deleted the dev/dibarbet/test_sign_nuget branch September 2, 2025 18:06
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