8000 gh-1420: Add a note about long paths support to Windows buildbot setup by itamaro · Pull Request #1421 · python/devguide · GitHub
[go: up one dir, main page]

Skip to content

gh-1420: Add a note about long paths support to Windows buildbot setup #1421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-1420: Add a note about long paths support to Windows buildbot setup
  • Loading branch information
itamaro committed Sep 27, 2024
commit e7c2e50dbdf8115c781346b9106393e32f8e2c39
12 changes: 12 additions & 0 deletions testing/new-buildbot-worker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,18 @@ can put the ``buildarea`` wherever you want to)::
(Note that on Windows, the ``buildbot-worker`` command will be in the
:file:`Scripts` directory of your Python installation.)

On Windows, `the maximum length for a path is limited
<https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation>`_.
This might cause some tests to fail, unless long paths support is enabled.

Use this PowerShell command to check whether long paths are enabled::

Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled"

If the value is not "1", you can enable long paths using this PowerShell command::

New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force

Once this initial worker setup completes, you should edit the files
``buildarea/info/admin`` and ``buildarea/info/host`` to provide your contact
info and information on the host configuration, respectively. This information
Expand Down
Loading
0