Skip to content

Use stable sdk verison in inner artifact directory#3254

Merged
ellahathaway merged 2 commits intodotnet:mainfrom
ellahathaway:source-version
Nov 10, 2025
Merged

Use stable sdk verison in inner artifact directory#3254
ellahathaway merged 2 commits intodotnet:mainfrom
ellahathaway:source-version

Conversation

@ellahathaway
Copy link
Member

@ellahathaway ellahathaway commented Nov 6, 2025

Fixes https://github.com/dotnet/release/issues/1709

The GitHub source artifacts associated with an SDK release use the stable SDK version in the inner directory of the source artifacts. In other words, the inner directory of the artifacts includes the SDK version tag without the v tag prefix.

The source artifacts generated in our builds must have the same inner directory name as the GitHub source artifacts. Otherwise, the hashes of the artifacts do not match and the signatures are invalid.

@ellahathaway ellahathaway requested a review from a team as a code owner November 6, 2025 15:11
Copilot AI review requested due to automatic review settings November 6, 2025 15:11
@ellahathaway ellahathaway requested a review from a team as a code owner November 6, 2025 15:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the source artifact creation process to separate SDK version concerns into two distinct properties: a stable SDK version for artifact prefixes and a non-stable version for artifact file naming.

  • Renamed ArtifactVersion parameter to split it into SdkVersion (for git archive prefixing) and SdkNonStableVersion (for artifact file naming)
  • Updated the GetGitArchiveArgs method parameter from artifactVersion to artifactPrefixVersion for clarity
  • Modified the MSBuild task invocation to pass both version properties separately

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
eng/tools/tasks/Microsoft.DotNet.UnifiedBuild.Tasks/Models/ArtifactType.cs Renamed method parameter to artifactPrefixVersion to better reflect its usage in the git archive prefix
eng/tools/tasks/Microsoft.DotNet.UnifiedBuild.Tasks/CreateSourceArtifacts.cs Split ArtifactVersion property into SdkVersion and SdkNonStableVersion with updated documentation
eng/finish-source-only.proj Updated CreateSourceArtifacts task to pass both SdkVersion and SdkNonStableVersion properties

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ellahathaway ellahathaway enabled auto-merge (squash) November 10, 2025 19:28
@ellahathaway
Copy link
Member Author

I verified that these changes produce the same GA source artifacts as the GitHub generated source artifacts in maestro-auth-test.

@ellahathaway ellahathaway merged commit fe21998 into dotnet:main Nov 10, 2025
11 checks passed
@ellahathaway
Copy link
Member Author

/backport to release/10.0.1xx

@github-actions
Copy link
Contributor

Started backporting to release/10.0.1xx (link to workflow run)

@mthalman
Copy link
Member

/backport to release/10.0.2xx

@github-actions
Copy link
Contributor

Started backporting to release/10.0.2xx (link to workflow run)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants