Skip to content

Relax Java pipeline path length checks - #50049

Open
Weidong Xu (weidongxu-microsoft) wants to merge 2 commits into
Azure:mainfrom
weidongxu-microsoft:users/weidongxu/relax-path-length-check
Open

Relax Java pipeline path length checks#50049
Weidong Xu (weidongxu-microsoft) wants to merge 2 commits into
Azure:mainfrom
weidongxu-microsoft:users/weidongxu/relax-path-length-check

Conversation

@weidongxu-microsoft

@weidongxu-microsoft Weidong Xu (weidongxu-microsoft) commented Aug 6, 2026

Copy link
Copy Markdown
Member

Summary

  • Reduce the Java CI path-length base reservation from 38 to 18 characters.
  • Apply the change to both standard CI and patch-release pipelines.

This allows repository-relative file and directory paths to be 20 characters longer while retaining the Windows 260-character file-path and 248-character directory-path checks.


Reason here Azure/azure-rest-api-specs#44457 (comment)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
34 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@weidongxu-microsoft
Weidong Xu (weidongxu-microsoft) marked this pull request as ready for review August 6, 2026 05:43
Copilot AI lite review requested due to automatic review settings August 6, 2026 05:43
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
34 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR relaxes the Windows path-length guard used by Java CI by lowering the reserved “base checkout path length” from 38 to 18, and applies the same adjustment to the patch-release pipeline variant, allowing longer repository-relative paths to pass the check.

Changes:

  • Reduced BasePathLength from 38 → 18 in the main CI Analyze job’s verify-path-length step.
  • Reduced BasePathLength from 38 → 18 in the patch pipeline’s verify-path-length step.
  • Updated the inline comments describing the rationale (though the “why 18” assumption could be clearer).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
eng/pipelines/templates/stages/archetype-sdk-client-patch.yml Lowers the path-length reservation used by verify-path-length in the patch pipeline.
eng/pipelines/templates/jobs/ci.yml Lowers the path-length reservation used by verify-path-length in standard CI (Analyze job).

Comment thread eng/pipelines/templates/jobs/ci.yml Outdated
Comment thread eng/pipelines/templates/stages/archetype-sdk-client-patch.yml
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants