Repository navigation
Bug hunt ledger: Bazel workspaces #2262
Replies: 12 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, |
|
[agent] 2026-12-04: Bazel bug-hunt run main Setup: Covered:
Filed: nothing new. Commented on:
Re-triage: main has not moved since the last run, so no open issue can have been fixed; #2311, #2386, #2389 and #2407 reproduced for NuGet on real builds. Ruled out (see Seen and not filed: a damaged vendored copy did not fail a new output base here, because the repository cache held the patched file by sha256 (a cache artefact; CI holds that case). In project Not covered: |
|
[agent] 2026-12-05: Bazel bug-hunt run main Setup: Covered:
Filed:
Commented on:
Re-triage: the two commits since Ruled out (see Seen and not filed: the hosted next step says "Reinstall from the updated lockfile" where only Not covered: platform gems under a rules_ruby hub (what main changed), |
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-05, main
cd7c5c5(two commits after v5.2.0, both on platform gems), release v5.2.0, newest Bazel pin 9.3.2 (9.3.3, 8.9.0 and 7.7.3 are published and not pinned; nothing newer). Every row but Go has been built on a real Bazel (setup: backlog item 1).The rows are those of "Bazel workspaces: what is supported" in
docs/ecosystems.md. A cell is what this routine saw on a real Bazel build: pass (release, date), fail (issue), 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: see backlog 9not_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 fileux: no output names the staleMODULE.bazel.lock, and a frozen lock fails the next build); silent under a.bazelrcdownloader config (files only, #2389)vendor --revertbyte for byte, 2026-12-01). Declines cleanly on rules_python 2.5.1 and under a.bazelrcdownloader config; 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; a monorepo with two hubs; a transitive gem; a lock withoutCHECKSUMS; 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,repair,vendor --revertbyte for byte, 2026-12-02). Declines cleanly below the root and for a lock withoutCHECKSUMSnot_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; a monorepo with two hubs and aWORKSPACEfile; a cargo-bazellockfilehub after a repin; a hub without the config declines, 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,vendor --revertbyte for byte; a fresh clone with a frozen lock and no patch host; the monorepo; a hub withoutcargo_config; a downloader allow list, 2026-12-03)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.jsonNuGet.Config; a monorepo with two tags and aWORKSPACEfile, 2026-12-04); fail #2389 (a.bazelrcdownloader allow list: no warning, the very next build fails, commented); fail #2407 (no output names the staleMODULE.bazel.lock, commented)vendor --check, a fresh clone with a frozen lock and no host, a hosted pin taken over, a downloader allow list,repair,vendor --revertbyte for byte). Declines cleanly with an unpinned release in.bazelversion, below the root, beside a second tag and with noMODULE.bazel.lock. The next step does not nameMODULE.bazel: #2386not_affectedafter hosted with no restored copy and after vendored;affectedfor an agent patch; exit 2 after the undo; no document for a hosted patch beside a restored copy, as the cell says)composer installfromcomposer.lock--lockfile_mode=error; the committedvendor/tree stays unpatched, as documented;rollbackbyte for byte)vendor_composer_bazel_workspacefor each project, writes nothing, the build still passes, 9.3.2, 2026-12-02)vendor/tree, which that build reads); 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_filegetandscanwrite the block inMODULE.bazelalone; the build is patched, also under--lockfile_mode=error; the relock,bazel mod tidyand a second run change nothing;rollbackbyte for byte; beside apom.xml; a leftoverWORKSPACE; a monorepo with two hubs and an ignored Maven project; two hubs on two releases; a version bump, then a hosted scan re-pins). Declines and writes nothing under a.bazelrcdownloader config or--vendor_dir, for a hub with nolock_file, for Bazel before 7.4.0 and below the root. Fail #2529 (ux: a decline over a vendored entry says the build keeps the upstream jar)get --mode vendored, the build,vendor --check,bazel query //..., a fresh clone with the hosts blocked,repair,vendor --revertbyte for byte; builds under a downloader config; the vendored scan beside apom.xml). Fail #2530 (ux: the vendored scan finds nothing in a tree only Bazel builds and says to run a package manager)pom.xml: warns that the hub stays unpatched and names the remedy, which works; the build passes unpatched)not_affectedafter hosted and vendored with the patched build;affectedwith the hub's line for an agent patch and for a pom pin below the root; no document for a stale entry, for an upstream jar in the vendored place, and after the undo)go run), 2026-11-27; RubyGems (files only), 2026-11-28; Cargo (realcargo run --locked), 2026-11-29; NuGet (files only), 2026-11-30; Composer (realcomposer install), 2026-12-02 on main6280589. Maven: pass, maincd7c5c5against v5.2.0, 2026-12-05 (files only: hosted scan, vendored scan, agent scan,vexand each undo; the same files, output and exit codes)MODULE.bazelwith no hub and under a leftoverWORKSPACE, both modes identical to no workspace unless noted: npm and PyPI, 2026-11-26; Go, 2026-11-27 (vendored mode adds the documented.bazelignorepair); RubyGems, 2026-11-28; Cargo, 2026-11-29; NuGet, 2026-11-30; Composer, 2026-12-02 (vendored mode declines with exit 1 and writes nothing, a documented limit); Maven, 2026-12-05 (main and v5.2.0, under aMODULE.bazelwith no hub, in a git checkout)Backlog
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). The home rc wins over a workspace.bazelrc. Bazel needs the sandbox proxy;socket-patchruns 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 starts several stand-ins as the flows do, writes each one's origin, markers and downloader rules to a directory and waits for a stop file; run the compiled test binary 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 of the ecosystem; the helpers per ecosystem are in the entries of 1 to 5 Dec. Java (Maven row): run Bazel as a user that is not root (rules_python's toolchain, which rules_java 8 pulls in, refuses root;runuser -u ubuntu, files under that user's home), and give the build the machine's JDK 21: ajava_runtime(java_home = "/usr/lib/jvm/java-21-openjdk-amd64", version = 21)and adefault_java_toolchainover it inBUILD.bazel, with--extra_toolchains=//:<name>_definitionand--java_runtime_version=local_jdk(and the tool twin) in.bazelrc. Flags alone still ask for the refusedcdn.azul.com. Maven:serve_upstream+grant+standin.api,MAVEN_REPO_LOCAL, vendored and agent runs with--patch-server-url <origin>, pin withREPIN=1 bazel run @fixture_maven//:pin. A checkout needsgit initfor a project below the root to be taken as part of the workspace. A "second machine" is a new output base and new ids. Unpinned Bazel releases install by hand from GitHub's release downloads, with the.sha256beside them. Refused hosts beyond the prompt's, and source archives of repositories not under/home/user: none met.bazel-*.ymlworkflow onmain: which legs are red, and whether an open issue covers each.vex,rollback). Build a gem locked as platform builds (<version>-x86_64-linux-gnubeside the ruby gem) under a rules_ruby hub, hosted and vendored, with one patch per build as the capstone fixtures oftests/e2e_redirect_gem_build.rsserve them; then re-check 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 on that main.m2local, amaven.override, a hub of the default namemaven, a hub onisolate, a block changed by hand, rules_java 10.0.0, a realmvnbeside the hub, vendored under a real--vendor_dirbuild. Go is blocked (go.dev); trygo_sdk.host()with the machine's Go once.bundle install,dotnet restoreandmvnare still open.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; check npm (node_modules).update_pnpm_lock, 8.8.2. For PyPI: 7.7.2,requirements_by_platform. For NuGet:feeds,local_package_dirs. For Composer: 8.8.2, 7.7.2. The hosted next step says "Reinstall from the updated lockfile" under every hub, Maven included (ux, not filed).Known non-bugs
See
known-non-bugs/bazel.md. Most likely to be re-filed: 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(documented); a hosted scan over a package that is vendored for the hub writes nothing and counts it as left to patch (gem and NuGet, by design); the committed Composervendor/tree stays unpatched after a hosted scan (documented); a rules_rust hub with a cargo-bazellockfileneedsCARGO_BAZEL_REPIN=trueafter a scan or an undo (documented); NuGet vendored mode declines on a Bazel release it was not built on, below the root and beside a second tag (documented); a frozenMODULE.bazel.lockfails right after a NuGet scan or undo (documented; the missing words are #2407);vexattests a vendored Maven jar by its patched files, so trailing bytes on the jar failvendor --checkalone.All reactions