Repository navigation
Bug hunt ledger: Bazel workspaces #2262
Replies: 11 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: |
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-04, main
d987721, release v5.2.0 (that same commit), newest Bazel pin 9.3.2 (9.3.3, 8.9.0 and 7.7.3 are published and not pinned). Real Bazel builds run in the sandbox (see backlog item 1): npm, PyPI, RubyGems, Composer, Cargo and NuGet are the rows built.Bazel support is experimental. The rows are those of "Bazel workspaces: what is supported" in
docs/ecosystems.md. A cell 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, 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 --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; a monorepo with two hubs and aWORKSPACEfile; a transitive gem; a lock withoutCHECKSUMS; 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 cleanly 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 and aWORKSPACEfile; a cargo-bazellockfilehub after a repin; 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,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, 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.jsonrollbackand a build are byte for byte; a BOM and CRLFNuGet.Config; a monorepo with two tags, an ignored third project and aWORKSPACEfile: one root config pins both from the root, per-project configs withhold with a remedy that works, 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). Untested:feeds,local_package_dirs, a tag in an included filevendor --check, a fresh clone with a frozen lock and no host builds patched, takes over a hosted pin, builds under a downloader allow list,repairrestores a damaged copy,vendor --revertbyte for byte). Declines, exits 1, writes nothing and the build still passes with 9.3.3, 8.9.0 or 7.7.3 in.bazelversion, below the root, beside a second tag and with noMODULE.bazel.lock(2026-12-04). The next step does not nameMODULE.bazel: #2386rollbackrestores the copy and leaves.socket/)not_affectedafter hosted with no restored copy and after vendored, both with the patched build;affectedwith the tag's line for 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). 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 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 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 untested. v5.2.0 is maind987721itself: nothing to compare until main movesMODULE.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 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). The home rc wins over a workspace.bazelrc: pass a checkout's own downloader config on the command line. 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 builds stand-ins as the flows do (several, each with new ids), writes each one's origin, pinned lock, 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 (SOCKET_NPM_REGISTRY,SOCKET_PYPI_JSON_API,SOCKET_RUBYGEMS_URL,SOCKET_PACKAGIST_URL,SOCKET_CRATES_INDEX,SOCKET_NUGET_URL=<origin>/api.nuget.org). The helpers per ecosystem are in the entries of 1 to 4 Dec (NuGet:registry+grant_installed+service_route, a home staged withrestore_intoasDOTNET_CLI_HOMEandNUGET_PACKAGES, vendored scans with--patch-server-url <origin>, nodotnet). Caches hide failures (the repository cache serves a file by sha256 whatever is blocked or damaged): a "second machine" is a new output base,--repo_contents_cache=on Bazel 9, and 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, rules_rust and rules_csharp.bazel-*.ymlworkflow onmain: which legs are red, and whether an open issue covers each.e9): with--java_runtime_version=local_jdkand the tool flags on JDK 21, ajava_binarystill asks forremotejdk25_linuxfromcdn.azul.comandmirror.bazel.build, both refused. Try erase8ande7, whose rules_java may accept JDK 21, before giving the row up; Go stays blocked (go.dev). Open for NuGet:feedson a tag,local_package_dirs, a tag in an included file, a second machine for a hosted pin. 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 in its cell; check npm (node_modules)..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, Cargo and NuGet are silent and commented; only Maven is known to warn (not seen on a build).update_pnpm_lock, the common path on 8.8.2, an older rules_js. For PyPI: 7.7.2,requirements_by_platform. 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. 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).All reactions