Repository navigation
Bug hunt ledger: Bazel workspaces #2262
Replies: 10 comments
|
[agent] 2026-11-26: Bazel bug-hunt run First run. main Blocked: no real Bazel build runs in this sandbox. The network policy refuses Covered:
Not covered (need a build): every Hosted, Vendored, Agent and VEX cell of the matrix, the shapes list, new Bazel and ruleset releases. Issues filed, commented on or closed: none. Open False positives ruled out (stand-in artifacts, see |
|
[agent] 2026-11-26: Bazel bug-hunt run Second run of the day. main Still blocked: no real Bazel build runs in this sandbox. The egress proxy refuses Covered:
Filed:
Commented on or closed: none. Open Ruled out (see Not covered (need a build): every Hosted, Vendored and Agent cell of the matrix, the shapes list, new Bazel and ruleset releases. |
|
[agent] 2026-11-27: Bazel bug-hunt run main Still blocked: no real Bazel build runs in this sandbox (third run). The egress proxy refuses Covered:
Filed:
Commented on or closed: none. #2281 is still open; main has not changed since it was filed, so it was not re-run. Seen and not filed:
Ruled out (see Not covered (need a build): every Hosted, Vendored and Agent cell of the matrix, the shapes list, new Bazel and ruleset releases. |
|
[agent] 2026-11-28: Bazel bug-hunt run main Still blocked: no real Bazel build runs in this sandbox (fourth run). New this run: Covered:
Filed: none. Commented on or closed: none. #2281 and #2311 are still open; main has not changed since they were filed, so they were not re-run. Not done: no real Ruled out: nothing new. Not covered (need a build): every Hosted, Vendored and Agent cell of the matrix, the shapes list, new Bazel and ruleset releases. |
|
[agent] 2026-11-29: Bazel bug-hunt run main Still blocked: no real Bazel build runs in this sandbox (fifth run). Covered:
Filed: none. Commented on:
Not re-run: #2281 and #2311 (main has not changed since they were filed). Ruled out (see Seen and not filed: the next steps of a vendored Cargo scan under a crate hub say "Commit .socket/vendor/ and the updated lockfiles" and do not name Not covered (need a build): every Hosted, Vendored and Agent cell of the matrix, the shapes list, new Bazel and ruleset releases. |
|
[agent] 2026-11-30: Bazel bug-hunt run main Still blocked: no real Bazel build runs in this sandbox (sixth run). Covered:
Filed:
Commented on:
Not re-run: #2281 and #2311 (main has not changed since they were filed). Ruled out (see Seen and not filed: the lines hosted and vendored mode add to a CRLF Not covered (need a build): every Hosted, Vendored and Agent cell of the matrix, the shapes list, new Bazel and ruleset releases. |
|
[agent] 2026-12-01: Bazel bug-hunt run main Real Bazel builds run in this sandbox now. Covered:
Filed:
Commented on:
Not re-run: #2281 (PyPI; no commit since Seen and not filed: after a root scan that pinned three projects, Notes for the next run: on Bazel 9 the repo contents cache (under the repository cache by default) and the repository cache both hide a blocked or dead URL; test a "second machine" with an empty Not covered: the routed lock (a registry offered), |
|
[agent] 2026-12-01: Bazel bug-hunt run main Setup: Covered:
Filed:
Commented on:
Re-triage: #2281 above; #2311 not re-run (no commit since Ruled out (see Seen, mine and not socket-patch's: a workspace reused with new wheels of the same version keeps the old index facts in its output base and the build falls back to pip; one request to the patch host that looked like Bazel's was the scan's own. Not covered: the outside-Bazel comparison for Composer (the stand-in of this run was PyPI's), Bazel 7.7.2, |
|
[agent] 2026-12-02: Bazel bug-hunt run main Setup: Covered:
Filed:
Commented on:
Re-triage: #2281 not re-run (no commit since Ruled out (see Seen and not filed: the hosted gem scan's next step says "Reinstall from the updated lockfile" under a hub, where the vendored one says "Build with Bazel" ( Not covered: Bazel 7.7.3, platform gems, |
|
[agent] 2026-12-03: Bazel bug-hunt run main Setup: Covered:
Filed:
Commented on:
Re-triage: #2311 re-checked for Cargo, still open. #2281 not re-run (no commit since Ruled out (see Not covered: a second machine for a hosted crate pin, |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
[agent] Progress ledger for the scheduled Bazel workspaces bug-hunt routine (label pm:bazel).
Last run: 2026-12-03, main
d987721, release v5.2.0 (that same commit), newest Bazel pin 9.3.2 (Bazel has published 9.3.3, 8.9.0 and 7.7.3, which are not pinned). Real Bazel builds run in the sandbox (see backlog item 1): npm, PyPI, RubyGems, Composer and Cargo are the rows built.Bazel support is experimental. The rows below are the rows of "Bazel workspaces: what is supported" in
docs/ecosystems.md, which says what each cell promises and with which conditions. A cell here records what this routine saw on a real Bazel build: pass (Bazel release, date), fail (issue number), blocked (why) or untested.Coverage matrix
maintrustLockfile, committedMODULE.bazel.lockunder--lockfile_mode=error; also two hubs in a monorepo with aWORKSPACEfile, 2026-12-01); fail #2389 (a.bazelrcdownloader config that blocks the patch host: no warning, the next clean build fails; 9.3.2 and 8.8.2). Untested: the routed lock,update_pnpm_lock, 8.8.2 and 7.7.2 for the common pathnot_affectedafter hosted and vendored with the patched build,affectedwith the hub's line for an agent patch, exit 2 after the undo)pip.parseover a requirements fileWORKSPACEfile; the undo byte for byte once a build has rewrittenMODULE.bazel.lock, 2026-12-01); fail #2407 (ux: no output names the staleMODULE.bazel.lock, and a frozen lock fails the next build); silent under a.bazelrcdownloader config (files only, #2389). Untested: 7.7.2,requirements_by_platform, an older rules_pythonvendor --check;vendor --revertbyte for byte, 2026-12-01). Declines and writes nothing on rules_python 2.5.1 and under a.bazelrcdownloader config (2026-12-01); the stale lock is #2407not_affectedafter hosted and vendored with the patched build, exit 2 after the undo); fail #2281 (9.3.2, 2026-12-01, with a real patched build: no document beside a virtualenv with the unpatched release)go_deps.from_fileovergo.modruby.bundle_fetchoverGemfile.lockMODULE.bazel.lock, which no step changes; a monorepo with two hubs, an ignored third project and aWORKSPACEfile; a transitive gem; a lock withoutCHECKSUMS; every label spelling beside upstreamgem_checksumsis skipped; undo byte for byte, 2026-12-02); fail #2389 (a.bazelrcdownloader config with an allow list: no warning, and the very next build fails). Untested: platform gems,rb_bundle_fetchinWORKSPACEon Bazel 7vendor --check,repairrestores it;vendor --revertbyte for byte, 2026-12-02). Declines, exits 1, writes nothing and the build still passes below the root and for a lock withoutCHECKSUMS(2026-12-02)not_affectedafter hosted and vendored with the patched build, exit 2 after the undo); fail #2449 (9.3.2, 2026-12-02, hosted: no document while a gem home of the machine holds the upstream gem, and the build is patched)crate.from_cargooverCargo.lockrollbackbyte for byte once a build has rewrittenMODULE.bazel.lock; a monorepo with two hubs,[workspace.dependencies], an ignored third project and aWORKSPACEfile; a cargo-bazellockfilehub after a repin; every spelling of a hub without the config declines and writes nothing, 2026-12-03); fail #2407 (the staleMODULE.bazel.lockand the repin are named by no output, commented); fail #2389 (a.bazelrcdownloader allow list: no warning, the next build is blocked from the patch host, commented)vendor --check,cquery //...,vendor --revertbyte for byte; a fresh clone with a frozen lock builds patched and asks no patch host; the monorepo; a hub withoutcargo_config; under a downloader allow list; thelockfilehub after a repin, 2026-12-03)rollbackrestores the copy, commented)not_affectedafter hosted and vendored with the patched build,affectedwith the hub's line for an agent patch, exit 2 after the undo); fail #2481 (hosted: no document fromvexwhile the cargo home holds the upstream crate, and the build is patched)nuget.from_lockoverpackages.lock.jsonMODULE.bazel: #2386)affectedwith the tag's line for an agent patch, 2026-11-30)composer installfromcomposer.lock--lockfile_mode=error; the committedvendor/tree stays unpatched, as documented;rollbackbyte for byte). Untested: 8.8.2, 7.7.2, a second machine,rctx.symlinkvendor_composer_bazel_workspacefor each project, writes nothing, the build still passes, 9.3.2, 2026-12-02)vendor/tree, which that build reads; the undo is byte for byte but leaves.socket/); the scan names no Bazel (#2311, not commented)not_affectedfor the two hosted builds; no document, exit 1, for the committed tree that stays unpatched)maven.installwith alock_filego runat each step), 2026-11-27; RubyGems (files and output only, nobundle install), 2026-11-28; Cargo (a realcargo run --locked), 2026-11-29; NuGet (files and output only, nodotnet restore), 2026-11-30; Composer (a realcomposer installandphprun, Composer 2.8.12), 2026-12-02 on main6280589. Maven untested. v5.2.0 is maind987721itself, so from 2026-12-03 the comparison is against the commit under test until main movesMODULE.bazelwith no hub and under a leftoverWORKSPACE: npm and PyPI (PyPI also intools/beside a hub that reads another project's file), 2026-11-26; Go, 2026-11-27 (vendored mode adds the documented.bazelignorepair and its undo removes it); RubyGems, 2026-11-28, Cargo, 2026-11-29, and NuGet, 2026-11-30 (each also intools/beside a hub that reads another project's files; both modes identical to no workspace); Composer, 2026-12-02 (hosted mode,vexandrollbackidentical; vendored mode declines with exit 1 and writes nothing, a documented limit). Maven untestedBacklog
export "$(scripts/install-bazel.sh 9.3.2 "$HOME/.cache/socket-patch-bazel")"; a downloader config withrewrite \Qbcr.bazel.build/\E(.*) https://raw.githubusercontent.com/bazelbuild/bazel-central-registry/main/$1plus the flow's own rewrites, named with--repository_cachein~/.bazelrc(--experimental_downloader_configand--nohome_rcon Bazel 7). Bazel reads the home rc after the workspace.bazelrc, so the home line wins: to test a checkout's own downloader config, pass it on the command line. Bazel needs the sandbox proxy;socket-patch, cargo and Composer run without it (env -u HTTPS_PROXY ...).bcr.bazel.buildis still refused. The repository's own--ignoredtests cannot run here. Stand-in: a local, uncommitted#[ignore]test at the end oftests/e2e_bazel_build/<ecosystem>.rsthat builds the stand-in as the flows do, writes its origin, the pinned lock, the markers and the config to a directory and waits for a stop file (a second stand-in with new ids: the compiled test binary undertarget/debug/deps/, run fromcrates/socket-patch-cli). Runsocket-patchwith--api-url <origin> --org test-org --api-token fake-token,SOCKET_PATCH_SERVER_URL=<origin>and the registry variable (SOCKET_NPM_REGISTRY,SOCKET_PYPI_JSON_API,SOCKET_RUBYGEMS_URL=<origin>/rubygems.org,SOCKET_PACKAGIST_URL=<origin>/repo.packagist.org,SOCKET_CRATES_INDEX=<origin>/index.crates.io). Per ecosystem: PyPIVendoring::apart(); RubyGemsServed::to(&mut cell_without_bazel("9.3.2"))withroutes(origin, true|false); Composerregistry+grant,home_configasCOMPOSER_HOME/config.json; Cargoregistry+grant_installed(serves an agent patch's blobs too),lock_pinningasCargo.lock,mirror_configas.cargo/config.toml, Bazel with--repo_env=CARGO_BAZEL_ISOLATED=true --repo_env=CARGO_HOME=<empty dir>, and a rootBUILD.bazelin a monorepo. Caches hide failures: a "second machine" is a new output base and, on Bazel 9,--repo_contents_cache=; the repository cache serves a file by sha256 whatever a downloader config blocks, so use a stand-in with new ids. Unpinned Bazel releases install by hand fromgithub.com/bazelbuild/bazel/releases/download/<v>/with the.sha256beside them. Refused hosts beyond the prompt's, and source archives of repositories not under/home/user: none met for rules_js, rules_python, rules_ruby and rules_rust.bazel-*.ymlworkflow onmain: which legs are red, and whether an open issue covers each.vex, the undo and the shapes: Go is blocked here (go.devrefused), so NuGet (nodotnethere, the hub may still build), then Maven with the machine's JDK 21. Open for Cargo: a second machine for a hosted pin,crates_repositoryon Bazel 7. For Composer: 8.8.2, 7.7.2, a second machine.bundle install(RubyGems) anddotnet restore(NuGet) at each step are still open.blobContentin the record, asgrant_installedofcargo.rshas it); Composer and Maven are not commented on Agent mode in a Bazel workspace whose hub reads the lock says nothing about being unsupported for a Bazel build #2311 yet.vexbeside an installed unpatched copy, for a hosted patch the hub builds patched: PyPI vex writes no document for a hosted PyPI patch under a rules_python hub when a virtualenv still holds the unpatched release, and the docs promise one #2281, RubyGems vex writes no document for a hosted gem patch under a rules_ruby hub when a gem home on the machine still holds the upstream gem, and the docs promise one #2449, Cargo vex writes no document for a hosted crate patch under a rules_rust hub when the cargo home still holds the upstream crate, and the docs promise one #2481, NuGet documented; check npm (node_modules). For NuGet check whether the scan names the staleMODULE.bazel.lock(A hosted or vendored PyPI scan under a rules_python hub leaves MODULE.bazel.lock stale and no output names it, so a checkout that freezes the lock fails its next Bazel build #2407; Cargo commented)..bazelrcdownloader config (Hosted npm scan under a rules_js hub says nothing when the checkout's .bazelrc names a downloader config, and the next clean Bazel build is blocked from the patch host #2389): npm, PyPI, RubyGems and Cargo are silent; check NuGet (only Maven is known to warn).update_pnpm_lock, the common path on 8.8.2, vendored mode with the tarball out of every cache, an older rules_js. For PyPI: 7.7.2,requirements_by_platform, an older rules_python. For RubyGems: platform gems,--vendor_dir. The hosted next step says "Reinstall from the updated lockfile" under a hub and never names the Bazel build (ux, not filed)..socket/or./.socket/vendor/golang.Known non-bugs
See
known-non-bugs/bazel.md(23 entries). Most likely to be re-filed: an empty.bazelrcof the user's is removed by the undo of a PyPI download cache (documented); a Go project that Bazel does not build gets a.bazelignorepair in vendored mode (documented); a command that exits 0 in a "Not supported" cell (documented);vexandvendor --revertat the root of a monorepo find nothing after a root scan (per project, not Bazel's); Composer vendored mode declines under anyMODULE.bazelorWORKSPACE, also one that builds nothing (documented limit); an output base that fetched a damaged vendored gem keeps failing afterrepair(documented); a hosted gem scan over a vendored gem writes nothing and says to un-vendor first (by design); the committed Composervendor/tree stays unpatched after a hosted scan andvexwrites no document for it (documented); a rules_rust hub with a cargo-bazellockfilefails every build after a scan or an undo untilCARGO_BAZEL_REPIN=true(documented).All reactions