From 0bbec1fe75637c3c707cd6ac8b1fdf4495dbf268 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Dec 2025 22:42:35 +0000 Subject: [PATCH 1/4] Initial plan From 3bca529d321719690d4e291db53bed1e238deb2b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Dec 2025 22:49:45 +0000 Subject: [PATCH 2/4] Add fetchTags: false to all checkout steps in runtime CI YAML files Co-authored-by: elinor-fung <47805090+elinor-fung@users.noreply.github.com> --- eng/common/templates-official/job/publish-build-assets.yml | 1 + eng/common/templates/job/execute-sdl.yml | 1 + eng/common/templates/job/publish-build-assets.yml | 1 + eng/pipelines/common/evaluate-paths-job.yml | 1 + eng/pipelines/common/global-build-job.yml | 1 + eng/pipelines/common/templates/runtimes/xplat-job.yml | 1 + eng/pipelines/installer/jobs/build-job.yml | 1 + eng/pipelines/libraries/base-job.yml | 1 + eng/pipelines/libraries/stress/http.yml | 2 ++ eng/pipelines/libraries/stress/ssl.yml | 2 ++ eng/pipelines/official/jobs/prepare-signed-artifacts.yml | 1 + 11 files changed, 13 insertions(+) diff --git a/eng/common/templates-official/job/publish-build-assets.yml b/eng/common/templates-official/job/publish-build-assets.yml index 53109246d94823..8d188917297283 100644 --- a/eng/common/templates-official/job/publish-build-assets.yml +++ b/eng/common/templates-official/job/publish-build-assets.yml @@ -77,6 +77,7 @@ jobs: - checkout: ${{ parameters.repositoryAlias }} fetchDepth: 3 clean: true + fetchTags: false - task: DownloadBuildArtifacts@0 displayName: Download artifact inputs: diff --git a/eng/common/templates/job/execute-sdl.yml b/eng/common/templates/job/execute-sdl.yml index 7870f93bc17652..57970fda30acee 100644 --- a/eng/common/templates/job/execute-sdl.yml +++ b/eng/common/templates/job/execute-sdl.yml @@ -59,6 +59,7 @@ jobs: steps: - checkout: self clean: true + fetchTags: false # If the template caller didn't provide an AzDO parameter, set them all up as Maestro vars. - ${{ if not(and(parameters.AzDOProjectName, parameters.AzDOPipelineId, parameters.AzDOBuildId)) }}: diff --git a/eng/common/templates/job/publish-build-assets.yml b/eng/common/templates/job/publish-build-assets.yml index b4ece772c32660..65e7d4de04e6d4 100644 --- a/eng/common/templates/job/publish-build-assets.yml +++ b/eng/common/templates/job/publish-build-assets.yml @@ -75,6 +75,7 @@ jobs: - checkout: ${{ parameters.repositoryAlias }} fetchDepth: 3 clean: true + fetchTags: false - task: DownloadBuildArtifacts@0 displayName: Download artifact inputs: diff --git a/eng/pipelines/common/evaluate-paths-job.yml b/eng/pipelines/common/evaluate-paths-job.yml index 64c3a12584c27b..ebf3c930fb70ae 100644 --- a/eng/pipelines/common/evaluate-paths-job.yml +++ b/eng/pipelines/common/evaluate-paths-job.yml @@ -34,6 +34,7 @@ jobs: - checkout: self clean: true fetchDepth: 2 + fetchTags: false - ${{ if ne(parameters.paths[0], '') }}: - ${{ each path in parameters.paths }}: diff --git a/eng/pipelines/common/global-build-job.yml b/eng/pipelines/common/global-build-job.yml index 86cea9fbd98a20..478516a95be407 100644 --- a/eng/pipelines/common/global-build-job.yml +++ b/eng/pipelines/common/global-build-job.yml @@ -153,6 +153,7 @@ jobs: # as a stash of a shallow cloned repo is not currently supported. ${{ if ne(parameters.isSourceBuild, true) }}: fetchDepth: $(checkoutFetchDepth) + fetchTags: false - ${{ if and(eq(parameters.isOfficialBuild, true), notin(parameters.osGroup, 'osx', 'maccatalyst', 'ios', 'iossimulator', 'tvos', 'tvossimulator')) }}: - template: /eng/pipelines/common/restore-internal-tools.yml diff --git a/eng/pipelines/common/templates/runtimes/xplat-job.yml b/eng/pipelines/common/templates/runtimes/xplat-job.yml index 625d88d63d3e97..1b8fdde3c000be 100644 --- a/eng/pipelines/common/templates/runtimes/xplat-job.yml +++ b/eng/pipelines/common/templates/runtimes/xplat-job.yml @@ -104,5 +104,6 @@ jobs: - checkout: self clean: true fetchDepth: $(checkoutFetchDepth) + fetchTags: false - ${{ parameters.steps }} diff --git a/eng/pipelines/installer/jobs/build-job.yml b/eng/pipelines/installer/jobs/build-job.yml index 43f19c69ccacfc..26338238551dd7 100644 --- a/eng/pipelines/installer/jobs/build-job.yml +++ b/eng/pipelines/installer/jobs/build-job.yml @@ -294,6 +294,7 @@ jobs: - checkout: self clean: true fetchDepth: $(checkoutFetchDepth) + fetchTags: false - ${{ if ne(variables['System.TeamProject'], 'public') }}: - ${{ if ne(parameters.osGroup, 'windows') }}: diff --git a/eng/pipelines/libraries/base-job.yml b/eng/pipelines/libraries/base-job.yml index 54fe98e7d85bbf..936a1462df22e0 100644 --- a/eng/pipelines/libraries/base-job.yml +++ b/eng/pipelines/libraries/base-job.yml @@ -127,6 +127,7 @@ jobs: - checkout: self clean: true fetchDepth: $(checkoutFetchDepth) + fetchTags: false - ${{ if and(ne(parameters.liveRuntimeBuildConfig, ''), eq(parameters.runTests, true)) }}: - template: /eng/pipelines/common/download-artifact-step.yml diff --git a/eng/pipelines/libraries/stress/http.yml b/eng/pipelines/libraries/stress/http.yml index dae5e867ae8da7..665ac79db810c4 100644 --- a/eng/pipelines/libraries/stress/http.yml +++ b/eng/pipelines/libraries/stress/http.yml @@ -45,6 +45,7 @@ extends: - checkout: self clean: true fetchDepth: 5 + fetchTags: false - bash: | $(dockerfilesFolder)/build-docker-sdk.sh -t $(sdkBaseImage) -c $(BUILD_CONFIGURATION) && \ @@ -112,6 +113,7 @@ extends: clean: true fetchDepth: 5 lfs: false + fetchTags: false - powershell: | $(dockerfilesFolder)/build-docker-sdk.ps1 -w -t $(sdkBaseImage) -c $(BUILD_CONFIGURATION) diff --git a/eng/pipelines/libraries/stress/ssl.yml b/eng/pipelines/libraries/stress/ssl.yml index 8dd9adc3908707..cf84a63ba50ea6 100644 --- a/eng/pipelines/libraries/stress/ssl.yml +++ b/eng/pipelines/libraries/stress/ssl.yml @@ -46,6 +46,7 @@ extends: - checkout: self clean: true fetchDepth: 5 + fetchTags: false - bash: | $(dockerfilesFolder)/build-docker-sdk.sh -t $(sdkBaseImage) -c $(BUILD_CONFIGURATION) @@ -81,6 +82,7 @@ extends: clean: true fetchDepth: 5 lfs: false + fetchTags: false - powershell: | $(dockerfilesFolder)/build-docker-sdk.ps1 -w -t $(sdkBaseImage) -c $(BUILD_CONFIGURATION) diff --git a/eng/pipelines/official/jobs/prepare-signed-artifacts.yml b/eng/pipelines/official/jobs/prepare-signed-artifacts.yml index 540f392e796389..d7ffff9985a734 100644 --- a/eng/pipelines/official/jobs/prepare-signed-artifacts.yml +++ b/eng/pipelines/official/jobs/prepare-signed-artifacts.yml @@ -32,6 +32,7 @@ jobs: - checkout: self clean: true fetchDepth: 20 + fetchTags: false - ${{ if eq(parameters.isOfficialBuild, true) }}: - task: NuGetAuthenticate@1 From b65532dc4a4a134532c61e43b1d8384ecea30acd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Dec 2025 22:52:20 +0000 Subject: [PATCH 3/4] Fix indentation for fetchTags parameter in global-build-job.yml Co-authored-by: elinor-fung <47805090+elinor-fung@users.noreply.github.com> --- eng/pipelines/common/global-build-job.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/common/global-build-job.yml b/eng/pipelines/common/global-build-job.yml index 478516a95be407..0eda6a6b7c1a6b 100644 --- a/eng/pipelines/common/global-build-job.yml +++ b/eng/pipelines/common/global-build-job.yml @@ -149,11 +149,11 @@ jobs: - checkout: self clean: true + fetchTags: false # If running in source build mode, a git stash will be used for the inner clone. Avoid setting a fetch depth, # as a stash of a shallow cloned repo is not currently supported. ${{ if ne(parameters.isSourceBuild, true) }}: fetchDepth: $(checkoutFetchDepth) - fetchTags: false - ${{ if and(eq(parameters.isOfficialBuild, true), notin(parameters.osGroup, 'osx', 'maccatalyst', 'ios', 'iossimulator', 'tvos', 'tvossimulator')) }}: - template: /eng/pipelines/common/restore-internal-tools.yml From e13f042596eb9ba1f4d9a8143175380bf60d7aae Mon Sep 17 00:00:00 2001 From: Elinor Fung Date: Wed, 10 Dec 2025 15:08:46 -0800 Subject: [PATCH 4/4] Apply suggestions from code review --- eng/common/templates-official/job/publish-build-assets.yml | 1 - eng/common/templates/job/execute-sdl.yml | 1 - eng/common/templates/job/publish-build-assets.yml | 1 - 3 files changed, 3 deletions(-) diff --git a/eng/common/templates-official/job/publish-build-assets.yml b/eng/common/templates-official/job/publish-build-assets.yml index 8d188917297283..53109246d94823 100644 --- a/eng/common/templates-official/job/publish-build-assets.yml +++ b/eng/common/templates-official/job/publish-build-assets.yml @@ -77,7 +77,6 @@ jobs: - checkout: ${{ parameters.repositoryAlias }} fetchDepth: 3 clean: true - fetchTags: false - task: DownloadBuildArtifacts@0 displayName: Download artifact inputs: diff --git a/eng/common/templates/job/execute-sdl.yml b/eng/common/templates/job/execute-sdl.yml index 57970fda30acee..7870f93bc17652 100644 --- a/eng/common/templates/job/execute-sdl.yml +++ b/eng/common/templates/job/execute-sdl.yml @@ -59,7 +59,6 @@ jobs: steps: - checkout: self clean: true - fetchTags: false # If the template caller didn't provide an AzDO parameter, set them all up as Maestro vars. - ${{ if not(and(parameters.AzDOProjectName, parameters.AzDOPipelineId, parameters.AzDOBuildId)) }}: diff --git a/eng/common/templates/job/publish-build-assets.yml b/eng/common/templates/job/publish-build-assets.yml index 65e7d4de04e6d4..b4ece772c32660 100644 --- a/eng/common/templates/job/publish-build-assets.yml +++ b/eng/common/templates/job/publish-build-assets.yml @@ -75,7 +75,6 @@ jobs: - checkout: ${{ parameters.repositoryAlias }} fetchDepth: 3 clean: true - fetchTags: false - task: DownloadBuildArtifacts@0 displayName: Download artifact inputs: