From 716129f5c00cb2f1ee9acefa526ee6678674e466 Mon Sep 17 00:00:00 2001 From: Larry Osterman Date: Thu, 12 Oct 2023 10:29:39 -0700 Subject: [PATCH] Check for long filenames in CI pipeline (#5027) * Check for long filenames in CI pipeline * Base Path Length == 75 to account for visual studio defaults --- eng/pipelines/templates/jobs/archetype-sdk-client.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/eng/pipelines/templates/jobs/archetype-sdk-client.yml b/eng/pipelines/templates/jobs/archetype-sdk-client.yml index 036682b65..6df7e55b9 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-client.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-client.yml @@ -155,6 +155,17 @@ jobs: parameters: ContinueOnError: false + # Base Path Length calculated based on Visual Studio's defaults for projects. + # By default, Visual Studio puts projects in a folder structure like this: + # C:\Users\\source\repos\. That is 34 characters before project. + # The default project name for the C++ SDK is azure-sdk-for-cpp. That is 18 additional characters (52). + # Assuming that the user is building with the default cmake presets, cmake will create a build folder + # which is about 25 characters long (x64-static-debug-perftests). + - template: /eng/common/pipelines/templates/steps/verify-path-length.yml + parameters: + SourceDirectory: $(Build.SourcesDirectory) + BasePathLength: 75 + - template: /eng/common/pipelines/templates/steps/verify-links.yml parameters: ${{ if eq(variables['Build.Reason'], 'PullRequest') }}: