Release index generation splits artifact directories containing spaces
Description of the bug:
The create_index_md path in scripts/ci/build.sh iterates over checksum files with for f in $1/*.sha256. If the artifact directory contains whitespace, the pathname is split and the generated release index is missing or references incorrect files.
Which category does this issue belong to?
No response
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
- Create a directory such as
/tmp/release artifactscontaining a valid artifact and matching.sha256file. - Source
scripts/ci/build.shin a controlled shell and invokecreate_index_mdfor that directory. - Inspect the generated Markdown.
The artifact directory is split at the space and the index entries are incorrect.
Which operating system are you running Bazel on?
Linux (Bash release tooling)
What is the output of bazel info release?
development version (current master)
If bazel info release returns development version or (@non-git), tell us how you built Bazel.
Source inspection and isolated script-level reproduction against the current master revision.
What's the output of git remote get-url origin; git rev-parse HEAD ?
https://github.com/bazelbuild/bazel.git
680f57bbe5f72e29ac091ba4fcfe12f5f53dc80bIf this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
Not bisected. The behavior is present on the current master revision.
Have you found anything relevant by searching the web?
Searched open and closed bazelbuild/bazel issues using the affected file name and failure mode. I did not find an issue describing this specific behavior.
Any other information, logs, or outputs that you want to share?
A focused path-preservation fix and direct function verification are available in #31323.
Source: bazelbuild/bazel