feat: separate semantic version and commit count sources - #5199
Draft
arturcic wants to merge 1 commit into
Draft
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
One or more issues must be addressed before approval.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 68/68 changed files
- Comments generated: 1
- Review effort level: Lite
arturcic
force-pushed
the
codex/separate-version-sources
branch
from
September 9, 2026 21:07
b6c624b to
d6f286a
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Separate the semantic-version source from the commit used to count history. For example, configured next-version
5.0.0can supply the semantic baseline while an older1.0.0tag remains the counting anchor. The new semantic SHA is null for configuration and branch-name sources.Add
SemVerSourceSemVer,SemVerSourceSha,SemVerSourceIncrement,CommitCountSourceSha, andCommitCountSourceDistanceacross JSON, custom formatting, generated version files, build-server output, and MSBuild. Preserve provenance through mainline reductions, merge messages, and alternative tag floors. Invalidate older caches and update documentation, snapshots, and the output schema.Related Issue
Resolves #3041
Motivation and Context
The existing
VersionSource*fields combine semantic provenance with counting metadata. Their values and the current version/count selection remain compatible; the five additive fields expose the two concepts explicitly.How Has This Been Tested?
mainand preserved semantic tag provenance in the newly added release-tag fallback. Installed SDK 10.0.401 in a temporary directory: all 57 source and release-tracking tests passed, including a regression that failed before the fix. Focused formatting verification passed..gitfile.Checklist