From ccf59c756fce61dffd3a9106350b725dfee202a1 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Thu, 6 Aug 2026 13:42:10 +0800 Subject: [PATCH 1/2] Relax Java pipeline path length checks Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- eng/pipelines/templates/jobs/ci.yml | 4 ++-- eng/pipelines/templates/stages/archetype-sdk-client-patch.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/eng/pipelines/templates/jobs/ci.yml b/eng/pipelines/templates/jobs/ci.yml index 713cf0b689b0..232f1b7ef6c6 100644 --- a/eng/pipelines/templates/jobs/ci.yml +++ b/eng/pipelines/templates/jobs/ci.yml @@ -420,11 +420,11 @@ jobs: parameters: ServiceDirectories: $(PRServiceDirectories) - # Use BasePathLength of 38 instead of the default 49 as some released files fail when the number is higher. + # Use BasePathLength of 18 to allow longer repository-relative paths. - template: /eng/common/pipelines/templates/steps/verify-path-length.yml parameters: SourceDirectory: $(Build.SourcesDirectory) - BasePathLength: 38 + BasePathLength: 18 # Authenticate with Azure Artifacts - template: /eng/pipelines/templates/steps/maven-authenticate.yml diff --git a/eng/pipelines/templates/stages/archetype-sdk-client-patch.yml b/eng/pipelines/templates/stages/archetype-sdk-client-patch.yml index f8ec5ec5843f..5c14cfe10741 100644 --- a/eng/pipelines/templates/stages/archetype-sdk-client-patch.yml +++ b/eng/pipelines/templates/stages/archetype-sdk-client-patch.yml @@ -300,11 +300,11 @@ extends: parameters: ServiceDirectories: $(ServiceDirectories) - # Use BasePathLength of 38 instead of the default 49 as some released files fail when the number is higher. + # Use BasePathLength of 18 to allow longer repository-relative paths. - template: /eng/common/pipelines/templates/steps/verify-path-length.yml parameters: SourceDirectory: $(Build.SourcesDirectory) - BasePathLength: 38 + BasePathLength: 18 - template: /eng/common/pipelines/templates/steps/eng-common-workflow-enforcer.yml From 9e7c29ca1f459b0009bfd29cbef77370445afbfc Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Thu, 6 Aug 2026 14:07:32 +0800 Subject: [PATCH 2/2] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- eng/pipelines/templates/jobs/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/templates/jobs/ci.yml b/eng/pipelines/templates/jobs/ci.yml index 232f1b7ef6c6..f1ecd540d4bd 100644 --- a/eng/pipelines/templates/jobs/ci.yml +++ b/eng/pipelines/templates/jobs/ci.yml @@ -420,7 +420,7 @@ jobs: parameters: ServiceDirectories: $(PRServiceDirectories) - # Use BasePathLength of 18 to allow longer repository-relative paths. + # verify-path-length adds BasePathLength (assumed Windows checkout-root length) to repo-relative paths; set to 18 to allow longer repo-relative paths. - template: /eng/common/pipelines/templates/steps/verify-path-length.yml parameters: SourceDirectory: $(Build.SourcesDirectory)