Skip to content

Say that vendored Composer is declined in the Bazel known problems - #2205

Merged
Mikola Lysenko (mikolalysenko) merged 2 commits into
mainfrom
docs/bazel-composer-vendored-decline
Nov 24, 2026
Merged

Mikola Lysenko (mikolalysenko) merged 2 commits into
mainfrom
docs/bazel-composer-vendored-decline

Conversation

@mikolalysenko

@mikolalysenko Mikola Lysenko (mikolalysenko) commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

The Bazel support section no longer lists vendored Composer among the commands that exit 0 and break a Bazel build: it says the command declines it there.

Docs only, one entry of docs/ecosystems.md, based on main.

What was wrong

"Bazel workspaces: what is supported" has a list of known problems: commands that exit 0 today and leave a Bazel build that fails. Its first entry named vendored mode for PyPI, RubyGems, NuGet and Composer.

The Composer decline (#2186) changed that for Composer. In a Bazel workspace vendored mode now refuses a Composer package with vendor_composer_bazel_workspace, exits 1 and writes nothing. The entry was written before that change landed and still described the old behaviour.

What changes

  • The first entry covers PyPI, RubyGems and NuGet, for which it is still true.
  • Vendored Composer gets an entry of its own, for the cases where its refusal is lifted or does not apply: it points to "Bazel workspaces: Composer" for the refusal, what lifts it and the cases it does not see, names the failed build (Source path ... is not found) and the remedy (vendor --revert, then hosted mode), and says that a test builds that failure on the three Bazel releases.

The table row for Composer is unchanged: vendored mode stays "Not supported" there.

How it was checked

  • Each statement against the code and tests on main: the refusal code, the failed event and exit 1, and nothing written are held by the Composer flows of e2e_bazel_build and the unit tests of the refusal; the failed build under the flag is the flow composer::vendored_repository_rule.
  • The link's anchor resolves to the section's heading.
  • The page was not rendered.

Code review

Seven findings on the first version, all about the new text, all taken:

  • "Not among them" was too absolute, and the same entry then described a Composer case that does exit 0 and break the build. Vendored Composer is now a list entry of its own, for the cases where the refusal is lifted or does not apply.
  • The remedy had been left to the three other ecosystems. The Composer entry now names it.
  • The entry restated the refusal's code, exit status and flag, and had already drifted from the other sections (the dry runs exit 0; an environment variable lifts the refusal too). It now links to the Composer section instead of repeating them.
  • It did not say whether the Composer failure is tested. It is, and the entry says so.

🤖 Generated with Claude Code

The list of known problems in "Bazel workspaces: what is supported" names
the commands that exit 0 and leave a Bazel build that fails, and it still
named vendored mode for Composer among them. Since the Composer decline
landed that is no longer so: in a Bazel workspace vendored mode refuses a
Composer package with `vendor_composer_bazel_workspace`, exits 1 and writes
nothing, and only `--allow-vendored-in-bazel` brings the old behaviour back.

The entry now covers PyPI, RubyGems and NuGet, and says what Composer does
instead, with a link to its own section. Docs only.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The first version of this change said a Composer package "is not among" the
commands that exit 0 and leave a failing Bazel build, and then described a
Composer case that is one: with the refusal lifted the command exits 0 and
the build fails. It also restated the refusal's code, exit status and flag,
which other sections carry, and left out the dry runs and the environment
variable.

The list now has an entry of its own for vendored Composer where the
refusal is lifted or does not apply. It points to "Bazel workspaces:
Composer" for the refusal, what lifts it and the cases it does not see,
names the failure and the remedy, and says that a test builds it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@mikolalysenko
Mikola Lysenko (mikolalysenko) marked this pull request as ready for review November 23, 2026 18:41
@cursor

cursor Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Documentation-only change to docs/ecosystems.md; no runtime or build logic affected.

Overview
Updates the Bazel known problems list in docs/ecosystems.md so vendored Composer is no longer lumped with PyPI, RubyGems, and NuGet.

The first bullet now covers only those three ecosystems (unchanged behaviour: command exits 0, build fails on missing vendored paths). Composer gets its own bullet: vendored mode is normally declined in a Bazel workspace (with a link to the Composer workspace section), while the entry documents the remaining cases where the command still exits 0 and the build fails with Source path ... is not found, plus the same revert/hosted remedy and note that a repo test covers it on all three Bazel releases.

Reviewed by Cursor Bugbot for commit 96efed6. Configure here.

@mikolalysenko Mikola Lysenko (mikolalysenko) added the Ready for review Agent-verified: mergeable, CI green, Bugbot clean — awaiting human review label Nov 23, 2026
@mikolalysenko

Copy link
Copy Markdown
Collaborator Author

[agent] PR shepherd: review brief for the approver

What it does. Docs only. The Bazel "known problems" list said vendored Composer exits 0 and breaks the build. Since the Composer decline landed, vendored mode refuses Composer in a Bazel workspace. This PR splits Composer into its own entry that covers only the cases where the refusal is lifted (--allow-vendored-in-bazel / SOCKET_ALLOW_VENDORED_IN_BAZEL=1) and links to the Composer section.

Risk. Low. One Markdown file, no code.

Look here

Verified

  • Checked each statement against main: the "Bazel workspaces: Composer" section (the refusal code vendor_composer_bazel_workspace, exit 1, the flag and the env var that lift it), and the real-Bazel flow composer::vendored_repository_rule in tests/e2e_bazel_build/composer.rs that the entry cites.
  • The #bazel-workspaces-composer anchor matches the heading ## Bazel workspaces: Composer.
  • CI on 96efed6: ci-ok and clippy pass, nothing failed. No conflict with main, no open review threads. CHANGELOG.md is untouched.

Changes I made. None.

Open questions. None.


Generated by Claude Code

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.

[agent] Reviewed the Composer Bazel documentation against the refusal implementation and the Bazel integration coverage. The revised guidance matches the default and opt-out behavior.

Merged via the queue into main with commit 04879a4 Nov 24, 2026
83 checks passed
@mikolalysenko
Mikola Lysenko (mikolalysenko) deleted the docs/bazel-composer-vendored-decline branch November 24, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready for review Agent-verified: mergeable, CI green, Bugbot clean — awaiting human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants