Repository navigation
Enable deterministic pack timestamps for source-only builds - #10037
Merged
mthalman merged 1 commit intoOct 8, 2026
Merged
Conversation
Pass the source date epoch as DeterministicTimestamp to inner source-only commands and restrict reproducibility validation to source-only builds. Co-authored-by: Copilot App <[email protected]> Copilot-Session: a537e84d-ee09-4276-8c1a-f2cc962eed37
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The changes consistently scope deterministic timestamps and reproducibility validation to source-only builds without identified regressions.
0 open findings
What changed in this PR
Preserves deterministic NuGet packing for source-only VMR builds while leaving Microsoft builds unchanged.
Changes:
- Propagates
SOURCE_DATE_EPOCHasDeterministicTimestamp. - Restricts epoch setup to source-only builds.
- Simplifies reproducibility CI to source-built SDK and artifact comparisons.
| File | Description |
|---|---|
repo-projects/Directory.Build.props |
Adds deterministic timestamp propagation. |
eng/pipelines/unified-build-reproducibility-tests.yml |
Removes Microsoft-build resources and trigger. |
eng/pipelines/templates/stages/reproducibility-tests.yml |
Removes Microsoft build and comparison legs. |
eng/pipelines/templates/jobs/vmr-build.yml |
Gates epoch computation and injection. |
eng/pipelines/templates/jobs/reproducibility-test.yml |
Specializes comparison for source-built artifacts. |
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
akoeplinger
approved these changes
Oct 8, 2026
This was referenced Oct 8, 2026
This was referenced Oct 12, 2026
This was referenced Oct 19, 2026
This was referenced Oct 28, 2026
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.
NuGet now requires an explicit
DeterministicTimestampopt-in for deterministic packing;SOURCE_DATE_EPOCHalone is no longer sufficient following NuGet/NuGet.Client#7652. The VMR needs to preserve reproducibility for source-only builds without opting Microsoft builds into this behavior.Source-only builds with a nonempty
SOURCE_DATE_EPOCHnow pass that epoch value asDeterministicTimestampthrough the shared inner-command environment, covering local, CI, and custom build commands. Passing the epoch rather thantrueis important becausetrueuses the current time. Builds without an epoch remain unchanged.The reproducibility pipeline now runs only source-only build and comparison legs. Epoch computation and injection are gated to source-only builds, signing environments are preserved, and the unused Microsoft container and vertical-stage trigger are removed. Standalone Microsoft artifact-comparison tests and baselines remain available.
Validation