Skip to content

Commit

Permalink
Added CI job for deterministic builds (#12335)
Browse files Browse the repository at this point in the history
* Added CI job for deterministic builds

* Attempt to fix deterministic checks

* Turn off rebuild

* Update test-determinism.ps1

Co-authored-by: Vlad Zarytovskii <[email protected]>
  • Loading branch information
TIHan and vzarytovskii authored Nov 23, 2021
1 parent ee93e05 commit a847a71
Show file tree
Hide file tree
Showing 3 changed files with 417 additions and 0 deletions.
25 changes: 25 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,31 @@ stages:
- script: .\tests\EndToEndBuildTests\EndToEndBuildTests.cmd -c Release
displayName: End to end build tests

# Determinism
- job: Determinism_Debug
pool:
name: NetCore1ESPool-Public
demands: ImageOverride -equals Build.Windows.Amd64.VS2022.Pre.Open
timeoutInMinutes: 90
steps:
- checkout: none
- script: |
@echo on
git init
git remote add origin "$(Build.Repository.Uri)"
git fetch --progress --no-tags --depth=1 origin "$(Build.SourceVersion)"
git checkout "$(Build.SourceVersion)"
displayName: Shallow checkout
- script: .\eng\test-determinism.cmd -configuration Debug
displayName: Determinism tests with Debug configuration
- task: PublishPipelineArtifact@1
displayName: Publish Determinism Logs
inputs:
targetPath: '$(Build.SourcesDirectory)/artifacts/log/Debug'
artifactName: 'Determinism_Debug Attempt $(System.JobAttempt) Logs'
continueOnError: true
condition: not(succeeded())

# Up-to-date - disabled due to it being flaky
#- job: UpToDate_Windows
# pool:
Expand Down
2 changes: 2 additions & 0 deletions eng/test-determinism.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
powershell -noprofile -executionPolicy RemoteSigned -file "%~dp0\test-determinism.ps1" %*
Loading

0 comments on commit a847a71

Please sign in to comment.