-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Support OfficialBuildId for SB #48327
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
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
a22e3ab
Support OfficialBuildId for SB
mthalman 269eba9
Revert line removal
mthalman 2e4029b
Fix comments
mthalman 2eb97de
Use common property for determining prebuilt feed inclusion
mthalman 483c975
Use condition for arcade bootstrap
mthalman 5a86952
Use RestoreAdditionalProjectSources for SB tests
mthalman 392a5e6
Update condition in arcade patch
mthalman e87b02f
Remove test ref on UB.Tasks
mthalman b8206dd
Factor out SB jobs
mthalman 2085294
Don't override package versions in test-only mode
mthalman 442ab33
Update arcade patch
mthalman 54bcb66
Fix repo deps for scenario tests
mthalman 5e0273d
Encode semicolons for msbuild prop
mthalman d81686e
Update src/SourceBuild/content/repo-projects/Directory.Build.targets
mthalman 848abe1
Update src/SourceBuild/patches/arcade/0001-Use-test-prefix-on-unoffic…
mthalman 51fe342
Define empty-ish packages.props file for test only model
mthalman 850f56c
Downgrade importance of msg
mthalman 01552a2
Merge branch 'main' into sb4855-officialbuildid
mthalman 7d1383e
Encode semicolons for msbuild prop
mthalman 7f6e3e2
Merge branch 'main' into sb4855-officialbuildid
mthalman 5c06683
Remove arcade patch for prerelease labels
mthalman ed42450
Merge branch 'main' into sb4855-officialbuildid
mthalman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
96 changes: 96 additions & 0 deletions
96
eng/pipelines/templates/jobs/source-only-build-and-validate.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
parameters: | ||
- name: buildNamePrefix | ||
type: string | ||
|
||
- name: container | ||
type: object | ||
default: | ||
image: '' | ||
name: '' | ||
|
||
# Allow downloading artifacts from the internet during the build | ||
- name: runOnline | ||
type: boolean | ||
default: true | ||
|
||
- name: targetArchitecture | ||
type: string | ||
default: '' | ||
|
||
- name: pool_Linux | ||
type: object | ||
default: | ||
name: $(defaultPoolName) | ||
image: $(poolImage_Linux) | ||
demands: ImageOverride -equals $(poolImage_Linux) | ||
os: linux | ||
|
||
jobs: | ||
# Source Build Leg | ||
- template: ../jobs/vmr-build.yml | ||
parameters: | ||
buildName: ${{ format('{0}_SourceBuild_Online_MsftSdk', parameters.buildNamePrefix) }} | ||
isBuiltFromVmr: true | ||
vmrBranch: ${{ variables.VmrBranch }} | ||
targetArchitecture: x64 | ||
pool: ${{ parameters.pool_Linux }} | ||
container: ${{ parameters.container }} | ||
buildSourceOnly: true | ||
runOnline: ${{ parameters.runOnline }} | ||
runTests: false | ||
extraProperties: "/p:EnableDevBuildAsDefaultForSourceOnly=true" | ||
|
||
# Source Build Validation | ||
- template: ../jobs/vmr-build.yml | ||
parameters: | ||
buildName: ${{ format('{0}_SourceBuild_Online_MsftSdk', parameters.buildNamePrefix) }}_Validation | ||
isBuiltFromVmr: true | ||
vmrBranch: ${{ variables.VmrBranch }} | ||
targetArchitecture: ${{ parameters.targetArchitecture }} | ||
pool: ${{ parameters.pool_Linux }} | ||
container: ${{ parameters.container }} | ||
buildSourceOnly: true | ||
runOnline: ${{ parameters.runOnline }} | ||
runTests: true | ||
skipBuild: true | ||
extraProperties: > | ||
/p:DotNetSourceOnlyTestOnly=true | ||
/p:ExtraRestoreSourcePath=$(Pipeline.Workspace)/msft-pkgs | ||
/p:RestoreAdditionalProjectSources=$(Pipeline.Workspace)/msft-pkgs | ||
dependsOn: | ||
- AzureLinux_x64_Cross_x64 | ||
- Browser_Shortstack_wasm | ||
- Windows_x64 | ||
- ${{ format('{0}_SourceBuild_Online_MsftSdk_x64', parameters.buildNamePrefix) }} | ||
testInitSteps: | ||
# Ensure the artifacts staging directory exists so that even if no files get placed there, it won't fail | ||
# when publishing the artifacts. | ||
- script: mkdir -p $(artifactsStagingDir) | ||
displayName: Create Artifacts Staging Directory | ||
- template: ../steps/download-artifacts.yml | ||
parameters: | ||
artifactDescription: Microsoft Linux Packages | ||
artifactName: AzureLinux_x64_Cross_x64_Artifacts | ||
downloadFilePatterns: packages/Release/Shipping/** | ||
copyDestination: $(Pipeline.Workspace)/msft-pkgs | ||
flattenDirs: true | ||
- template: ../steps/download-artifacts.yml | ||
parameters: | ||
artifactDescription: Microsoft WASM Packages | ||
artifactName: Browser_Shortstack_wasm_Artifacts | ||
downloadFilePatterns: packages/Release/Shipping/** | ||
copyDestination: $(Pipeline.Workspace)/msft-pkgs | ||
flattenDirs: true | ||
- template: ../steps/download-artifacts.yml | ||
parameters: | ||
artifactDescription: Microsoft Windows Packages | ||
artifactName: Windows_x64_Artifacts | ||
downloadFilePatterns: packages/Release/Shipping/** | ||
copyDestination: $(Pipeline.Workspace)/msft-pkgs | ||
flattenDirs: true | ||
- template: ../steps/download-artifacts.yml | ||
parameters: | ||
artifactDescription: Source Build Assets | ||
artifactName: ${{ format('{0}_SourceBuild_Online_MsftSdk_x64', parameters.buildNamePrefix) }}_Artifacts | ||
downloadFilePatterns: assets/Release/**/*.tar.gz | ||
copyDestination: $(Build.SourcesDirectory)/artifacts |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
parameters: | ||
- name: artifactDescription | ||
type: string | ||
- name: artifactName | ||
type: string | ||
- name: downloadFilePatterns | ||
type: string | ||
- name: copyDestination | ||
type: string | ||
- name: flattenDirs | ||
type: boolean | ||
default: false | ||
|
||
steps: | ||
- download: current | ||
artifact: ${{ parameters.artifactName }} | ||
patterns: ${{ parameters.downloadFilePatterns }} | ||
displayName: Download ${{ parameters.artifactDescription }} | ||
- task: CopyFiles@2 | ||
displayName: Copy ${{ parameters.artifactDescription }} | ||
inputs: | ||
SourceFolder: $(Pipeline.Workspace)/${{ parameters.artifactName }} | ||
Contents: '**' | ||
FlattenFolders: ${{ parameters.flattenDirs }} | ||
TargetFolder: ${{ parameters.copyDestination }} |
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the
x64
references in the validation parameter be updated to use${{ parameters.targetArchitecture }}
? This one particular reference jumps out as the preceding job's name is built with the targetArchitecture. I am alright with fixing this when other legs are onboarded so that they can be validated.