-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Remove various single-scenario YAML parameters in our build scripts and shift implementation responsibility to those scenarios #100115
Changes from all commits
24b3c0e
41d94f0
1c28abd
1c44c8e
b2207ac
3b3e28b
64e046a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1878,36 +1878,29 @@ extends: | |
eq(stageDependencies.EvaluatePaths.evaluate_paths.outputs['SetPathVars_mono_excluding_wasm.containsChange'], true), | ||
eq(variables['isRollingBuild'], true)) | ||
|
||
# | ||
# Sourcebuild legs | ||
# We have 3 important legs for source-build: | ||
# - Centos.8 (ensures that known non-portable RID is working) | ||
# - Linux-x64 portable (used for dependency flow and downstream PR verification) | ||
# - Banana.24 - Non-existent RID to ensure we don't break RIDs we don't know about. | ||
# | ||
# Running all of these everywhere is wasteful. Run Banana.24 and CentOS.8 in rolling CI, | ||
# Run Linux-x64 in PR. | ||
|
||
- template: /eng/pipelines/common/platform-matrix.yml | ||
parameters: | ||
jobTemplate: /eng/pipelines/common/global-build-job.yml | ||
buildConfig: Release | ||
helixQueueGroup: pr | ||
platforms: | ||
- SourceBuild_centos8_x64 | ||
jobParameters: | ||
nameSuffix: centos8SourceBuild | ||
timeoutInMinutes: 95 | ||
condition: eq(variables['isRollingBuild'], true) | ||
|
||
- template: /eng/pipelines/common/platform-matrix.yml | ||
parameters: | ||
jobTemplate: /eng/pipelines/common/global-build-job.yml | ||
buildConfig: Release | ||
helixQueueGroup: pr | ||
platforms: | ||
- SourceBuild_banana24_x64 | ||
jobParameters: | ||
nameSuffix: banana24SourceBuild | ||
timeoutInMinutes: 95 | ||
condition: eq(variables['isRollingBuild'], true) | ||
- stage: SourceBuild | ||
displayName: Source Build Validation | ||
dependsOn: [] | ||
condition: eq(variables['isRollingBuild'], true) | ||
jobs: | ||
# | ||
# Sourcebuild legs | ||
# We have 3 important legs for source-build: | ||
# - Centos.8 (ensures that known non-portable RID is working) | ||
# - Linux-x64 portable (used for dependency flow and downstream PR verification) | ||
# - Banana.24 - Non-existent RID to ensure we don't break RIDs we don't know about. | ||
# | ||
# Running all of these everywhere is wasteful. Run Banana.24 and CentOS.8 in rolling CI, | ||
# Run Linux-x64 in PR. | ||
- template: /eng/common/templates/jobs/source-build.yml | ||
parameters: | ||
platforms: | ||
- name: CentOS8 | ||
targetRid: centos.8-x64 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't CentOS EOL soon? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, but I wanted to preserve existing behavior in this PR to limit possible issues. |
||
nonPortable: true | ||
container: SourceBuild_centos_x64 | ||
- name: NonexistentRID | ||
baseOS: linux | ||
targetRid: banana.24-x64 | ||
nonPortable: true | ||
container: SourceBuild_centos_x64 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,8 +58,8 @@ | |
<ManifestBuildData Include="AzureDevOpsBranch=$(BUILD_SOURCEBRANCH)" /> | ||
</ItemGroup> | ||
|
||
<!-- | ||
Set metadata for assets that are not marked as NonShipping. | ||
<!-- | ||
Set metadata for assets that are not marked as NonShipping. | ||
This is used to determine if the asset should be shipped as part of .NET release. | ||
--> | ||
<ItemDefinitionGroup> | ||
|
@@ -145,10 +145,6 @@ | |
<RelativeBlobPath>$(InstallersRelativePath)workloads/%(Filename)%(Extension)</RelativeBlobPath> | ||
<PublishFlatContainer>true</PublishFlatContainer> | ||
</ItemsToPush> | ||
|
||
<!-- Source build intermediated packages will be pushed and signed by the sourcebuild leg. --> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How come this changed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now that we aren't pushing a copy of the source-build artifacts into the IntermediateArtifacts artifact, we can remove this code that filters it out. |
||
<ItemsToPush Remove="@(ItemsToPush)" Condition="$([System.String]::new('%(Identity)').Contains('Microsoft.SourceBuild.Intermediate'))" /> | ||
<ItemsToSignPostBuild Remove="@(ItemsToSignPostBuild)" Condition="$([System.String]::new('%(Identity)').Contains('Microsoft.SourceBuild.Intermediate'))" /> | ||
</ItemGroup> | ||
|
||
<!-- Push items to AzDO as build artifacts, generating the asset manifest as a side effect. --> | ||
|
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.
Who sets this for SB?
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.
SourceBuild has never had this set (due to the comment above).