docker-agent icon indicating copy to clipboard operation
docker-agent copied to clipboard

Long paths aren't enabled on Windows image

Open lemeurherveCB opened this issue 9 months ago • 4 comments

Jenkins and plugins versions report

Environment
N/A

What Operating System are you using (both controller, and any agents involved in the problem)?

N/A

Reproduction steps

Long paths aren't currently enabled on Windows images.

Doc: https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry#registry-setting-to-enable-long-paths

Expected Results

Long paths are enabled on Windows images.

Actual Results

Long paths are not enabled.

Ref:

  • https://github.com/jenkins-infra/helpdesk/issues/4574#issuecomment-2698486862

Anything else?

Note that enabling this won't directly allow using long paths with Windows images since it's broken in Git for Windows since its v2.48.1. Ref:

  • https://github.com/git-for-windows/git/issues/5476#issuecomment-2733088835

But at least it will be enabled for when a new version of Git for Windows will be released.

I've opened a PR to add a test checking long paths in #962, confirmed passing with Git for Windows v2.47.0, and failing with newer Git for Windows versions (up to v2.49.0 at the moment). Keeping that PR in draft until a new Git For Windows version restores the functionality.

Additionally, we could add to the README that long paths are broken for Windows images as known issues.

Are you interested in contributing a fix?

Yes.

lemeurherveCB avatar Mar 30 '25 14:03 lemeurherveCB

See https://github.com/jenkins-infra/packer-images/pull/2011 which might help once delivered

dduportal avatar Jun 17 '25 06:06 dduportal

https://github.com/jenkinsci/docker-agent/releases/tag/3309.v27b_9314fd1a_4-5

dduportal avatar Jun 25 '25 06:06 dduportal

  • To be reopened on #1006 merge 😅

lemeurherveCB avatar Jun 25 '25 07:06 lemeurherveCB

Good point! Thanks! (reopening in advance)

dduportal avatar Jun 25 '25 07:06 dduportal

We can close now: https://github.com/jenkinsci/docker-agent/issues/1005#issuecomment-3031082440

dduportal avatar Jul 03 '25 06:07 dduportal