#31347·bazel

Release HTML index generation can hide Markdown generation failures

Author: gztong666Created Sep 26, 2026Updated Sep 30, 2026
Labelstype: bugP2team-OSShelp wanted

Description of the bug:

In scripts/ci/build.sh, create_index_html is implemented as create_index_md "${@}" | pandoc -f markdown -t html. The script enables set -eu but not pipefail, so a failure in create_index_md is hidden when pandoc exits successfully. A release job can then continue with incomplete HTML.

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.

  1. Source scripts/ci/build.sh with external setup isolated.
  2. Make a dependency used by create_index_md return nonzero (for example, stub release-page generation to fail).
  3. Use a pandoc stub that consumes stdin and exits 0.
  4. Call create_index_html.

The function returns success despite the Markdown producer failing. Expected: the producer failure is propagated and no incomplete index is accepted.

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
680f57bbe5f72e29ac091ba4fcfe12f5f53dc80b

If 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?

This is distinct from #31323, which addresses pathname splitting while enumerating checksum files. Current source: https://github.com/bazelbuild/bazel/blob/master/scripts/ci/build.sh