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

Make signing less custom #61022

Merged
merged 11 commits into from
Mar 20, 2025
Merged

Make signing less custom #61022

merged 11 commits into from
Mar 20, 2025

Conversation

wtgodbe
Copy link
Member

@wtgodbe wtgodbe commented Mar 19, 2025

Stop resetting Arcade defaults for signing, instead use Artifact extensibility point. Should fix dotnet/source-build#4951

Test aspnetcore build: https://dev.azure.com/dnceng/internal/_build/results?buildId=2667466&view=results
Test VMR build: https://dev.azure.com/dnceng/internal/_build/results?buildId=2667468&view=results

@wtgodbe wtgodbe requested a review from a team as a code owner March 19, 2025 18:09
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Mar 19, 2025
Comment on lines 85 to 94
<_InstallersToPublish Include="$(ArtifactsPackagesDir)**\*.deb" UploadPathSegment="Runtime/" ChecksumPath="%(FullPath).sha512" />
<_InstallersToPublish Include="$(ArtifactsPackagesDir)**\*.rpm" UploadPathSegment="Runtime/" ChecksumPath="%(FullPath).sha512" />
<_InstallersToPublish Include="$(ArtifactsPackagesDir)**\*.tar.gz" UploadPathSegment="Runtime/" ChecksumPath="%(FullPath).sha512" />
<_InstallersToPublish Include="$(ArtifactsPackagesDir)**\*.exe" UploadPathSegment="Runtime/" ChecksumPath="%(FullPath).sha512" />
<_InstallersToPublish Include="$(ArtifactsPackagesDir)**\*.msi" UploadPathSegment="Runtime/" ChecksumPath="%(FullPath).sha512" />
<_InstallersToPublish Include="$(ArtifactsPackagesDir)**\*.zip" UploadPathSegment="Runtime/" ChecksumPath="%(FullPath).sha512" />

<_InstallersToPublish Include="$(ArtifactsDir)installers\$(Configuration)\**\*.exe" UploadPathSegment="Runtime/" ChecksumPath="%(FullPath).sha512" />
<_InstallersToPublish Include="$(ArtifactsDir)installers\$(Configuration)\**\*.msi" UploadPathSegment="Runtime/" ChecksumPath="%(FullPath).sha512" />
<_InstallersToPublish Include="$(ArtifactsDir)installers\$(Configuration)\**\*.zip" UploadPathSegment="Runtime/" ChecksumPath="%(FullPath).sha512" />
Copy link
Member

Choose a reason for hiding this comment

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

Consider grouping all these together into one item (with a ; as the separator per line) so that the metadata doesn't need to be defined everytime.

<!-- $(InstallersOutputPath), $(SymbolsOutputPath), and $(ChecksumExtensions) are not defined. Root Directory.Build.props is not imported. -->
<ItemGroup>
<!-- Prepare for _PublishInstallersAndChecksums target. -->
<_InstallersToPublish Include="$(ArtifactsPackagesDir)**\*.jar" UploadPathSegment="jar/" ChecksumPath="%(FullPath).sha512" Condition="'$(PublishAllBuildsAssetsInThisJob)' == 'true'" />
Copy link
Member

@ViktorHofer ViktorHofer Mar 19, 2025

Choose a reason for hiding this comment

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

This name is a bit misleading given that those also sign. That's a really small nit comment though ;)

Co-authored-by: Viktor Hofer <[email protected]>
@wtgodbe wtgodbe merged commit 19f7118 into main Mar 20, 2025
24 of 27 checks passed
@wtgodbe wtgodbe deleted the wtgodbe/SignArtifact branch March 20, 2025 23:47
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview4 milestone Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aspnetcore is missing artifacts from getting signed via in-built signing in the VMR
4 participants