Skip to content

Update the sign check to remove the exclusions but only check on sign… #48275

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

Merged
merged 2 commits into from
Apr 11, 2025

Conversation

marcpopMSFT
Copy link
Member

…ed builds
Fixes #41081

@ghost ghost added Area-NetSDK untriaged Request triage from a team member labels Apr 8, 2025
@marcpopMSFT
Copy link
Member Author

I have a few internal builds running both signed and not to see if it passes the check as this is not testable locally.

@marcpopMSFT marcpopMSFT requested a review from mmitche April 10, 2025 23:27
@marcpopMSFT
Copy link
Member Author

Confirmed with test CI builds that the target doesn't run unless the branch contains release so that'll exclude it from main and dev builds. It still might in some unrelated branch builds unless we have a better suggestion on how to condition this check.

Condition=" '$(OS)' == 'Windows_NT' and '$(Architecture)' != 'arm' ">
Condition=" '$(OS)' == 'Windows_NT' and
'$(Architecture)' != 'arm' and
$(BUILD_SOURCEBRANCH) != '' and
Copy link
Member

Choose a reason for hiding this comment

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

You can also check this based on OfficialBuild=true and DotNetSignType=real

Copy link
Member

@mmitche mmitche left a comment

Choose a reason for hiding this comment

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

Are these all downlevel manifests? Or are some of these built live in the VMR?

@marcpopMSFT
Copy link
Member Author

The wasm and emsdk ones are built live in the VMR. If I check both those properties, will that be enough in the VMR to be confident it's the signed versions of those?

@mmitche
Copy link
Member

mmitche commented Apr 11, 2025

The wasm and emsdk ones are built live in the VMR. If I check both those properties, will that be enough in the VMR to be confident it's the signed versions of those?

Since signing happens after the sdk build part is done, and the manifests are built as part of the SDK now, i think you can just eliminate all this checking. Both SignTool as well as the post-build sign checking are going to verify this.

@mmitche
Copy link
Member

mmitche commented Apr 11, 2025

/cc @ellahathaway

@marcpopMSFT
Copy link
Member Author

@mmitche @ellahathaway are you suggesting I delete this code instead or just leave it in servicing and delete in main?

@mmitche
Copy link
Member

mmitche commented Apr 11, 2025

@mmitche @ellahathaway are you suggesting I delete this code instead or just leave it in servicing and delete in main?

Oh! this is 9.0.,.. thought this was main. The code can be removed in main.

@marcpopMSFT marcpopMSFT merged commit fe6d1ce into release/9.0.1xx Apr 11, 2025
32 checks passed
@marcpopMSFT marcpopMSFT deleted the marcpopMSFT-conditionsigncheck branch April 11, 2025 22:23
@marcpopMSFT
Copy link
Member Author

@mmitche this check still covers maui in main so isn't it still useful there or do we have a different signing check for those in main?

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

Successfully merging this pull request may close these issues.

2 participants